Re: Getting to title on Master Page
- From: "Hillbilly" <somebody@xxxxxxxxxxxxx>
- Date: Thu, 18 Dec 2008 10:58:12 -0600
None of that is necessary.
We can name or change a Page title on demand in the Page_Load event handler of each content page...
Page.Title = "Page Title"
"bh" <someone@xxxxxxxxxxxxx> wrote in message news:eoolh6SYJHA.4852@xxxxxxxxxxxxxxxxxxxxxxx
I'm getting strange behavior, while trying to edit page titles from content pages.
On the master page, I have a label control, named lblTitle, between the <title></title> tags
On the content page, I have a page-level variable declared: Dim lblTitle as Label
On Load, I have:
lblTitle = CType(Master.FindControl("lblTitle"), Label)
lblTitle.Text = "My page title"
When I run application, the title bar of the content page shows:
<span id="ctl00_lblTitle">My page title</span>
How can I have customized titles for each page, without the <span> tags showing? I'm not even sure where those span tags are generated. Thanks in advance.
bh
.
- References:
- Prev by Date: Groups / Profiles and ASP.NET
- Next by Date: VS 2008
- Previous by thread: 2008: Getting to title on Master Page
- Next by thread: Re: 2008: Getting to title on Master Page
- Index(es):