In this simple article you will learn to change title of web page dynamically.
Create a web application in c#
Drag a button and one textbox on the form
Then write code on form load event
protected void Page_Load(object sender, EventArgs e)
this.Title = "Page Default Title";
Button1.Text = "Change Title of page";
After that write some code on button click even
protected void Button1_Click(object sender, EventArgs e)
this.Title = TextBox1.Text.Trim();
Label1.Text = "Page title is changed to " + TextBox1.Text.Trim();
This is simple code to change title of page it is useful for indexing of your page in search engines.