Click to See Complete Forum and Search --> : Beginner question : How to set page header


beck
September 21st, 2007, 08:08 AM
How can I set the header shown of a asp page? (The label shown on the tab in the web browser) In the application I am looking at, it is always set to "main" and I want to change this.

andreasblixt
September 21st, 2007, 12:07 PM
Programmatically, it's:
Page.Title = "My Website";

To change it in the .aspx file, it's in the first declaration:
<%@ Page CodeFile="Default.aspx.cs" Inherits="Page_Default"
Language="C#" Title="My Website" %>