Run javascript function after Server-Side validation is complete.

Posted by Ed Woodcock on Stack Overflow See other posts from Stack Overflow or by Ed Woodcock
Published on 2010-03-26T17:16:58Z Indexed on 2010/03/26 17:23 UTC
Read the original article Hit count: 245

Filed under:
|
|
|

Ok, I've got a lightbox with a small form (2 fields) in it, inside an UpdatePanel, and I want to close this lightbox (must be done via javascript) when the 'Save' button is pressed.

However, there is a need to have a server-side CustomValidator on the page, and I only want to close the lightbox if this returns as valid.

Does anyone know a way to trigger javascript (or jQuery) code from a server-side validator?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#