title: Get user control element text from aspx page in asp.net
body: <p>I want to get text value of my label from user control in my aspx page to make it null.How to I access that . I tried that but this is not working</p>
  
  <p>I have a pane in which user control is present</p>
  
  <pre><code>&lt;%@ Register Src="~/General/Setup/UserControl/Branch.ascx" TagName="Branch" TagPrefix="uc1" %&gt;
  
  &lt;asp:Panel ID="pnlBranchAdd" runat="server" Width="60%"&gt;
  
       &lt;div class="lgbx"&gt;
           &lt;div class="bx_bor"&gt;
             &lt;div id="divClose" align="right" style="height: 6px;z-index:-1;" &gt;
            &lt;asp:ImageButton runat="server" ID="Close" ImageUrl="../../Images/icn_close2.png" 
               CssClass=style3 onclick="Close_Click" Height="34px" Width="36px" /&gt;
      &lt;/div&gt;
            &lt;div class="content"&gt;
             &lt;h2&gt;
             &lt;strong&gt;Branch&lt;/strong&gt;&lt;/h2&gt;
            &lt;uc1:Branch ID="Branch" runat="server" /&gt;
              &lt;/div&gt;
           &lt;/div&gt;
        &lt;/div&gt;
     &lt;/asp:Panel&gt;
  
  
  
  
  Need help
  thanks.
  </code></pre>