Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.
In Asp.net 2.0 you can change the title of the page at runtime. This is done by using the Header property of the Page class. The best place for this is the PreInit event handler.
 

IPageHeader myHeader = Page.Header;
myHeader.Title = "Welcome to my Test Page"; 
Response.Write(myHeader.Title); 

OR simply
 Page.Header.Title = "This is the page title"; 
Posted on Saturday, July 9, 2005 10:27 PM | Back to top


Comments on this post: Changing title of the page at runtime in Asp.net 2.0

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net