Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to bypass Validating event when closing form?
Message
From
11/02/2008 15:48:43
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01291525
Message ID:
01291604
Views:
9
Not sure of your specific scenario but, in general, the trick is in remembering that the validation of a control that is *losing* focus only occurs if the control *receiving* the focus has 'CausesValidation' set to true.

OK - that was it. Thanks again. I looked all this crap up in MSDN before posting here, and the topic on Control.Validating Event never mentions this fact. The help might be a little more helpful if it mentioned these things. Maybe we need a Hacker's Guide for .NET < g >
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform