Design A Registration Form
Coding:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication1
{
  public partial class _Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
        protected void Button1_Click(object sender, EventArgs e)
        {
          if (Page.IsValid)
          {
             string username = TextBox1.Text;
             string password = TextBox2.Text;
             string age = TextBox4.Text;
             string email = TextBox6.Text;
             string city = TextBox7.Text;
             string SelectedGender = RadioButtonList1.SelectedValue;
             RadioButtonList1.Text = "Selected Gender:" + SelectedGender;
             Label8.Text = "REGISTRATION SUCCESFULL!!";
          }
        }
    }
}
Form Design:
Output: