Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SaveEntity does not display Error Message
Message
From
21/06/2008 07:54:40
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
18/06/2008 17:22:38
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01325030
Message ID:
01325933
Views:
15
Hi Al,

>Adding a call to DisplayErrors works. I like working exclusively with the entities and I thought it would be nice if the SaveEntity method would complete the cycle. But for now, I'll probably stick with the page Save method.
>
Your welcome, glad you got it going. Remember though that displaying a message to the user is a UI thing and not a business object task. That is why the DisplayError is written in the base for the page class. Also, a business object or entity should not know anything about your UI implementation. I suppose it would be possible for Kevin to raise an event at the business level to notify any subscribers (UI) that a business rule was broken, but in this case the pages Save() is there for that purpose.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform