title: C# post username/password to the login page using windows application
body: <p>i have login page with 2 textbox and 1 button</p>
  
  <pre><code>&lt;input name="txtUserName" type="text" value="666" id="txtUserName" class="textbox"&gt;
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>&lt;input name="txtPassword" type="password" id="txtPassword" class="textbox"&gt;
  </code></pre>
  
  <p>and button is like this    </p>
  
  <pre><code>&lt;input type="submit" name="LoginButton" value="Login To WebSite" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;LoginButton&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;Login1&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="LoginButton" class="button" style="font-family:tahoma;font-size:10px;"&gt;  
  </code></pre>
  
  <blockquote>
    <p>i have not source code of web page and only thing that i want to send
    my user name andd password and  receive is "login is OK or login is
    FAIL"</p>
  </blockquote>
  
  <p>when user enter user name and password and click "Login To WebSite" button ,if user/pass correct user login to page <a href="http://example.com/Default.aspx" rel="nofollow">http://example.com/Default.aspx</a>  that show user panel and if login fail system show login.aspx again<br>
  now i design windows application that have 2 textbox and one button<br>
  i want when i click button textbox1 and textbox2 text send to web site as login information and if this data is correct show me message that login is successful and else show me error   </p>