Live Chat Icon For mobile
Live Chat Icon

How to change the Page Title dynamically

Platform: ASP.NET| Category: Basic

<TITLE id='Title1' runat =server ></TITLE>

VB.NET


’Declare
Protected WithEvents Title1 As System.Web.UI.HtmlControls.HtmlGenericControl

’In Page_Load
Title1.InnerText ='Page 1'

C#


//Declare 
protected System.Web.UI.HtmlControls.HtmlGenericControl Title1 ;

//In Page_Load
Title1.InnerText ='Page 1' ;

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.