Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Validation when leaving controls in web form
Message
From
07/09/2010 14:14:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
03/09/2010 08:13:50
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01479579
Message ID:
01480429
Views:
52
>>>I am wanting to call my Business Rules when I leave a control on a web form. I've found an example in the help for winforms, is there a similar example for web forms as I am so far not having success in adapting the sample.
>>Have you tried executing the form's Save method? I'm not using web forms but it seems like that might accomplish what you need.
>
>Hi Linda,
>
>I don't want to save the data at this point in time. I just want to do the validation at the point where the user enters data in a particular field as well as at the point where the data gets saved.


Frank,

You can call your business rules yourself anytime you want to. You may want to consider however that with a web form this may cause a post back each time. You will need to trigger a post back and then you can get to your rules object via the business object and you can call the validation methods you have there individually. Is your plan to check the rule for each control as they leave it? What will you do if the rule is broken?

Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform