I got this warning message “To display the webpage again the web browser needs to resend the information you have previously submitted.” in Internet Explorer when I tried to perform a PostBack in ASP.Net Page.
Cause
This issue usually occurs in case you are using Post method in your form tag with “location.reload” method as shown below:
'onClosed': function() { window.location.reload(); }
Solution
First, change the form method in HTML file from POST to GET. to avoid double form submitting.
Although this change will solve this issue “To display the webpage again the web browser needs to resend the information” but I can’t send a value using the “QueryString” value in URL because of I am using the reload function as shown below:
'onClosed': function() { window.location.reload(); }
In this case, I should change window.location.reload() to window.location=’URL’ or window.location.href =’URL‘
Note: If you are using a QueryString in URL and you don’t need to lose the current value after reloading, in this case, you should bind query string “?Lang=<%=Request.QueryString[“Lang”]%>” to “window.location” as shown below:
window.location='../Default.aspx?Lang=<%=Request.QueryString["Lang"]%>'
Many thanks you save my day
Awesome article.