title: What if you want webpart communication before Page_Load?
body: <p>I am needing to create some dynamic controls at Page_Load in the consumer webpart. In the Provider webpart I did some hacking and got it so I could get a controls value before viewstate is loaded in Page_Init. </p>
  
  <p>So basically what I want is for webparts to be able to communicate before Page_Load. </p>
  
  <pre><code>[ConnectionConsumer("FormRID Consumer","FormRIDConsumer")]
  public void InitializeProvider(MyControl.IFormRID provider)
  {
      theProvider = provider;
      FormRID = theProvider.FormRID;
  }
  </code></pre>
  
  <p>That method doesn't get called until after Page_Load. This is a big problem for me because my consumers Page_Load depends on FormRID being set and accurate. I can't move my Page_Load code into Page_LoadComplete either because I am needing to create dynamic controls with viewstate(viewstate isn't restored after Page_Load) </p>
  
  <p>So is there some work around I can use so that I can communicate before Page_Load. </p>