title: How to get updated page information through C# WebBrowser when updatePanel AJAX event happens?
body: <p>I am automating a scenario in WPF using <code>WebBrowser</code>. Code snippet is as follows</p>
  
  <pre><code>string id = paginationControlProcessing[1].PageCtrl.id;
  webDoc.GetElementById(id).GotFocus += new HtmlElementEventHandler(wb_OnGotFocus_PaginationControls);
  webDoc.GetElementById(id).Focus();
  
  webDoc.GetElementById(id).RaiseEvent("onChange");
  webDoc.InvokeScript("__doPostBack", new object[] { "ctl00$ContentPlaceHolder1$pgControl$nextPageLink", "" });
  </code></pre>
  
  <p>When the page changes through pagination control, I am able to hit the event handler for focus change. Problem is happening when pagination controls are hit where I am not able to retrieve the data for 2nd and 3rd page.</p>
  
  <p>I can do the page navigation and it works in the WebBrowser control. Data is also updated in the table to which these ASP.net AJAX controls are attached. In the event handler, when I look into the content of object WebBrowser1, it does not contain the content of new data that appears in the UpdatePanel control. Data for the control when 2 and 3 are clicked comes through <a href="https://msdn.microsoft.com/en-us/library/bb386454.aspx" rel="nofollow">UpdatePanel</a> ASP.Net control.</p>
  
  <p>What event can be used to capture the data coming for UpdatePanel control from server? </p>