title: multiple forms in same page
body: <p>i have been looking for the solution for a long time but could not find the 
   solution. Please help me to find the solution. </p>
  
  <p>i have a form in x.aspx page. the form is below </p>
  
  <pre><code>&lt;form name="add_fund_conf" runat="server" action="y.aspx" method="POST"&gt;
      &lt;div &gt;
          &lt;b&gt;Add Funds From:&lt;/b&gt;
      &lt;/div&gt;
      &lt;div &gt;                                            
          &lt;select id="add_funds_from" runat="server" name="add_funds_from" &gt;
              &lt;option value=""&gt;Select Gateway&lt;/option&gt;
              &lt;option value="1"&gt;Perfect Money &lt;/option&gt;
              &lt;option value="2"&gt;BitCoin &lt;/option&gt;
              &lt;option value="3"&gt;Payeer &lt;/option&gt;
          &lt;/select&gt;
      &lt;/div&gt; 
      &lt;div&gt;
          &lt;b&gt;Amount To Add:&lt;/b&gt; USD
      &lt;/div&gt;
      &lt;div&gt;
          &lt;input type="text" id="amount_to_add"  runat="server" value="" class="form-control" /&gt;
      &lt;/div&gt;
  
      &lt;div align="center"&gt;
          &lt;input type="submit" name="submit" class="btn btn-success" value="Add Funds" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  
  and these are the javascript functions  in the head of  the y.aspx page 
  &lt;script language="JavaScript"&gt;
      function PM() {
          document._xclick.submit();
      }
  &lt;/script&gt;
  
  &lt;script language="JavaScript"&gt;
      function Payza() {
          document.formPayza.submit();
      }
  &lt;/script&gt;
  
  &lt;script language="JavaScript"&gt;
      function Payeer() {
          document.formPayeer.submit();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>And the following form in the body section</p>
  
  <pre><code>&lt;form name="_xclick" id="_xclick" runat="server" action="https://perfectmoney.is/api/step1.asp" method="POST"&gt;
  &lt;/form&gt;
  
  &lt;form name="formPayza" id="formPayza" runat="server" action="https://www.coinpayments.net/index.php" method="post"&gt;                         
  &lt;/form&gt;
  
  &lt;form name="formPayeer" method="GET" action="https://payeer.com/merchant/"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>in the code behind file i have written the following code.i have been looking for the solution for a long time but could not find the 
  solution. Please help me to find the solution. </p>
  
  <pre><code>if (!IsPostBack)
  {
      NameValueCollection nvc = Request.Form;
      int add_funds_from = Convert.ToInt32(nvc["add_funds_from"]);
      int amount_to_add = Convert.ToInt32(nvc["amount_to_add"]);
      if(add_funds_from==1)
      {                
          ClientScript.RegisterClientScriptBlock(this.GetType(), "blah", "PM();", true);
      }
      else if (add_funds_from==2)
      {
          ClientScript.RegisterClientScriptBlock(this.GetType(), "blah", "Payza();", true);
      }
      else 
      {
          ClientScript.RegisterClientScriptBlock(this.GetType(), "blah", "Payeer();", true);
      }
  }
  </code></pre>
  
  <p>But the page showing following error </p>
  
  <blockquote>
    <p>A page can have only one server-side Form tag. Description: An
    unhandled exception occurred during the execution of the current web
    request. Please review the stack trace for more information about the
    error and where it originated in the code. 
             Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.</p>
  </blockquote>
  
  <p>I am newbie in coding. So please ignore if i make any mistakes. i have been looking for the solution for a long time but could not find the 
   solution. Please help me to find the solution. </p>
  
  <p>Thanks in Advance for helping.</p>