Dave Burke : Freelance .NET Web Developer specializing in Online Communities

.NET Framework 1.1 SP1 and Validation alert

This post describes the problem I had this morning which required the assistance of WH4L tech support.  Simply put, none of my submit buttons were firing when I was using validation, including the login page's submit button.  I learned this from a call from a charity client whose site I did as an afterhours R&D project, who said they couldn't login to their site.

Last week I encountered the same behavior when I was putting this site online, but chalked it up to some weird Httphandler weirdness in .Text.  I removed the form validation from the problem form and didn't worry about it.

Today I realized the problem was bigger than I suspected, and as much as I'm pleased with WebHost4Life, not having field validation support would have been a deal breaker for me and I would be moving on. 

Inspecting the differences between a page at WH4L which didn't work and a page on my development server showed me that the onsubmit javascript at WH4L looked like this

onsubmit="if (!ValidatorOnSubmit()) return false;

while the javascript here which worked looked as it should:

onsubmit="ValidatorOnSubmit();

The fix was to copy over the aspnet_client .js files generated from .NET 1.1 SP1.  I haven't installed SP1 yet, or I would have already encountered the problem and resolved it before it affected my WH4L sites. 

So in short, when you apply .NET 1.1 SP1, check your forms where validation is involved and update the aspnet_client files if necessary.

 

Comments (0) | Post RSS RSS comment feed

Posted on 9/22/2004 9:12:00 PM by Dave Burke
Categories: .NET
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke