title: Accessing object in parent user control from child user control
body: <p>So I have a user control, Parent.ascx:</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="Parent.ascx.cs" 
      Inherits="Parent" %&gt;
  &lt;%@ Register TagPrefix="cc" TagName="Child" Src="~/Child.ascx" %&gt;
  
  &lt;asp:HiddenField ID="hfId" runat="server" /&gt;
  
  &lt;cc:Child ID="child1" runat="server" /&gt;
  </code></pre>
  
  <p>My child control Child.ascx contains a button, and in the code-behind I'd like to access the value of the hidden field <code>hfId</code> in the click event of that button</p>
  
  <p>I can't use a user control attribute and set it on <code>Page_Load</code> because the value of that hidden field is changing through jQuery events in the Parent.ascx control</p>