title: Request.Form empty?
body: <p>i have a aspx form </p>
  
  <pre><code>&lt;form id="form1" runat="server" method="post"&gt;   
  &lt;div&gt;
      &lt;asp:Panel ID="Panel1" runat="server" Width="362px"&gt;
          &lt;asp:Table ID="Table1" runat="server" CellPadding="5"&gt;
              &lt;asp:TableRow&gt;
                  &lt;asp:TableCell&gt;
                      &lt;asp:Label ID="Label1" runat="server" Text="UserName :"&gt;&lt;/asp:Label&gt;
                  &lt;/asp:TableCell&gt;
                  &lt;asp:TableCell&gt;
                      &lt;asp:TextBox ID="userName" runat="server"&gt;&lt;/asp:TextBox&gt;
                  &lt;/asp:TableCell&gt;
              ----- SOME CODE HERE---
          &lt;/asp:Table&gt;
          &lt;asp:Button ID="btnSubmit" runat="server" Text="Login" OnClick="btnSubmit_Click" style="height: 29px" /&gt;
      &lt;/asp:Panel&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to post the values from this form to a different page on the click event. 
  click event code is :</p>
  
  <pre><code>   protected void btnSubmit_Click(object sender, EventArgs e)
      {
  
  
          Response.Redirect(ccpUrl);
  
  
      }
  </code></pre>
  
  <p>when i do a Request.form on the landing page it is EMPTY.it throws null reference exception.<br>
  here is the code for that</p>
  
  <pre><code> private void GetRequestData()
      {
  
              _userName = HttpContext.Current.Request.Form["userName"].ToString();
              _password = HttpContext.Current.Request.Form["password"].ToString();
              _transactionID = HttpContext.Current.Request.Form["transactionID"].ToString();
              if (Request.Form["sequenceNumber"] != null)
              {
                  int.TryParse((HttpContext.Current.Request.Form["sequenceNumber"].ToString()), out _sequenceNumber);
              }
              else
                  _sequenceNumber = 0;
              _tpsSystem = HttpContext.Current.Request.Form["tpsSystem"].ToString();
  
  
      }
  </code></pre>
  
  <p>what am i doing wrong ?
  Am i missing something ? please help .</p>