Client Side Validation

G

Guest

Hi All,

We have an ASP.NET web app that makes use of client side validation.
It has a simple form on it with two buttons.
One a clear button the other a submit button.

When WebUIValidation.js is found and used whenever you click on submit (or
clear for that matter) it doesn't appear the server side event handlers run.
When WebUIValidation.js is not found (eg: its moved or renamed) the server
side event handlers run and the form is submitted or cleared.

Its very similar to the problem talked about her
http://groups.google.com/groups?hl=...c40532%24342e9bf0%24a401280a%40phx.gbl&rnum=3

Anyone have any thoughts on what could be happening?

Thanks
Rick
 
H

Hans Kesting

XtremeGod said:
Hi All,

We have an ASP.NET web app that makes use of client side validation.
It has a simple form on it with two buttons.
One a clear button the other a submit button.

When WebUIValidation.js is found and used whenever you click on
submit (or clear for that matter) it doesn't appear the server side
event handlers run. When WebUIValidation.js is not found (eg: its
moved or renamed) the server side event handlers run and the form is
submitted or cleared.

Anyone have any thoughts on what could be happening?

Thanks
Rick

Are you checking Page.IsValid before you react to the submit?
A "clear" button usually should use no validation (CausesValidation=false)

The server side validators should always run, even if they already worked client-side
(because client-side is not guaranteed)

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top