简体   繁体   中英

Refresh the parent page and open link in new tab

I am opening a SSRS report from C# asp.net.After opening the report I need to refresh the parent page. I have given the url to the report directly in the code.

In the code behind,

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + url + "','_blank')", true);

It opens the page in the new tab.But I would need to refresh the parent page. Please let me know if I could refresh the parent page after opening the SSRS link.

Thanks!

You can add location.reload(); to your event handler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM