title: Hide and Show Label and Button
body: <p>I have 2 labels and 2 text boxes and 1 buttons displayed.</p>
  
  <p>When the page loads the <code>Name</code> and <code>Button</code> (will be initially displayed). Later when i click on the <code>Button</code> i need to display the <code>age</code> <code>label</code> and <code>textbox</code>. How can i do this ?</p>
  
  <pre><code>&lt;ol&gt;
       &lt;li&gt;
            &lt;asp:Label runat="server" AssociatedControlID="Name"&gt;
               User name
            &lt;/asp:Label&gt;
            &lt;asp:TextBox runat="server" ID="Name" Width="167px" /&gt;
            &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
       &lt;/li&gt;                           
       &lt;li&gt;
            &lt;asp:Label runat="server" AssociatedControlID="age"&gt;age&lt;/asp:Label&gt;
            &lt;asp:TextBox runat="server" ID="age" TextMode="age" Width="240px" /&gt;
       &lt;/li&gt;                         
  &lt;/ol&gt;
  </code></pre>
  
  <p>code for button press</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
  {
  
  }
  </code></pre>