custom validator and ajax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeremy

    custom validator and ajax

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


  • bruce barker

    #2
    Re: custom validator and ajax

    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)

    Jeremy wrote:
    How would I go about using a custom validator to make a server side call
    using ajax?
    >
    >

    Comment

    • Roland Dick

      #3
      Re: custom validator and ajax

      Hi Jeremy,

      Jeremy schrieb:
      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

      Comment

      Working...