I'm calling this showModalDialog from the main form to confirm with the use that certain values are correct. When I do a postback to save the values to a variables, instead of closing like it should, it opens the confirm.aspx page in a new full-sized window.
calling page (orders.aspx):
confirm.aspx:
Is there any way to avoid this from happening?
calling page (orders.aspx):
Code:
at = Form1.chkAutoOffrent.checked;
var PopupWindow=null;
var opt = 'dialogWidth:350px; dialogHeight:230px; center:yes; scroll:no; status:no';
window.showModalDialog('confirm.aspx?auto='+at, '',opt);
confirm.aspx:
Code:
<script language="javascript">
<!--
function closeMe(){
self.close();
}
//-->
</script>
Is there any way to avoid this from happening?