有了这个 SqlDataSource,我如何确保在我获取数据和即将进行更新的同时我要更新的数据没有被修改。
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ChartDatabaseConnectionString %>"
SelectCommand="SELECT * FROM [Student]"
UpdateCommand="UPDATE [Student] SET [StudentName] = @StudentName, [DOB] = @DOB, [Age] = @Age, [Course] = @Course, [City] = @City, [MobileNo] =
@MobileNo WHERE [StudentID] = @StudentID">
是否有任何 GridView 方法或我可以使用的任何参数?