bungpeng Posted March 3, 2004 Posted March 3, 2004 How to make my HTML "Title" tag dynamic? Any ideas? Quote
Bodybag Posted March 3, 2004 Posted March 3, 2004 How exactly do you mean dynamic? Quote Programmers are trying to create bigger and beter idiot proof programs.The universe is trying to create bigger and beter idiots and so far the universe is winning.
bungpeng Posted March 3, 2004 Author Posted March 3, 2004 I can retrieve title from database and then display in my page (HTML TITLE) Quote
foz Posted March 3, 2004 Posted March 3, 2004 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 Quote brown m+m, green m+m, it all comes out the same in the end
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.