<%=strTitle%> would yes...
But if you knew the answer to your question, why did you ask? ..you could
have just tried it out :P
I just gave you a more .net way of doing it..because now you have a nice
object of type htlmgenericControl you can do things with...
Karl
"Mark" <py*******@hotmail.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Wouldn't this work?
Sub Page_Load
Dim strTitle AS String
If something is true then
strTitle ="sometitle"
Else
strTitle = "someothertitle"
End If
End Sub
<head>
<title><%strTitle%></title>
</head>
"Karl" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl... The only way I know of is to do something like this
<head>
<title id="title" runat="server" />
</head>
and in your code you can declare the title as an
HtmlControls.HtmlGenericControl and set the innerText property to whatever you want.
Karl
"Mark" <mf****@idonotlikespam.cce.umn.edu> wrote in message
news:OA**************@tk2msftngp13.phx.gbl... I'd like to be able programmatically modify the title of a web page. For example, change:
<head><title>something</title></head>
to
<head><title>something else</title></head>
Is there a property of the Page or similar that I could do this with
in a codebehind?
Thanks in advance.
mark