开发者

How to display a HTML page in an ASP.NET Site.Master page

Please forgive the question if it is an obvious one, but I am new to web development and it has me stumped.

I have a website that has been developed using ASP.NET and it has a Site.master page which all of my other asp pages are displayed in. I have downloaded a copy of VisualLightBox which generates an HTML page to display an image gallery.

So what I need to know is:

  1. How do I get the HTML page to display in the MainContent part of the Site.Master, or
  2. How t开发者_运维知识库o change the HTML to be part of an ASP.NET page

If there are other threads that give me the answer could you point me in that direction.


A Site.Master page defines ContentPlacholders so that pages which inherit from the Site.Master can easily place their content in a unified layout. There is a good discussion of using a Site.Master in the ASP.NET quick start tutorials.

That said, you have several options for utilizing your HTML page along with your Site.Master. Much of the HTML rendered by VisualLightBox is boilerplate in that you do not have to use it. You simply need to extract the sections of HTML, JavaScript, and CSS that are important and restructure those in an .ascx or .aspx page. You can then use your Site.Master to link to the .aspx page or place the .ascx user control on the Site.Master.


I would suggest you just create an .aspx page with your HTML?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜