Search this Site powered by Google
Home | About Us | Blog | Link to Us | Contact Us  Shop at Our ASP.NET Store!

Powered by ASP.NET

HOW TO: Change Page Title Programmatically

Solution

Solutions steps:

  1. Convert the <title> tag of a page to a server control.
  2. Associate the server control with a class field in the code-behind for the page. The field is of the type HtmlGenericControl.
  3. In response to some event (i.e. Load event), change the InnerText property of the server control to the desired page title.

Reference articles:

Add to favorites | Printable page

Home | About Us | Link to Us | Contact Us
Privacy Statement © 2004-2008 ASPNETWorld.com