Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating and Parse problems
Message
 
À
01/04/2004 14:26:17
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00891209
Message ID:
00891654
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform