I think it is better to not submit the page from the Dialog window. You
should pass the data to save back to the parent window, and submit the data
from the parent window. You can then send a flag back to the parent, along
with the response, to indicate success. If the save was NOT successful,
then display the dialog window again. If you were successful, skip the
dialog.
Dale
"martin koenig" <gr********@gmx.xxx.net> wrote in message
news:Ou****************@tk2msftngp13.phx.gbl...
Hi
I'm opening an aspx page with javascript:
window.showModalDialog("mypage.aspx", "", "status:no");
In mypage.aspx I've got a button which shall first save the displayed
record in the C# code behind (this works fine) and if successfull, mypage.aspx
shall be closed (window.close).
Data saving and so on is working fine. My problem is the <... if
successfull, .... shall be closed>.
Can you help me with this?
Thanks
Martin