title: Clicking HTML button in vb.net
body: <p>I have to click a HTML button programatically which is on the 3rd page of the website . The button is without id. It has just name type and value . The HTML code of the button is given below </p>
  
  <pre><code>&lt;FORM NAME='form1' METHOD='post' action='/dflogin.php'&gt;&lt;INPUT TYPE='hidden' NAME='txtId' value='E712050-15'&gt;&lt;INPUT TYPE='hidden' NAME='txtassId' value='1'&gt;&lt;INPUT TYPE='hidden' NAME='txtPsw' value='HH29'&gt;&lt;INPUT TYPE='hidden' NAME='txtLog' value='0'&gt;&lt;h6 align='right'&gt;&lt;INPUT TYPE='SUBMIT' NAME='btnSub' value='Next' style='background-color:#009900; color:#fff;'&gt;&lt;/h6&gt;&lt;/FORM&gt;
  </code></pre>
  
  <p>i am using the following code to click it </p>
  
  <pre><code>    For Each webpageelement As HtmlElement In allButtons
  
          If webpageelement.GetAttribute("value") =  "Next" Then
  
              webpageelement.InvokeMember("click")
  
          End If
  
      Next
  </code></pre>
  
  <p>But i cant able to click it . I am using the vb.net 2008 platform. Can anyone tell me the solution to click it?</p>