title: Why control's DataBind is called before control's Page_Load method?
body: <p>I have a set of controls nested into each other. The top-most control has 'DataBind()' method call in Page_Load which triggers DataBind() method call for the inner controls.</p>
  
  <p>I thought PageLoad should be fully completed before triggering DataBind events for controls (<a href="http://msdn.microsoft.com/en-us/library/ms178472(v=vs.100).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms178472(v=vs.100).aspx</a>). Is that correct? </p>
  
  <p>The problem is that this inner control don't have all data loaded (they should be passed from preliminary controls) and as a result crashed with NullPointer exception...</p>
  
  <p><strong>Questions related to that:</strong></p>
  
  <ol>
  <li>Why control's DataBind is called before control's Page_Load method?</li>
  <li>How to properly initialize control data so before DataBind() called for top-most parent, all bottom/nested controls will have all required data</li>
  </ol>
  
  <p>Thank you.</p>