title: Execute JavaScript command on website from C# application?
body: <p>I'm on <a href="http://www.roads.maryland.gov/pages/cic.aspx?PageId=857&amp;Type=sum" rel="nofollow">this page</a> and I'm trying to get to page 2 and it seems they use JavaScript to load the pages.</p>
  
  <p>If I open up the Console in Firefox and paste in </p>
  
  <pre><code>javascript:__doPostBack('ctl00$PlaceHolderMain$CICContract1$gvSSP','Page$2')
  </code></pre>
  
  <p>the second page is loaded.</p>
  
  <p>I was wondering if there is a way to do this in C#, perhaps through the WebClient? I'm looking to loop through all the listed pages and the alternative using WebRequests was extremely unwieldy.</p>
  
  <p>Edit: I don't have access to the internals or source code of the site. I'm writing a web crawler.</p>