title: Coudn't pass the form values one page to another asp.net
body: <p>i have to values values one form to another using asp.net i can pass to another only regno and name only another values cannot pass i got the error missing directive what i tried so far i attached below</p>
  
  <pre><code>&lt;div class="row"&gt;
                         &lt;div class="col-sm-4"&gt;
                             &lt;div class="form-group"&gt;
                                 &lt;label&gt;Reg No&lt;/label&gt;    
                            &lt;asp:TextBox ID="regno" runat="server"  class="form-control" required&gt;&lt;/asp:TextBox&gt;
                         &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                                 &lt;label&gt;Name&lt;/label&gt;
                             &lt;asp:TextBox ID="name" runat="server"  class="form-control" required&gt;&lt;/asp:TextBox&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                                 &lt;label&gt;Address&lt;/label&gt;
                                 &lt;input type="text" id="phone" name="phone" class="form-control" required /&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group"&gt;
                                &lt;label&gt;Gender&lt;/label&gt;
                                &lt;asp:RadioButton ID="RadioButton1" runat="server" OnCheckedChanged="RadioButton1_CheckedChanged" Text="Male" /&gt;
                                &lt;asp:RadioButton ID="RadioButton2" runat="server" Text="FeMale" /&gt;
                             &lt;/div&gt;
  
                               &lt;div class="form-group"&gt;
                                 &lt;label&gt;Interest&lt;/label&gt;
                                    &lt;asp:CheckBox ID="CheckBox1" runat="server" Text="Cricket" /&gt;
                                  &lt;asp:CheckBox ID="CheckBox2" runat="server" Text="Football" /&gt;
                                  &lt;asp:CheckBox ID="CheckBox3" runat="server" Text="Cinima" /&gt;
                             &lt;/div&gt;
  
                              &lt;div class="form-group"&gt;
                                &lt;asp:Button ID="Button1" runat="server" Text="Submit" class="btn btn-success" OnClick="Button1_Click"  /&gt;
                             &lt;/div&gt;
  
  
  
                         &lt;/div&gt;
  </code></pre>
  
  <p><strong>Button Event</strong></p>
  
  <pre><code> protected void Button1_Click(object sender, EventArgs e)
          {
              Response.Redirect("form2.aspx?regno=" +
              this.regno.Text + "&amp;name=" +
              this.name.Text  + "&amp;phone=" + 
              this.phone.Text ); this line i got error missing directive
  
  
          }
  </code></pre>
  
  <p><strong>Second form</strong></p>
  
  <pre><code>Label1.Text = Request.QueryString["regno"];
               Label2.Text = Request.QueryString["name"];
               Label3.Text = Request.QueryString["phone"];
  </code></pre>