The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

ASP.NET and XHTML ???

Hi,

I'm writing my first ASP.NET site and attempting to meet the XHTML Transitional 1.0 standards. All is fine, until I use Validator controls on a page. These controls insert a script into the page using <script language="javascript"> - unfortunately, the XHTML validator at validator.w3.org complains that it isn't valid XHTML (it needs a "type" attribute).

In addition, I have a dropdownlist control with an onChange event handler. ASP.NET inserts a "__doPostBack" as expected, but it also inserts the 'language="javascript"' attribute too - again this is invalid (giving the error "there is no attribute "language" for this element").

Is there any way at all of changing this - obviously I can't just edit it directly as these elements are generated by the server, but I didn't know if there might be a configuration setting which overrides this? Or are ASP.NET pages (at least, Beta 2 ASP.NET pages) destined to fail to meet the XHTML 1.0 standard?

Nope, I don't mind at all - I don't know how much help I'll be able to be, but .NET is going to be a steep learning curve for everyone so the more chances we have to discuss it and work it out, the better .