Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling errors/warnings from the data access layer save
Message
From
23/09/2005 16:01:01
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Handling errors/warnings from the data access layer save
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01052549
Message ID:
01052549
Views:
61
Hi - We're overriding the SaveDataSet method of the SQL data adapter so that we can call a web service to save the data.

I've worked out getting error messages back and dumping them into the business rules object, but I can't seem to find a way to tell business object's SaveDataSet method that something went wrong (like when the pre-processing rules fail). The return value is just a row count.

The only way I can see to stop the rest of the save from processing is to throw an exception. I'm thinking there must be a better way that I'm not aware of.

Also, even though I populate the rules object, I don't get the popup from the business form alerting the user that there were errors (the red x's do show in the grid though).

This sounds like the same type of behavior that using stored procedures containing business logic would produce, so I'm hoping someone has solved this already.

Any help would be appreciated.

Thanks!

Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform