Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

unwanted extra <title> tags

Vote:
 
Hi, My site is using the Header.ascx component which autogenerates the title tag on each page. However, i see that i get an extra empty tag in my html code when i try to validate the page. any ideas why? I've removed all <title> tags except for the one in Header.ascx. my masterpage: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head id="Head1" runat="server"> <usercontrols:header id="Header" runat="server" /> </head> <body> <form id="main" runat="server"> ..... etc. my header.ascx file: <asp:literal id="MetaTagGenerator" runat="server" /> <link rel="stylesheet" type="text/css" href="<%=Configuration.RootDir%>styles/bv.css" /> <link rel="stylesheet" type="text/css" href="<%=Configuration.RootDir%>styles/structure.css" /> <link rel="stylesheet" type="text/css" href="<%=Configuration.RootDir%>styles/Editor.css" /> <episerver:friendlyurlregistration runat="Server" /> <title><%=gettitlestring()%></%=gettitlestring()%> I've not done any changes to the code-behind file.
#11405
Aug 23, 2007 10:04
Vote:
 
If you move the title-generation to your Masterpage it will work.
#11797
Aug 27, 2007 16:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.