custom validator and ajax

J

Jeremy

How would I go about using a custom validator to make a server side call
using ajax?
 
B

bruce barker

as the ms ajax library does not do synchronous service calls only
asynchronous (the "a" in ajax) you would need to redo the validation
logic as it does not support async. you could tie an ajax call to a lost
focus and hope it completes before a postback is requested (tough if the
lost focus is the click on the postback button).

-- bruce (sqlwork.com)
 
R

Roland Dick

Hi Jeremy,
How would I go about using a custom validator to make a server side call
using ajax?

Can't you just use an updatepanel? That way, the custom validator
returns after calling the server-side validation function, but the user
will not notice the postback.

Roland
 

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,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top