How do you modify a modal popup from ASP codebehind instead of letting it close?
Posted
by user328422
on Stack Overflow
See other posts from Stack Overflow
or by user328422
Published on 2010-05-19T03:42:30Z
Indexed on
2010/05/19
3:50 UTC
Read the original article
Hit count: 241
I'm using SimpleModal to create a popup on an ASP.net application. The OK button calls a server-side function - and based on the resulta of that function I'd like to modify the popup (make some things visible, etc.) instead of letting it close. If that's too difficult, I'd like to open the popup again without the user having to re-click on anything. I'm just not sure what the best way to do this is.
Currently the OK button in the popup looks like this:
<asp:ImageButton ID="submitInfoBtn" OnClick="btnSubmitInfo_Click"
ImageUrl="css/assets/btn_ok.png" runat="server"/>
and there is nothing defined that tells anything that the OK button should close the popup (the Cancel button has class="simplemodal-close", so I would expect it to do just that, but not the OK button) - anyone have any ideas on the best way through this? Thanks in advance!!
© Stack Overflow or respective owner