How do I programatically change the page title in ASP.Net

  • Thread starter Thread starter Craig Wilson
  • Start date Start date
C

Craig Wilson

How do I programmatically change the page title in ASP.Net



In general, I need to get at the object model that gets access to the title
property.



best wishes,

cw
 
I did it this way before
<title><%# Title %></title>

Then, in the page load I did
Dim Title as String = "My Home Page"
Page.Databind()

And that worked from what I remembered. There is probably a few ways to do
this I think
 
Be advised that Visual Studio.NET 2003 will remove the runat attribute
when used with the HTML title element when switching between the design and
code view.
 
Back
Top