title: AJAX-Loaded Content Into a DIV.. Which Page Owns/Controls What?
body: <p>I'm using the jQuery load() function to bring some content from a secondary ASPX page into a DIV on a primary ASPX page.  The content in question contains a button control and a label control, with click event code for the button (residing in the code-behind of the secondary page) that subsequently populates some text into the label control.  The secondary page works fine by itself.</p>
  
  <p>On the primary page, using the load() function brings the button and label into the DIV just fine.  What I'm trying to understand is where the scope lies for the loaded content.  It's now resident in the primary page's DOM, which to my mind suggests that it is under the control (if that's the right word) of the primary page.  However, clicking the button results in the secondary page 'taking over', with a refresh back to the secondary page with the text properly populated in the label.  This result would suggest that there is some sort of hybrid hierarchy in terms of page scope, particularly for that loaded button control and its related click event.</p>
  
  <p>Is there a clear rule or definition that defines this relationship?  It's obviously critical to understand from a standpoint of coding pages that contain load()'ed content.</p>
  
  <p>Thanks all.</p>