title: I want to make a redirection webform2 that shows a message based on the gender chosen in radiobutton in webform1
body: <p>This is the <code>webform1</code> code and I made a string called pass to store the text in. What should I do in <code>webform2</code> to display the message based on the conditions?</p>
  <pre class="lang-cs prettyprint-override"><code>protected void Button1_Click(object sender, EventArgs e)
  {    
      Response.Redirect(&quot;two.aspx&quot;, true);
      if (Request.Form[&quot;TextBox1&quot;] != null &amp;&amp; Request.Form[&quot;TextBox2&quot;] != null) 
      {
          if (RadioButton2.Checked)
          {
              //pass = Response.ToString().Insert(Response.ToString().Count(), &quot; &quot; + &quot;Welcome, &quot; + Server.HtmlEncode(Request.QueryString[&quot;TextBox1&quot;]) + &quot;. &lt;br/&gt; The url is &quot; + Server.HtmlEncode(Request.Url.ToString()));
              pass = &quot;Thank you Ms. &quot; + TextBox1.Text + &quot;Your Registration has been successfully completed&quot; ;
          }
          else if (RadioButton1.Checked)
          {
              pass = &quot;Thank you Mr. &quot; + TextBox1.Text + &quot;Your Registration has been successfully completed&quot;;
          }                    
      }
  }
  </code></pre>