Using a Web Form Template page

Diesel

Contributor
Joined
Aug 18, 2003
Messages
662
I have a Web Form that I want to use as a template page and place a standard header and footer in the page. I'm thinking of using Response.Write in the Page_Load to write the header. Is this the most efficient way, or should I use javascript? Also, how can I write the footer after the child form that inherited this page rendered it's content?
 
To write your footer after the page's content you would have to override the Render method and do it in there. If you dont care about a search engine getting to your footer and header content, then you can do it in javascript too.
 
I just thought that I have user controls to add to the page, I'm wondering if I can add those in the render function.
 
Back
Top