This may be a coding question, but may also be a server setting issue, so I'm posting here...
When attempting to validate an ASP.NET page from here at W3C (http://validator.w3.org/), you get the following error:
If you validate the exact same page in classic ASP, you get no errors.
For examples check:
Untitled Document
Untitled Document
I found this article (ASP.NET and XHTML) addressing .NET and W3C validation that seems to indicate this may be due to .NET not recognizing the W3C validation service as a "browser". Adding a browser definition such as below, should help (if this is the case).
When attempting to validate an ASP.NET page from here at W3C (http://validator.w3.org/), you get the following error:
The character encoding specified in the HTTP header ( utf-8 ) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header ( utf-8 ) for this validation.
If you validate the exact same page in classic ASP, you get no errors.
For examples check:
Untitled Document
Untitled Document
I found this article (ASP.NET and XHTML) addressing .NET and W3C validation that seems to indicate this may be due to .NET not recognizing the W3C validation service as a "browser". Adding a browser definition such as below, should help (if this is the case).
You can configure your application to send the correct XHTML-conformant markup to the validation service by creating a browser definition for the validation service's user agent string. For example, the W3C Markup Validation Service reports a user agent that begins with "W3C_Validator". To create a browser definition for the W3C validator, you can create a .browser file in your application's App_Browsers folder (you can name the .browsers file anything you like) and then add the following browsers element.
Code:<browsers> <browser id="W3C_Validator" parentID="default"> <identification> <userAgent match="^W3C_Validator" /> </identification> <capabilities> <capability name="browser" value="W3C Validator" /> <capability name="ecmaScriptVersion" value="1.2" /> <capability name="javascript" value="true" /> <capability name="supportsCss" value="true" /> <capability name="tables" value="true" /> <capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" /> <capability name="w3cdomversion" value="1.0" /> </capabilities> </browser> </browsers> [/QUOTE]
Is this something that needs to be done server-side? Or is this something I need to do on an account-by-account basis?
Or, I guess another option is that the error above has nothing to do with the .browsers file, in which case, does anybody know what I need to do to get .NET to validate?