Molloys r us : Set page title dynamically in asp.net: "Set page title dynamically in asp.net
There is no page title web control within asp.net so how would you set a page title Programmatically?
You can add an ID and Runat attribute to the existing title tag:
Within your code behind file add a html generic control with the other control declarations:
protected System.Web.UI.HtmlControls.HtmlGenericControl pageTitle;
The title can now be accessed programmatically just like any other web control:"
Wednesday, May 14, 2008
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment