Click to See Complete Forum and Search --> : Response.redirect


arnabghosh2005
05-09-2005, 09:10 AM
Hi,
I am using window.open(url) to open a new page which is doing some checking and then returning back to the original page, but since I am using Response.redirect to return back, the original page is opening in a new window and not getting back to the window containing the original page. Suggest a better way to do this since I don't want to open new windows everytime I redirect. I have to use window.open()

buntine
05-09-2005, 09:51 AM
If I understand you correclty, I would say its more of a JavaScript question.

Yuo may need to use the following line of JavaScript code within the opened window. This will refresh the parent window:

<script language="JavaScript">window.opener.location.reload();</script>

You can also close the opened window by placing window.close(); after the preceding line.

Regards.

arnabghosh2005
05-10-2005, 01:35 AM
I have used window.opener.location.reload() as you suggested but still a new window is opening.

buntine
05-10-2005, 03:03 AM
Ok then. Try asking your question the JavaScript forum.

wmif
05-10-2005, 04:09 PM
post some code, cus the suggestion should work.