title: How to access .Net element on Master page from a Content page?
body: <p>Is it possible to access an element on a Master page from the page loaded within the <code>ContentPlaceHolder</code> for the master?</p>
  
  <p>I have a ListView that lists people's names in a navigation area on the Master page. I would like to update the ListView after a person has been added to the table that the ListView is data bound to. The <code>ListView</code> currently does not update it's values until the cache is reloaded. We have found that just re-running the <code>ListView.DataBind()</code> will update a listview's contents. We have not been able to run the <code>ListView.DataBind()</code> on a page that uses the Master page. </p>
  
  <p>Below is a sample of what I wanted to do but a compiler error says </p>
  
  <blockquote>
    <p>"PeopleListView does not exist in the current context"</p>
  </blockquote>
  
  <p>GIS.master - Where ListView resides</p>
  
  <pre><code>...&lt;asp:ListView ID="PeopleListView"...
  </code></pre>
  
  <p>GISInput_People.aspx - Uses GIS.master as it's master page</p>
  
  <p>GISInput_People.aspx.cs</p>
  
  <pre><code>AddNewPerson()
  {
      // Add person to table
      ....
  
      // Update Person List
      PeopleListView.DataBind();
      ...
  }
  </code></pre>
  
  <p>What would be the best way to resolve an issue like this in C# .Net?</p>