0

For example, clicking a button, random text is written in the textbox. I refresh the page and write different random text in the textbox.

This message appears when refresh: Confirm Form Submission The page you are looking for used the information you entered. Returning to that page may cause your actions to be repeated. Do you want to continue?

Aycan Candar
  • 63
  • 1
  • 9

1 Answers1

0

After disscussion we had in comment section, you want to avoid confirm form resubmission warning message.

So you can also use this Javascript that is mentioned here. It should work for asp.net too:

if ( window.history.replaceState ) {
  window.history.replaceState( null, null, window.location.href );
}
Selim Yildiz
  • 5,254
  • 6
  • 18
  • 28