title: How to access user control properties if i load it programatically?
body: <p>i loaded my user control (.ascx) programmatically like: <code>LoadControl("~/Controls/mycontrol.ascx")</code>. Every thing was ok until today when i added two members to my control:</p>
  
  <pre><code>public StuffType stuffType { get; set; }
  
  protected void Page_Load(object sender, EventArgs e)
  {
      switch (stuffType)
      {
          case CardType.A:
              FillGvStuff();
              break;
          case CardType.B:
              FillGvExStuff();
              break;
          default:
              break;
      }       
  }
  </code></pre>
  
  <p>how can i access StuffType?</p>
  
  <p>i found a kind of <a href="http://msdn.microsoft.com/en-us/library/c0az2h86%28v=vs.85%29.aspx" rel="nofollow">solution</a>.</p>