HighTechTalks DotNet Forums  

How to catch errors when databinding

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss How to catch errors when databinding in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Axel Dahmen
 
Posts: n/a

Default How to catch errors when databinding - 12-08-2007 , 02:02 AM






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


Reply With Quote
  #2  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default RE: How to catch errors when databinding - 12-09-2007 , 09:39 PM






Hi Axel,

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

microsoft.public.dotnet.framework.aspnet.webcontro ls

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.


--------------------
Quote:
From: "Axel Dahmen" <KeenToKnow (AT) newsgroup (DOT) nospam
Subject: How to catch errors when databinding
Date: Sat, 8 Dec 2007 09:02:09 +0100
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...
Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.