Asp.Net SQL Refresh page duplicate inserts?

前端 未结 4 1661
悲哀的现实
悲哀的现实 2021-01-24 16:51

I have a *.aspx page that contains a text box and a button. When the user enters information in to the textbox and clicks post, it inserts the data into my sql database. The iss

4条回答
  •  囚心锁ツ
    2021-01-24 17:27

    if he refreshes or press the back button the post will happen again, thus your page will process the same data thus insert once again.

    You have to change your logic

提交回复
热议问题