s_chilkury
asked on
Redirect in a Popup and close the popup
I have a page named ContractList.asp. This calls a popup (popSPMContractDate.asp) which has a date and validates a proper date which in turn is taken to the database to save it (using form "POST" method redirecting to the same page ) and then we are redirecting it to another popSSContract.asp by response.Redirect.
Now, the problem is here in popSSContract.asp. This page does nothing but processes the excel using Softartisans and opens up a window to display 'Open' 'Save' dialog box for the user. After the user saves or cancels it, if you look at the page from where it is called it still shows popSPMContractDate.asp in the background which is wrong. instead it should have shown up popSSContract.asp.
I have tried writting closing this popSSContract.asp but all efforts in vain. I think its an issue with popup in a popup using ASP.
I want to close this redirected popup after the processing is done.
I have already tried writing window.opener.close && self.close etc etc.
Thanks in advance
Now, the problem is here in popSSContract.asp. This page does nothing but processes the excel using Softartisans and opens up a window to display 'Open' 'Save' dialog box for the user. After the user saves or cancels it, if you look at the page from where it is called it still shows popSPMContractDate.asp in the background which is wrong. instead it should have shown up popSSContract.asp.
I have tried writting closing this popSSContract.asp but all efforts in vain. I think its an issue with popup in a popup using ASP.
I want to close this redirected popup after the processing is done.
I have already tried writing window.opener.close && self.close etc etc.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes that is what i am saying. Try one way, rather than redirecting try submitting the form to that page and at the end of the page write a script like this. There are few chances that this will work.
<script>
window.close();
</script>
<script>
window.close();
</script>
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
ASKER