Logo 
Search:

Asp.net Articles

Submit Article
Home » Articles » Asp.net » GeneralRSS Feeds

How to change the Page Title in ASP.Net 1.1 and C#

Posted By: Shruti Sharma     Category: Asp.net     Views: 4558

Example code to change the Page Title in ASP.Net 1.1 and C#

Code for How to change the Page Title in ASP.Net 1.1 and C# in Asp.net

// We need this name space to use HtmlGenericControlusing System.Web.UI.HtmlControls;

namespace TestWebApp
{

      publicclass WebForm1 : System.Web.UI.Page
      {
            // Variable declaration and instantiationprotected HtmlGenericControl PageTitle = new HtmlGenericControl();

            privatevoid Page_Load(object sender, System.EventArgs e)
            {
                  // Set new page title
                  PageTitle.InnerText = "New Page Title";
            }
      }
}
  
Share: 


Didn't find what you were looking for? Find more on How to change the Page Title in ASP.Net 1.1 and C# Or get search suggestion and latest updates.

Shruti Sharma
Shruti Sharma author of How to change the Page Title in ASP.Net 1.1 and C# is from United States. Shruti Sharma says Hello Everyone,
I am Shruti Sharma from United States
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!