Run javascript function after Server-Side validation is complete
<p>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.</p>

<p>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.</p>

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