Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating and Parse problems
Message
 
To
01/04/2004 14:26:17
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00891209
Message ID:
00891654
Views:
18
Hi Jim,

I have heard that throwing an error in the parse eventhandler will restore the value. You would need to catch the error.

>I've investigated this further. It appears to have nothing to do with the Mere Mortals framework, as I have reproduced the problems using a directly subclassed TextBox.
>
>Near as I can tell, the Validating event just doesn't work as I would expect. Setting Cancel to true doesn't seem to stop anything from happening; all it does is restore the textbox to it's state before I typed anything after running through all its usual stuff. I cannot find a way to keep the changes in the textbox so I can fix a minor typo. Instead I have to retype the entire contents. Is this the way it is supposed to work?
>
>...Jim
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform