Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

programmatically "refresh" web page or browser or user control

Posted on 2015-01-13
2
Medium Priority
?
1,110 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…

722 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