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.comwww.prenia.comWeblog: blogs.prenia.com/cathi