I'm triggering a page reload through javascript, using the following:
window.location.reload(true);
However, in some cases (of previous postback), the browser is giving me the following warning "To Display the webpage again, the web browser needs to resend the information you've previously submitted...".
Is there any way of avoing this message and just doing the postback anyway, because this might be confusing for the users? If I need to reload the page by another means, so be it.
if you want to refresh the page without including post data and not just postback try
window.location = window.location.href;
I don't think there is any way to do a postback without the message when you are doing the reload.
Btw, whats the reload for? If it is for submitting the POST information again, i suggest you manually submit the data through ajax or a hidden form submission using javascript.
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