How to change Page Title Dynamically?

 Posted by vishalneeraj-24503 on 12/13/2013 | Category: ASP.NET Interview questions | Views: 801 | Points: 40
Answer:

With the help of Page.Title property,we can change Title Dynamically.

protected void Page_Load(object sender, EventArgs e)

{
if (Session["Page_From"] == "Recruitment")
{
Page.Title = "Recruitment Console";
}
else
{
Page.Title = "Referrel Console";
}
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response