> Val
>
[quoted text clipped - 6 lines]
>>
>> Thanks
We could actually streamline this a bit:
///
<title><%=(condition) ? "Title A" : "Title B" %></title>
///

Signature
Tom Spink
That does not work from CodeBehind file (aspx.cs)! Is there an
object/property that I can change to change title?
Thanks
> Val
>
[quoted text clipped - 6 lines]
> >
> > Thanks
Mark White - 30 Sep 2005 17:11 GMT
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
> That does not work from CodeBehind file (aspx.cs)! Is there an
> object/property that I can change to change title?
[quoted text clipped - 11 lines]
> > >
> > > Thanks
carion1 - 30 Sep 2005 18:59 GMT
In the html file add:
<title id="myTitle" runat="server" />
In the code behind add a field:
protected System.Web.UI.HtmlControls.HtmlGenericControl myTitle;
In page_load add:
myTitle.InnerText = "Hello World";
You can adapt it however you wish from there.

Signature
Derek Davis
ddavis76@gmail.com
> That does not work from CodeBehind file (aspx.cs)! Is there an
> object/property that I can change to change title?
[quoted text clipped - 12 lines]
>> >
>> > Thanks