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

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
 
G

Guest

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
 
C

clintonG

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top