protected void regUser_Click(object sender, EventArgs e) { string fname = FirstName.Text; string mname = MiddleName.Text; string lname = LastName.Text; string mail = Email.Text; string pass = Password.Text; string dob = BirthDate.Text; string phno = phone.Text; string gender = ""; if (Male.Checked) { gender = "Male"; } else if (Female.Checked) { gender = "Female"; } else { gender = "Others"; } string address = Address.Text; string city = dropci.SelectedIndex.ToString(); string state = dropst.SelectedIndex.ToString(); string country = dropcon.SelectedIndex.ToString(); string pin = txtpin.Text; bool flag = con.AddUser(fname, mname, lname, mail, pass, dob, phno, gender, address, city, state, country, pin); if (flag) { Response.Redirect("index.aspx"); } }