Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Values in user controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00898085
Message ID:
00898388
Vues:
10
Hi Robert,

When you work with UserControls, you need to "surface" the properties and methods that you need access to. What I mean is that you need to create a property in the UserControl class that gets/sets the TextBox's Text property. In the code-behind of the webform, you would call this new property on the UserControl to fetch the value stored in the Text property.


>hi!
>
>i've created several usercontrols (vb) which consist of a label an a textbox.
>these as placed onto the webform dynamically depending on which option the user selects; they are loaded with loadcontrol into a placeholder-object.
>
>till here everything works fine!
>
>now it becomes difficult: how can i save this (usercontrol) textbox.text?
>i do not use a dataset which is added to the project, i do create several 'temporary' dataset based on the selected webform.
>
>thanks for help!
-----------------------------------------

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