在表格中插入两次记录 [英] Insert Record two time in table
本文介绍了在表格中插入两次记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello先生,
我为TimeSheet创建了一个模块。当我点击保存按钮StartTaskTime,EndTaskTime,TaskDescription这个记录存储在表中时。我已经实现了。
但是我遇到了一些问题。就像我将点击保存按钮记录是存储但是当我再次刷新此页面时,此记录被添加到表格中。
我不是什么问题以及我如何解决。
我希望你能给我一些解决这个问题的想法。
谢谢你的高级...
Hello Sir,
I have make one module for TimeSheet.In that When I click on Save button StartTaskTime,EndTaskTime,TaskDescription this record store in table.That is I have implemented.
but I get some problem.like One`s I will click on Save button record is store but when I refresh this page again this record is added into table.
I dont what the problem and how I solve.
I hope you give me some Idea about this to solve this problem.
Thank you on advanced...
推荐答案
我相信你有重复的请求问题。检查这个很酷的使用ASP.NET MVC中的ActionFilters阻止重复请求 [ ^ ]解决方案的文章
I believe you are having repeated request problem. Check this cool Prevent Repeated Requests using ActionFilters in ASP.NET MVC[^] article for a solution
这篇关于在表格中插入两次记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文