Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 23, 2012 03:12 PM by kamamusic
Aug 26, 2008 12:54 AM|LINK
How to refresh the page programatically by C# ? Please give me the sample code.
Aug 26, 2008 02:37 AM|LINK
You can try with Response.Redirect() method at the server side or use Form.Submit at Client side..
For more examples then you can refer to the following link below
Aug 26, 2008 04:29 AM|LINK
You can redirect on the same page using following code :
If you want to do on clientside and not the server,
Hope this will work.
Feb 23, 2012 05:00 AM|LINK
Worked for me! Thank you, exactly what I was looking for! Probably not the best way to trigger a postback, but did the refresh I needed it to do :)
Oct 19, 2012 12:53 PM|LINK
Is there a way to force the page reload from server and force bypass the browser's cache ?
Oct 23, 2012 12:58 PM|LINK
browser sometime is very "donkey": just add to "http://yoururl/YouPage.aspx" + "?anyparameter=1"
For example if I'm at page www.mysite.com/mypage.aspx?product=1 you need only to compose a new web url such as www.mysite.com/mypage.aspx?product=1&whateveryouwant=1
The browser look for the "new" address and ignore the cache.
Oct 23, 2012 01:03 PM|LINK
That's a pleasant workaround, thank you for your idea !
Oct 23, 2012 03:12 PM|LINK
var nuovourl = window.location.href + '';
nuovourl = nuovourl + (nuovourl.indexOf('?') > -1 ? "&refreshme=1" : "?refreshme=1");
window.location.href = nuovourl;
Hope this help.