Thursday, March 22, 2012

Setting the page title by program code

Hello,

I want to set the title of an aspx-page by program (from a
localized ressource). Data binding in the HTML code like
<title><%# SomeMethodCall() %></title> doesn't work. I
have not found a method yet, to access the title property
of a page by code. Does anybody know how?

Thanks HartmutCheck out this faq,
http://authors.aspalliance.com/kenc/faq5.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Hartmut Schroth" <anonymous@.discussions.microsoft.com> wrote in message
news:08ce01c39d38$ec2dcda0$a501280a@.phx.gbl...
> Hello,
> I want to set the title of an aspx-page by program (from a
> localized ressource). Data binding in the HTML code like
> <title><%# SomeMethodCall() %></title> doesn't work. I
> have not found a method yet, to access the title property
> of a page by code. Does anybody know how?
> Thanks Hartmut

0 comments:

Post a Comment