Using "HtmlTitle" we can pass the browser's title bar in the Page. I am passing QueryString Value with Page url in the list, so first i am getting the Query String value
and passing that value to "HtmlTitle ". The following is the code for
getting QueryString Value and pass that value to title bar in the page.
using System.Web.UI.HtmlControls
using System.Web.UI.HtmlControls
public string querystringvalue = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
//Getting Query String Value
querystringvalue = Convert.ToString(HttpContext.Current.Request.QueryString["value"]);
HtmlTitle tagTitle = new HtmlTitle();
tagTitle.Text = "querystringvalue ";
Page.Header.Controls.Remove(
Page.Header.FindControl("PlaceHolderPageTitle").Parent);
Page.Header.Controls.Add(tagTitle);
}
In my post we can check How to Add Page Title on their browser's title bar in SharePoint Programatically