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: