Closing a window
-
I have a problem that when I close a modal window on web forms button click, a new modeless window is opened with the same form loaded on it. Please help me. aasstt
you have to use this script in the parent page var rc=window.showModalDialog('PageName.aspx?','','dialogHeight:350px;dialogWidth:363px;'); if(rc==null){document.PageName.submit(); the "if(rc==null){document.PageName.submit();" is to refresh the parent window after closing the child window In the Child window window.close();
-
you have to use this script in the parent page var rc=window.showModalDialog('PageName.aspx?','','dialogHeight:350px;dialogWidth:363px;'); if(rc==null){document.PageName.submit(); the "if(rc==null){document.PageName.submit();" is to refresh the parent window after closing the child window In the Child window window.close();