title: why and when to override and use OnPreRender in asp.net
body: <p>I m working on a code written by a another developer as below </p>
  
  <pre><code>  protected override void OnPreRender(EventArgs e)
      {
          PopulateGrid();
  
          base.OnPreRender(e);
      }
  </code></pre>
  
  <p>I would have called  <code>PopulateGrid();</code> method in the Page_Load event after checking the <code>postback</code> property. Are there any benefits we are getting in calling this method inside this <code>overriden OnPreRender</code>. And is it necessary to call <code>base.OnPreRender(e)</code>:?</p>