Link to home
Start Free TrialLog in
Avatar of s_chilkury
s_chilkuryFlag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of Ashish Patel
Ashish Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of s_chilkury

ASKER

Even if you let the Xcel sheet download it OR cancel it, it will still keep on the same page. Infact the Xcel caller function is written on popSSContract.asp, and it still shows up as popSPMContract.asp.

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>
Forced accept.

Computer101
EE Admin