Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 24, 2011 10:25 AM by Ashutosh Pathak
Member
157 Points
244 Posts
Jun 24, 2011 08:58 AM|LINK
Hi there.
When I change the title tag in master page to something and run the page is using that masterpage, I see the title is Untitled page!
what's wrong?
Contributor
4646 Points
1172 Posts
Jun 24, 2011 09:01 AM|LINK
If you have the code post it here,so that we can help you.
Jun 24, 2011 09:58 AM|LINK
<%@ Master Language="VB" %> <%@ Register src="UC/Groups/GroupLinkbox.ascx" tagname="GroupLinkbox" tagprefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <asp:ContentPlaceHolder id="head" runat="server"> <title>My Title</title> </asp:ContentPlaceHolder> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <link href="UC/Groups/GroupLinkBox.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div id="Body"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>
5737 Points
1105 Posts
Jun 24, 2011 10:25 AM|LINK
try to set the title outside the contentplaceholder like below:
<%@ Master Language="VB" %> <%@ Register src="UC/Groups/GroupLinkbox.ascx" tagname="GroupLinkbox" tagprefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>My Title</title> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <link href="UC/Groups/GroupLinkBox.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div id="Body"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>
ehsansh
Member
157 Points
244 Posts
MasterPage Title doesn't works!
Jun 24, 2011 08:58 AM|LINK
Hi there.
When I change the title tag in master page to something and run the page is using that masterpage, I see the title is Untitled page!
what's wrong?
chandu123
Contributor
4646 Points
1172 Posts
Re: MasterPage Title doesn't works!
Jun 24, 2011 09:01 AM|LINK
If you have the code post it here,so that we can help you.
Chandrasekhar (MCTS) .NET framework 3.5, ASP.NET Applications
If my ANSWER helps you in solving your problem MARK IT AS ANSWER
ehsansh
Member
157 Points
244 Posts
Re: MasterPage Title doesn't works!
Jun 24, 2011 09:58 AM|LINK
<%@ Master Language="VB" %> <%@ Register src="UC/Groups/GroupLinkbox.ascx" tagname="GroupLinkbox" tagprefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <asp:ContentPlaceHolder id="head" runat="server"> <title>My Title</title> </asp:ContentPlaceHolder> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <link href="UC/Groups/GroupLinkBox.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div id="Body"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: MasterPage Title doesn't works!
Jun 24, 2011 10:25 AM|LINK
try to set the title outside the contentplaceholder like below:
<%@ Master Language="VB" %> <%@ Register src="UC/Groups/GroupLinkbox.ascx" tagname="GroupLinkbox" tagprefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>My Title</title> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> <link href="UC/Groups/GroupLinkBox.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div id="Body"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS