I have just noticed recently that my page title will reset to the standard \"Untitled Page\" after I perform an asyncpostback from inside my UpdatePanel
in the main
You could put the Page title in Viewstate and then just grab the string in the button postback Click event and assign it to Page.Title
public string MyPageTitle
{
get
{
return (string)ViewState["MyPageTitle"];
}
set
{
ViewState["MyPageTitle"] = value;
}
}
On Page load assign: MyPageTitle = "My Cool Web Page Title"; Then in button click event:
protected void MyLinkButton_Click(object sender, EventArgs e)
{
Page.Title = MyPageTitle;
}