title: ASP.net c# post form on users behalf
body: <p>I have an ASP button, when it is clicked it calls a function which adds order information into my database. The next step of the order process is to transfer the user over to the payment gateway with this form:</p>
  
  <pre><code>&lt;form action="https://select-test.wp3.rbsworldpay.com/wcc/purchase" name="BuyForm" method="POST"&gt;
  &lt;input type="hidden" name="instId"  value="151711"&gt;
  &lt;input type="hidden" name="cartId" value="abc123"&gt;
  &lt;input type="hidden" name="currency" value="GBP"&gt;
  &lt;input type="hidden" name="amount"  value="1221"&gt;
  &lt;input type="hidden" name="desc" value=""&gt;
  &lt;input type="hidden" name="testMode" value="100"&gt;
  &lt;input type="submit" value="To Payment!"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>However I really would like it so that the user:</p>
  
  <blockquote>
    <p>Pressed order button -> Order function
    called -> User automatically passed to
    order page</p>
  </blockquote>
  
  <p>As supposed to:</p>
  
  <blockquote>
    <p>Pressed order button -> Order function
    called -> User goes to another page ->
    User manually clicks button to go to
    worldpay payment page</p>
  </blockquote>
  
  <p>Is there anyway in c# to redirect the user to the order page, and submit form data with them? </p>