Javascript and Page Validation

  • Thread starter Thread starter Jeff Tolman
  • Start date Start date
J

Jeff Tolman

Is there anyway for a Javascript routine to determine if the validators on
its page are successful? What's happening is I'm adding a javascript
routine to the Submit button of a page (to perform my own validation tasks),
and by doing that it always submits the page regardless if any of the
validators fail. Is there a way to access the validator results from
Javascript?

Thanks!

Jeff Tolman
(e-mail address removed)
 
hi jeff,

if you have to create a javascript to perform your own validation task
use a customvalidator control. if some check doesn't pass the validation
the browser will not post the page.

HTH,
Stefano Mostarda MCP
Rome Italy
 
...but remember to also validate on the serverside, as some users may
have disabled javascript.

Good luck!
Am
 
Back
Top