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.
Chris Fulstow - 26 Sep 2007 01:54 GMT
Hi Ram
Try calling Page_ClientValidate() and checking its return value. This
should trigger the client-side validation.
Chris
On Sep 26, 9:01 am, rm1...@gmail.com wrote:
> All,
>
[quoted text clipped - 11 lines]
> Thanks in adv for help,
> ram.
Ram - 26 Sep 2007 16:09 GMT
> Hi Ram
>
[quoted text clipped - 22 lines]
>
> - Show quoted text -
Thanks Chris!!