Hello everyone,
When I'm developing a site using ASP.net 2 Master Pages I usually define the title in the master page so it doesn't have to be repeated every single time. In the content pages, inside the PAGE declaration I delete the Title property, so it doesn't override the already defined value.
On the browser it works great. The problem is that the generated code is not compliant with XHTML 1.1 standards. Here's the code that is generated:
1 <head>
2 <title>MyTitle</title><link href="App_Themes/Default/Default.css" type="text/css" rel="stylesheet" /><title>
3 </title>
4 </head>
Naturally, the validator says that having the second title tag is invalid. How can I fix this? Will I have to stop declaring the title in the masterpage and define it in every single content page?
Best regards