jQuery UI dialog and asp.net

jQuery UI dialog and asp.net

Hello.

I can open a div with a validation summary from asp.net, i can run the code behind button click function and i can put an error inside the validation summary, the problem is the dialog window closes and i can't see the error in the validation summary until i click the link to open the dialog window again.

How can i block the dialog window from closing?


Best regards.