Is there a Page.Refresh type of command to refresh a page?
I don't want to redirect to the page or refresh in JavaScript.
You can try with Response. Redirect() method at the server side or use Form.
Response. Write("<script type='text/javascript'> setTimeout('location. reload(true); ', timeout);</script>"); Put the above code in button click event or anywhere you want to force page refresh.
A refresh mean a complete reload of the page, without any form data. This is essentially an HTTP GET . A post back is when the page is posted to itself (through the form action="" ). This is essentially an HTTP POST .
I think this should do the trick (untested):
Page.Response.Redirect(Page.Request.Url.ToString(), true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With