Can you fix HTML tags in ASP.NET?

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
I'm using ASP.NET v1.1.

Is there any way to get HTML 4.0 style tags out of the server controls? At the moment, all my controls are producing XHTML style self closing-tags e.g:

<input type="submit" name="widget" />

It's not causing any major problems as far as I can see, but it makes the code ugly, and isn't strictly correct.

Is there a hidden setting to fix this?

I don't really want to use XHTML (mainly because we still need to support a few users with very old browsers).

And anyway, XHTML in ASP.NET is broken for other reasons.