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!

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x