|
Back
Changing the Page Title Dynamically in ASP.net 1.1
You can easily make dynamic changes to the page title of a page in ASP.net 1.1. To do so you just need to set the page title tag as a server control by adding runat="server" to it, and then use the following c# code in your codebehind or on the page:
protected System.Web.UI.HtmlControls.HtmlGenericControl pageTitle;
private void Page_Load(object sender, System.EventArgs e) { pageTitle.InnerText = "My Page Title";
}
Back
|