redcokehome / jquery-modalbox-plugin

Automatically exported from code.google.com/p/jquery-modalbox-plugin
0 stars 0 forks source link

How do i cause a button to cause postback from modalbox? #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Unable to fire postback event of button from modalbox

Original issue reported on code.google.com by vikas1...@gmail.com on 5 Jul 2011 at 4:58

GoogleCodeExporter commented 8 years ago
If your issue is with aspx then, i've got the same issue...

I did a little twist to work around  :

In my page i put a <asp:button ../> and a code behind function who handle the 
event click of the button.

I hide the button with css : <asp:button style="display:none" ... />

In the contain of the modalbox i put an html button who manually call the click 
of the asp:button like this :

                <input 
                    type="button" 
                    onclick="document.getElementById('ctl00_ctl00_MainContentPH_MainContentPH_btnSupprimer').click();" 
                    value="Supprimer" />

Hope it will be usefull!

Original comment by skunkg...@gmail.com on 12 Sep 2011 at 1:36

GoogleCodeExporter commented 8 years ago

Original comment by steffen....@googlemail.com on 12 Feb 2012 at 5:06