Add Charset and ContentType to ASP.NET web page

The WC3 recommends specifying the Charset and ContentType on all of your web pages. A quick and easy way to do this in a ASP.NET web site with a master page is to add this to the masterpage file:

<%  Response.Charset = "utf-8"%> 
<%  Response.ContentType = "text/html"%> 


Popular posts from this blog

Microsoft.ApplicationBlocks. ExceptionManagement The event source x does not exist error


Apple iPad Facebook crash