Hello Andy,
As for the Timestamp column in SQL Server, it is mapped to SqlBinary(for
SqlDataTypes) and byte[](for .net type). And if you want to use such as
custom column and detect confliction, you may need to manually use
SqlCommand or SqlDataAdapter to perform the update statement execution,
here is a knowledge base article describe on this:
#HOW TO: Use a TimeStamp Column to Detect Update Collisions in ADO.NET with
Visual C# .NET
http://support.microsoft.com/kb/317095/en-us
For the ASP.NET 2.0 SqlDatasource based databound, it only support two
built-in concurrency detection approachs:
1. Compare all the columns in table(do not include any timestamp type
column since SqlDataSource can not handle this type for type mapping)
2. Override the old value anyway.
So if you still want to utlize the DataSource mode, I suggest you consider
use ObjectDatasource and use a custom Data Access class which expose the
"Select", "Update", "Delete" ... methods.
Hope this helps some.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.