Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Class Properties
Message
De
16/08/2004 13:08:18
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Custom Class Properties
Divers
Thread ID:
00933621
Message ID:
00933621
Vues:
59
I have create a custom textbox class with custom properties that inherits from the textbox base class.
I create a webform and drop 5 instances of the custom textbox control in the webform.
Also i put a command button un the webform.
In the click event of the command button i have the following code....
Dim loControl As Control
For Each loControl In Page.FindControl("Form1").Controls
   With loControl
       Text = "Hello"
   End With
Next
The problem is that 'Text' property is not directly available. In the watch window locontrol doesn't show the property 'Text'. I found the property under the control base class section. How I reference that section in code to get the property values?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform