Simple trick to do a refresh after POSTback

Just a quick trick to do a full refresh of your page after that page has had a postback. You know, that's when, if you hit F5, you get the dialog:

On Fritz Onion's weblog I saw a trick that I think I can beat. Here are my two ways of doing it:

  1. Place a space after the URL and press ENTER.
  2. (This is the best one) Drag the IE icon in front of your URL in the address bar just outside of the bar and back in again. Just follow a path similar to the one in the picture below.

I have noticed that after a change of one of the files in the web application the dragging trick will not always force a recompile. Then you can use trick 1 or the one of Fritz.

Have fun.

Filed under:

Comments

# David Grant said:

I typically add some unimportant garbage on the querystring to accomplish that. pretty funny about the IE icon drag thing :)

IE7 appears to have fixed this, so if you just hit enter in the address bar on a POST'ed page, it'll do a GET.

dinsdag 10 oktober 2006 22:57