阅读背景:

Asp.Net SQL刷新页面重复插入?

来源:互联网 

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 issue is, that if the user hits refresh, it will keep inserting the same data into the database. I am pretty sure the whole "click" method is called, not just the insert call. I tried messing with sessions but it complains. I am not really sure what to do. I am looking for a simple easy fix.I have a *.aspx page that contains a text box a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: