Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters and arrays
Message
From
05/08/2010 23:44:58
 
 
To
05/08/2010 22:59:44
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01475479
Message ID:
01475488
Views:
32
>What do you mean by the method being a success? How do you handle errors. What you are doing is not how things should work in .NET. Spend some time looking at the design guidelines. http://msdn.microsoft.com/en-us/library/ms229042.aspx

For example, if a method should initialize a cValue property based on something. However, depending on the logic, if a specific validation occurs, this would return False indicating the the cValue couldn't be set. Another scenario if the Overrides Validate() method of my DataEntry class. If a validation occurs, such as a mandatory field which has not been set, then cHtml would contain the validation message to return to the user, the method would return False and the framework would know that the flow of logic will be adjusted accordingly, such as not proceeding with the Save(). This design has been used for years at multiple corporate environments and I feel very happy with that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform