JavaScript functions not completed when Ajax callbacks are involved

  • Thread starter Thread starter Nathan Sokalski
  • Start date Start date
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.
 
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)
 
Back
Top