Use Same Header And Footer On All Webpages
I'm working on an ASP.NET website, which I'm building in Visual Studio. I want to reuse the header and footer on all pages without copying the HTML to all of them. I have looked t
Solution 1:
You should use ASP.NET Master Pages
for this purpose:
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.
Master Pages allow you to centralize the common functionality of your pages so that you can make updates in just one place.
Post a Comment for "Use Same Header And Footer On All Webpages"