I have HTML pages like example1.html, example2.html, example3.html, and example4.html. All pages have the same header, footer, and sidebar.
How can I make one master template which replicates any one of those so that I will avoid repeating header and footer code in each of the HTML pages?
My server side will be asmx web services coded in c#.
You'll want to use MasterPages, in either ASP.NET WebForms or ASP.NET MVC. In the Master Page system your common markup goes into a single page (your MasterPage), then ContentPages hold the unique content which fills in the blanks.