Ok, what you can do is have a protected string as a member var. of the
code-behind.
protected string sTitle = "";
In Page_Load or wherever you want, throw the logic in it to determine the
value of your title string.
if(Condition)
{
sTitle = "Title A";
}
else
{
sTitle = "Title B";
}
In the front-end .aspx page:
<title><%=sTitle%></title>
Mark
"Val" <Va*@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
That does not work from CodeBehind file (aspx.cs)! Is there an
object/property that I can change to change title?
Thanks
"Mark White" wrote:
Val
<title><%if(Condition){Response.Write("Title
A");}else{Response.Write("Title B");}%></title>
Mark
"Val" <Va*@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com... How do i programmatically change a title of a Web page in ASP.NET?
Thanks