asp.net - Concurrency check when updating using GridView -
with sqldatasource, how can sure data i'm going update not modified in meantime when fetched data , when i'm make update.
<asp:sqldatasource id="sqldatasource1" runat="server" connectionstring="<%$ connectionstrings:chartdatabaseconnectionstring %>" selectcommand="select * [student]" updatecommand="update [student] set [studentname] = @studentname, [dob] = @dob, [age] = @age, [course] = @course, [city] = @city, [mobileno] = @mobileno [studentid] = @studentid">
is there gridview method or parameter can use ?
there propery on sqldatasource
named conflictdetection
. setting property compareallvalues
may trick you.
Comments
Post a Comment