The time is now 1:58 am You last visited November 22, 2009, 1:57 am | Comments for "ASP.NET Tip: How to prevent the title tag from rendering"July 10, 2007, 6:49 pmASP.NET Tip: How to prevent the title tag from renderingIn ASP.NET, those who want complete control over the contents of the <head> section of a page get frustrated by the fact that ASP.NET automatically inserts a <title> tag. You can even set Me.Page.Title to String.Empty, and it will still generate and render a <title> tag. The answer is maddeningly simple: Put a <title> tag into the <head> section as follows: <head> This turns the <title> tag into a server control, and then the visible attribute prevents the automatically-generated title from rendering to the page. Last Edited: July 10, 2007, 6:55 pm CommentsThis Blog entry currently has no comments. You must be a Lottery Post member to post comments to a Blog. Register for a FREE membership, or if you're already a member please Log In. |