Knock::on_wood

unclear thoughts on software development

Friday, March 10, 2006

ASP.NET 2.0, XHTML, and Javascript

I never cease to be amazed by good ole’ MS. At work we’ve been going through the pain of moving from ASP.NET 1.1 to 2.0. They claim that ASP.NET 2.0 is at least XHTML transitional compliant, but beware!

If, in an attempt to be an efficient, compliant coder, you add a javascript include to the <HEAD> tag using XHTML formatting, form buttons on your page will no longer work.
<script type="text/javascript" src="/search/search.js"/>
That’s right, no post back occurs. You can click and click but the page never gets submitted. Low and behold, once you change it back to the old school method, things work again.
<script type="text/javascript" src="/search/search.js"></script>
Go figure.

Leave a comment

Powered by Mephisto. Theme modified and ported by Ryan Wood, based on the WordPress theme minima.