Asp.Net 1.1 - Setting page title and using xhtml
-
Hi I am trying to create a base page that will set the page title for all pages that reference it. I found one way on here, but it involves changing the aspx page itself (removing the sections), which I dont want to do. Also, is there a way in .net 1.1 to ensure all pages are rendered as XHTML? I have been looking and can only find it for .net 2.0. If its not possible to do this, one solution is just remove the entire head section from the HTMLWriter using ToString - though I am sure there must be a better way to do this. Thanks in advance Wayde
-
Hi I am trying to create a base page that will set the page title for all pages that reference it. I found one way on here, but it involves changing the aspx page itself (removing the sections), which I dont want to do. Also, is there a way in .net 1.1 to ensure all pages are rendered as XHTML? I have been looking and can only find it for .net 2.0. If its not possible to do this, one solution is just remove the entire head section from the HTMLWriter using ToString - though I am sure there must be a better way to do this. Thanks in advance Wayde
On XHTML - I've seen a couple of different approaches. Take a look at these links for some ideas: http://weblogs.asp.net/ssivakumar/archive/2004/11/05/252735.aspx[^] http://www.howtodothings.com/computers/a821-ensuring-xhtml-compliancy-in-aspnet-11.html[^] http://www.liquid-internet.co.uk/content/dynamic/pages/series1article1.aspx[^] On the BasePage question for setting the page title - here is a link to a post that I think does exactly what you want: http://wessamzeidan.net/cs/blog/archive/2006/01/18/141.aspx[^]