An answer which, of course, begs the question that :
"If you are manually changing the title in code, wouldn't
it be simpler just to change the title in the aspx page?"
The concept of needing code in order to do a
simple html title change is a bit thick for me.
Now, if you were doing the change dynamically, so that the
new title better fitted a different page content, I'd see the
advantage.
As it is, the code only adds cumbersomeness.
this is the better answer!
thanks
kes
Mark said:
Hi, it's the title attribute of a document.
You can dynamically set the information in the title by making it a server
side control ala
<TITLE runat="server" id="PageTitle">Old page title</TITLE>
and then in the code behind...
[vbcode]
CType(Page.FindControl("PageTitle"),
System.Web.UI.HtmlControls.HtmlGenericControl).InnerText = "This is a new
title"
[/vbcode]
hth
Cheers
Mark
Hi All!
How do you control what's in the blue title bar in IE. Like for example
"Discussions in dotnet.framework.aspnet - Microsoft Internet Explorer" on
this page. Where do you controll the text for that on a web page?
Thanks!
Rudy