Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Control Question
Message
From
23/06/2006 10:05:43
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01131113
Message ID:
01131131
Views:
15
>Hello All, I just created my first user control in VS 2005, it consists of a TabControl with two pages, and several textboxes and labels on each page, I built it, and added it to my toolbox, however !, having placed the control on a form, I cant access any of the controls within it ?, is this normal ?, I expected the UC to behave like a VFP container, obviously they don't

You first need to find the control on the page in order to establish a reference to it. I usually do something like:
loControlUserControl = oApp.oPage.FindControl("LXUpload" + loRowUpload("Numero").ToString)
Then, from this object, you can find inside control by using the same in order to establish a reference from within it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform