I'm currently trying to port some legacy VBScript applications to C#, and I've discovered that ASP.NET rewrites my XHTML code so that is it displays correctly in various browsers. Now, I find this slightly patronising, as my code already works correctly in everything from IE5 to Safari 3, and .NET is, in fact, breaking the output.
Is there any way to stop it doing this? I'm using Visual Studio 2005, which I gather may be doing some things sneakily when I compile the code, though I've not managed to find any project preferences which allow me to disable this.
I understand why Microsoft have set ASP.NET up to do this, but I would rather have control over the output of my own code, as I'm not particularly au fait with the idea that the interpreter is outputting code over which I have no control. I've already added the <xhtmlConformance mode="Strict" /> to the web.config file, but this doesn't do much for correcting the output in browsers such as IE5.5 and 6, and Firefox occasionally gets a few odd things as well, breaking the XML parser, since XHTML is output as just that to the browsers which can accept it.
Thanks in advance,