title: Make User Control hide/show
body: <p>I have a main page: Main.aspx and 2 user controls User1.ascx and User2.ascx. First, i want User2.ascx to be invisible.I have a hidden value in the main page control. And if value of hidden value is not null then show user2.ascx. I have typed the code in the prerender function on user2.ascx.</p>
  
  <p>Currently, what I try</p>
  
  <p>In Main.aspx</p>
  
  <pre><code>&lt;usercontrol:User1 runat="server" ID="user1control" Visible = "false"  /&gt;
  </code></pre>
  
  <p>By this, 
  In User2, it comes only in pageload event but not in OnPreRender.</p>
  
  <p>I have my all code in OnPreRender</p>