Solved

programmatically "refresh" web page or browser or user control

Posted on 2015-01-13
2
919 Views
Last Modified: 2015-01-13
Can Javascript programmatically do the same thing as pressing "F5"  (browser refresh) inside of a browser (like IE5 or Chrome)?

I have a User Control which, during the page life-cycle, gets assigned to it's datasource and lists the items it is given (according to what comes back from the database).

Is there a way to cause a control to do this programmatically after deleting or adding list items?

I am in Visual Studio 2010.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 40547241
In javascript, if you want to refresh a page you can do:

window.location.reload();

Open in new window

A Ctrl+F5 (that invalidate all browser cache) is like:
window.location.reload(true);

Open in new window

0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 40547513
That works!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question