Search This Blog

2009-10-06

Disable cache for Popup window in asp.net

Add a timestamp querystring variable to the URL of the dialog content - number of ticks since 1/1/08 or something - IE will treat it as a new page and ignore the cache.

url = "<Some url with query string>"
var date = new Date();
window.showModalDialog(url + "&" + date.getTime(), ... );

No comments: