Closing and refreshing windows

  • Thread starter Thread starter Arek
  • Start date Start date
A

Arek

Hello,

I have one window orders.aspx with idorder as
parameter(request.querystring("idorder"))
Now from that window I open window customer.aspx (target _blank)
Now, I would like to save changes and that is done and then close window
customer.aspx and refresh orders.aspx
Can I somehow achieve that in VB code?

Best Regards
Arek
 
you need to use client side code to achieve this,

window.opener.location.href = window.opener.location.href;
window.close()
 
There isn't any way to achieve that on the server side??
The reason for that is that I have condition (flag) checking from which
window user came and depending on it I refresh different window.
Regards
Arek
 
From server side still you can use this client side script to do this work.
Use page.registerstartupscript("name", "<script to referesh parent window
and close chilewindow") after you are done with your with server side work.
This script will be executed immd after your page is rendered in client
side.
 
Saravana

Thank you. It took me some time to figure out how to use this, but
finally it's working with the code that you gave me!

Arek
 
Back
Top