title: When to load default content on a Master Page
body: <p>I have the following placeholder in my main master page.  I would like to not have to duplicate my news content in several content pages, so I choose to simply not provide this content in them, and the master page should provide its default.</p>
  
  <pre><code>&lt;asp:ContentPlaceHolder ID="SideBarContent" runat="server"&gt;
      &lt;asp:GridView ID="newsGrid" runat="server" AutoGenerateColumns="false" Width="100%"&gt;
          &lt;Columns&gt;
              &lt;asp:TemplateField&gt;
                  &lt;ItemTemplate&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
  &lt;/asp:ContentPlaceHolder&gt;
  </code></pre>
  
  <p>When I try the following code, I get an error because newsGrid is null.  I assume I'm doing this at the wrong place in the page lifecycle, but I don't know where the right place is.</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      Page.Header.DataBind();
      if (!IsPostBack)
      {
          newsGrid.DataSource = _newsService.ListActive();
          newsGrid.DataBind();
      }
  }
  </code></pre>