Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get firing twice
Message
De
07/11/2006 10:24:46
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01166560
Message ID:
01167656
Vues:
10
Try putting a breakpoint on the get statement, then when it stops, take a look at the Call Stack window to see how it got there.

~~Bonnie

>Hello All, I have a usercontrol (uc) which consists of a maskedtextbox and a button, the uc has an overridden property called "Text" which has get and set methods, I have several instances of this uc on a form. On exiting the form I retrieve the "Text" values for validation reasons, however, I have noticed , although I only "get" the control's "Text" value once, the method is actually being called twice, I discovered this by placing a MessageBox statement in the "get" method ( for other reasons ), any ideas as to why this is happening ?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform