views:

83

answers:

1

I was wondering if I'm supposed to stick to sqldatasources and objectdatasources to fill asp.net webcontrols and if programatically binding controls is a bad practice because you have to manually control concurrency. My main concern is if there is a good approach to control concurrency without the use of the sqldatasource and object datasources

A: 

There are a few different approaches and otyu need to pick the one that best suits your needs.

A common approach is to amend you stored procedures to check for old values. see this article: http://articles.techrepublic.com.com/5100-10878%5F11-1050108.html

You can use DataRowVersion of your DataROw object to look at original, current and proposed values.

I hope this helps

Davy