JavaScript functions not completed when Ajax callbacks are involved

N

Nathan Sokalski

I have a Validator that uses callbacks in the javascript client-side
evaluation. the client-side JavaScript function specified in the
WebForm_DoCallback function does not complete until the Validator function
(the one specified using the evaluationfunction attribute) has completed.
Because of this, I cannot use the results of the callback in the result of
the evaluationfunction. Any ideas? Thanks.
 
B

bruce barker

you can not use an async call from a validator. as the validator return value
controls whether the postback is done. you could make sync webservice call,
or cancel the postback, then in javascript start the postback again in the
async callback.


-- bruce (sqlwork.com)
 

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,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top