There's one final property setting that needs to be made in order for the ObjectDataSource to correctly pass the original values to the dataset methods (eg. Update, Delete) The ObjectDataSource has a ConflictDetection property that can be assigned to one of two values:
* OverwriteChanges - the default value; does not send the original values to the dataset methods' original input parameters * CompareAllValues - does send the original values to the dataset's methods; choose this option when using optimistic concurrency
Take a moment to set the ConflictDetection property to CompareAllValues. (The above is a partial excerpt from The Official Microsoft ASP.NET 2.0 Site)
..- If you don't do this you will get this exception: "System.ArgumentNullException: Value cannot be null. Parameter name: Original_(whatever the field name)" when trying to get optimistic concurrency working.
tagged: professional // Comments [1]
Related posts:Select a random row in MS SQL...Regular expressionsVS2005, ASP.NET 2 & DLLs, DLLs..MS's ASP.NET and.. PHP2-way databinding cascading drop down lists within a FormViewApplicationName Property when customising providers
Disclaimer The posts on this blog are provided "AS IS" with no warranties. The opinions expressed herein are my own personal opinions and do not represent any other person's views in anyway.