title: Asp.Net UserControl - accessing a child control in the parent page
body: <p>If for example my <strong>userControl</strong> has a <strong>CheckBox</strong> called <strong>IsGreatCoder</strong> and the userControl is embedded in a main page (parent page).</p>
  
  <p>I normally have gained <strong>access to the IsGreatCoder.Checked</strong> value in the main-page by exposing it through a <strong>public property</strong> that I have to manually write (say "IsAGreatCoder").</p>
  
  <p>If UserControl is included in the main page as "<em>userControl1</em>", then I would access it as <strong>"userControl1.IsAGreatCoder".</strong></p>
  
  <p>But, I was wondering if there was anyway to declare the UserControl such that all the UI controls added to it were declared as being public, that way allowing me to gain access to the actual controls in the main page (the parent).</p>
  
  <p>Essentially I would like to be able do something like
  <strong>userControl1.IsGreatCoder.Checked</strong>
  instead of having to implement a property.</p>
  
  <p>The reason I want to do this is that I want to have access to many more of the check-box's properties and it would be a pain to implement each one as a public property.</p>