We help IT Professionals succeed at work.
Get Started

Redirect in a Popup and close the popup

s_chilkury asked
Last Modified: 2012-08-13
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
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE