all groups > asp.net datagrid control > december 2007 >
You're in the

asp.net datagrid control

group:

How to catch errors when databinding


How to catch errors when databinding Axel Dahmen
12/8/2007 9:02:09 AM
asp.net datagrid control:
Hi,

I'm new to binding a <asp:FormView> control to an <asp:ObjectDataSource> =
control.

Binding appears to work fine. But I can't find any information on how to =
deal with errors when they appear, e. g. when a user deletes a row being =
foreign key referenced by another row in another table, or if he/she =
inserts a new row creating duplicate keys...

In case of a database error I'd like to show a message like those coming =
from the <asp:ValidationSummary> control.

Any help is quite appreciated.

Best regards,
Axel Dahmen=20
RE: How to catch errors when databinding stcheng@online.microsoft.com
12/10/2007 3:39:31 AM
Hi Axel,

Regarding on this issue, I've replied you in same thread you posted in
following group:

microsoft.public.dotnet.framework.aspnet.webcontrols

Please feel free to have a look and followup there.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
[quoted text, click to view]
deal with errors when they appear, e. g. when a user deletes a row being
foreign key referenced by another row in another table, or if he/she
inserts a new row creating duplicate keys...
[quoted text, click to view]
AddThis Social Bookmark Button