Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Validation when leaving controls in web form
Message
 
To
03/09/2010 08:13:50
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01479579
Message ID:
01480715
Views:
40
>>>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.

I haven't tried using the rules except right before a save but what you want seems like it ought to work. I would think you would need to use oBizObj.Rules.CustomRule(param1, param2 ...) to call a specific rule or oBizObj.Rules.CheckRules(.....) to check all the rules. You probably want to use the Validated() or Leave() event because the data is not yet bound in the Validating() event. Seems like that's what the web form instructions would have suggested as well, though. If I get a chance to try it, I'll let you know.
Linda Harmes
HiBit Technologies, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform