Conflictdetection Property of Objectdatasource Control - Part 16
Conflictdetection Property of Objectdatasource Control - Part 16
Conflictdetection Property of Objectdatasource Control - Part 16
Support us .Net Basics C# SQL ASP.NET ADO.NET MVC Slides C# Programs Subscribe Buy DVD
Suggested Videos
Part 13 - Deleting data from gridview using sqldatasource control
Part 14 - ConflictDetection property of SqlDataSource control
Part 15 - Deleting data from gridview using objectdatasource control
Best software training and placements in
marathahalli, bangalore. For further
details please call 09945699393.
In Part 15 of the asp.net gridview tutorial we discussed about deleting data from
CBSE Class 9 Maths
gridview control using objectdatasource control. We did not discuss about concurrency
Number Systems
in Part 15. Let me explain what I mean.
1. When you access the webform, data is loaded into gridview control.
2. While you are looking at this data in the gridview control, someone else has updated CPT Tutorial
a row in the database table Part 1 : Video | Text | Slides
3. Now, in the gridview, when you click the delete button on the row that has changed,
the row gets deleted.
Important Videos
The Gift of Education
http://csharp-video-tutorials.blogspot.in/2013/03/conflictdetection-property-of_6.html 1/4
8/28/2017 Sql server, .net and c# video tutorial: ConflictDetection property of objectdatasource control - Part 16
SqlParameter paramCity = new SqlParameter("@original_City", original_City); WCF
cmd.Parameters.Add(paramCity);
con.Open(); ASP.NET Web Services
cmd.ExecuteNonQuery();
Dot Net Basics
}
} C#
Compile the project and re-configure ObjectDataSource1 control, to use the above SQL Server
method as it's DELETE method.
ADO.NET
Finally on "ObjectDataSource1" control, set properties
ConflictDetection="CompareAllValues" ASP.NET
OldValuesParameterFormatString="original_{0}"
GridView
SQL Server
Written Test
http://csharp-video-tutorials.blogspot.in/2013/03/conflictdetection-property-of_6.html 2/4