1
Reply

Web User Controls - Direct Access

KlytusLord

KlytusLord

Aug 22 2006 10:44 PM
1.9k
Hello, I am trying to find a way to get access to controls inside a web user control directly from within the page holding the web user control. For example, say I have a Web User Control (MyControl) which contains a label (MyLabel). I then have a page (MyPage) which contains the Web User Control (MyControl) and also contains a text box (MyTextBox). What I want to do is have direct access to MyLabel as if it existed on MyPage instead of MyControl, so I could simply write something like MyTextBox.Text = MyLabel.Text. I hope my question makes sense. Thank you for any hints or resources to help with this. By the way, this needs to work in .Net 1.1. Thanks!

Answers (1)