title: How to get the radio Button value in the next page in asp.net
body: <p>I have a label and two radio buttons, i am using post method to and trying to get the value of the radio button but i have no clue to do it </p>
  
  <pre><code> &lt;div class="input-group"&gt;
                  &lt;label&gt;Enter Your Age&lt;/label&gt;
                  &lt;asp:TextBox ID="txtAge" runat="server"&gt;&lt;/asp:TextBox&gt;
   &lt;/div&gt;
   &lt;div class="input-group"&gt;
                  &lt;label&gt;Select Your Gender&lt;/label&gt;
                  &lt;asp:RadioButton ID="RadioButton1" runat="server" GroupName="Gender" Text="Male" Checked="True" /&gt;
                  &lt;asp:RadioButton ID="RadioButton2" runat="server" GroupName="Gender" Text="Female" /&gt;
              &lt;/div&gt;
   &lt;asp:Button ID="submit" runat="server" Text="Submit" PostBackUrl="~/receivePage.aspx" OnClick="submit_Click" /&gt;
  </code></pre>
  
  <p>and in my receive page</p>
  
  <pre><code> String age = ((TextBox)PreviousPage.FindControl("txtAge")).Text;
  </code></pre>
  
  <p>this gives me the age value but how do I get the radio buttons value ?</p>