Change the Page Title dynamically

Question : How to change the Page Title dynamically?

Answer :

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