问题描述
我有一个asp .net页面,其中显示了一个内嵌复选框列的gridview. asp .net页面包含两个带有文本成功",失败"的按钮.
问题是,列出所有已通过考试的学生的gridview可以由两个管理员访问,例如,他们将选中同一行的复选框,然后单击成功",而另一个单击失败".这样我就可以在数据库中进行并发访问了.因此,有什么方法可以防止数据库中出现这种情况.
请注意,该网页还包含其他两个gridview,第一个列出了成功通过考试的学生,第二个列出了未通过考试的学生.
I have an asp .net page which shows a gridview that embed a checkbox column. the asp .net page include a two buttons with text "succed" "fail".
The problem is that the gridview which lists all students that have passed an exam can be accessed by two managers who will for example check the check box of the same row and one click "succed" and the other "fail". so i ll have a concurrent access in the database. so is there any way to prevent that in the database.
Note that the web page includes also two other gridview one first one lists the students who succeded in the exam and the second one lists the student which fails.
推荐答案
这篇关于防止并发访问sql服务器数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!