使用这个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方法或任何参数吗?