Please post your Page_Load code.
I have a feeling that you are adding the header to the hpage if it's the first time posting back only....
Why don't you just add the title directly to your HTML instead of doing it dynamically?
-Frinny
[quote=zohrehf]Hello,I explain from beginning:
I am using modal dialog box page Select.aspx(Page title is Start case ) in my asp.net project. In that dialog box page, I have a grid view control with enabled paging.
When the Modaldialogbox page is loaded it showing the Title as "Start case --WebDialog Box". It is fine. But
When ever i go to next page by clicking gridview paging, The title is disappearing but showing only "webDialogBox".
I want persistant title same as "Start case WebDialog Box" when ever i go to next page in the gridview.
I added the title directly to the HTML , but i am facing the same problem.
The code of Page_Load is:
-
protected void Page_Load(object sender, EventArgs e)
-
{
-
Page.Header.Controls.Add(new LiteralControl(@"<base target=""_self"" />"));
-
Page.Header.Controls.Add(new LiteralControl(@"<title>Start case </title>"));
-
if (!IsPostBack)
-
{}
-
}
-
Thank you
Zohreh