开发者

Is there any control like contentplaceholder which is in asp.net for plain html

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.


Dont think there is a pure html counterpart for masterpages. you can have a main html page with the common header footer parts hosting other content htmls in an iframe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜