To get around the IDE rewriting of the <title runat="server".. stuff, I
usually put a literal control inside the title tag.
Like:
<title><asp:Literal runat="Server" id="litTitle"/></title>
If you insert this in HTML view, and swap to design view, you get the member
field automagically, and can set it's Text property in ie. Page_Load.. :)
Lars-Erik
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
Just a word of caution with this though. Sometimes when you switch
between
the designer and the HTML view, the <title> tag is reset such that the
@runat attribute is removed.
"Daniel Fisher(lennybacon)" <in**@removethis.lennybacon.com> wrote in
message news:On**************@TK2MSFTNGP14.phx.gbl... ASP.NET 1.1
in webform:
...
<title ID="HtmlTitle" runat="server></title>
...
in codebehind:
...
protected GenericHtmlControl HtmlTitle;
...
void Page_Load(...){
this.HtmlTitle.Value = "blabla";
...
--Daniel Fisher(lennybacon)
"Nevyn Twyll" <as****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... > In my code behind page, I want to dynamically set the page title of my
> page (the one that shows on IE's toolbar). How do I do that?
>
>
> - Nevyn
>