Thanks for this. I gave it a try, but no luck... the input button does nothing at all, doesn't even run the jquery code. To be honest though, I want the button to have a postback, but for the jquery to call it once the button in the modal popup is clicked - looking at the documentation this is how I understand it's supposed to work..
Interestingly I was using Firefox, and when I tried it IE8 just now, it worked perfectly... It's a sorry state of affairs when things work properly in IE and not in Firefox!
Now that I know it's a browser thing, I'll keep looking for answers on Google though (but if anyone has any ideas, please let me know!)
ok, I just did another hunt around on Google, and came across this:
http://www.integratedwebsystems.com/2009/12/using-jquery-modal-dialog-confirmation-with-an-asp-net-server-control/. I copied his code and it worked perfectly in IE and Firefox. Not sure what was wrong with the demo code, but as this now works, I will use this as the template from which to create the actual code for my project.
It looks like this is the line I needed:
<![CDATA[<%=this.Page.ClientScript.GetPostBackEventReference(new PostBackOptions(this.Button1)) %>;
%>]]>