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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top