Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my asp.net project, I opened a page (Page A) and did some work there. Then I opened another page (Page B). The, I came back to Page A again, and could see that Page A with some contents presented before still there. How can I get Page A totally fresh as it was initially loaded? Thanks.
Posted
Comments
Karthik. A 7-Nov-13 14:45pm    
There are 2 possibilities - One, if Page A has to present dynamic content to be presented, you can use ajax to reload parts of data. Two - if there is just static information, why would you want to update/refresh the page, unless the user wants it to be refreshed? Simplest possible way to refresh entire page without user action is using meta tags - http://www.w3schools.com/tags/att_meta_http_equiv.asp. But I really do not advice using this! May be you can elaborate your question to get pertinent answers!
José Amílcar Casimiro 8-Nov-13 8:58am    
Are you using client-side script to go from PageB to PageA or server side-script?

1 solution

Use things like jQuery/AJAX, SignalR

EDIT
-----------------
Check this jQuery sample
Refresh parent page partially from iframe without reloading the iframe using javascript in asp.net[^]

And check this past answer for reloading the parent page when you close child page
I am using two pop up window how to reload first window closing second popup window[^]

You could the Timer[^] for automatic refresh with mentioned interval.

So play(& combines these if possible) to achieve things.
 
Share this answer
 
v2
Comments
[no name] 13-Nov-13 9:08am    
thatraja: Your solution is too short to be understood. Appreciate if you can provide step-by-step walkthrough procedure. Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900