Mar 2, 2004 #1 bungpeng Senior Contributor Joined Sep 10, 2002 Messages 906 Location Malaysia How to make my HTML "Title" tag dynamic? Any ideas?
Mar 3, 2004 #3 bungpeng Senior Contributor Joined Sep 10, 2002 Messages 906 Location Malaysia I can retrieve title from database and then display in my page (HTML TITLE)
Mar 3, 2004 #4 F foz Freshman Joined Mar 2, 2004 Messages 34 Location Ireland try this: set the title as a runat="server". i.e. <title id="mytitle" runat="server">Title</title> declare the variable in your code behind as: protected System.Web.UI.HtmlControls.HtmlGenericControls myTitle; then you can change the title with: myTitle.InnerText = "whatever"; --------------------------------------------------- at least i think this will work
try this: set the title as a runat="server". i.e. <title id="mytitle" runat="server">Title</title> declare the variable in your code behind as: protected System.Web.UI.HtmlControls.HtmlGenericControls myTitle; then you can change the title with: myTitle.InnerText = "whatever"; --------------------------------------------------- at least i think this will work