title: Setting a textbox text in usercontrol from page
body: <p>I have a usercontrol which contains a textbox. I now want to add variable to that user control, lets call it Text, which will populate the textbox with the value passed in. I thought this could be done in the "set" of the variable in the code behind of the user control.</p>
  
  <pre><code>public string Text
  {
      get {}
      set
      {
          txtBox.Text = value;
      }
  }
  </code></pre>
  
  <p>txtBox is the ID of the textbox within the usercontrol. Does anyone know how this can be done?</p>
  
  <p>Thanks</p>
  
  <p><strong>Edit</strong>
  The problem I suspect is that I am setting the text value in the Page_Load of the page hosting the user control. Where should I be setting this value? </p>