R
rm1234
All,
I am using XmlHttp / PageMethods to refresh a portion of web page that
contains some asp.net validators that are enabled for client side
validation. But before I submit Ajax post request I want to be able to
use the client-side validation provided by asp.net controls. I tried
calling ValidatorOnSubmit() function before doing xml http postback
from javascript but it always returns true even though some required
fields are empty. on the same form if I keep a submit button all
validations work properly.
Is it possible to trigger ValidatorOnSubmit() from javascript so that
it validates all client side validations ?
Thanks in adv for help,
ram.
I am using XmlHttp / PageMethods to refresh a portion of web page that
contains some asp.net validators that are enabled for client side
validation. But before I submit Ajax post request I want to be able to
use the client-side validation provided by asp.net controls. I tried
calling ValidatorOnSubmit() function before doing xml http postback
from javascript but it always returns true even though some required
fields are empty. on the same form if I keep a submit button all
validations work properly.
Is it possible to trigger ValidatorOnSubmit() from javascript so that
it validates all client side validations ?
Thanks in adv for help,
ram.