title: programmatically clicking on button in webbrowser control not working
body: <p>from this <a href="https://www.logisticsinformationservice.dla.mil/BINCS/begin_search.aspx" rel="nofollow">page</a></p>
  
  <p>I am trying to load a duns number and hit submit</p>
  
  <pre><code>webBrowser1.Document
             .GetElementById("ctl00$cphMainPageBody$txtDUNS")
             .SetAttribute("value",  "116811088");
  webBrowser1.Document
             .GetElementById("ctl00_cphMainPageBody_btnSubmit")
             .InvokeMember("Submit");
  </code></pre>
  
  <p>The text enters just fine but when I get to the second line of code nothing happens</p>
  
  <p>for invoke I have also tried "Click"</p>
  
  <p>the target in question is</p>
  
  <pre><code>&lt;input type="submit" name="ctl00$cphMainPageBody$btnSubmit" value="Submit" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$cphMainPageBody$btnSubmit&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="ctl00_cphMainPageBody_btnSubmit" title="Click to submit your search"&gt;
  </code></pre>
  
  <p>note:</p>
  
  <p>My end goal is to get the return page and scrape a peice of data off and repeat
  I don't have any need for the webbrowser control if it could be done entirely like</p>
  
  <pre><code>WebClient client = new WebClient();
  string downloadString = client.DownloadString("http://www.gooogle.com");
  </code></pre>