Declare a literal control in the <title> tag.
<head>
<title>
<asp:Literal ID="ltrlTitle" runat="server"></asp:Literal>
</title>
</head>
And then set the value for the literal, say in page load event.
protected void Page_Load(object sender, EventArgs e)
{
ltrlTitle.Text = "My Dynamic Title";
}
No comments:
Post a Comment