protected void Button1_Click(object sender, EventArgs e)
{
string gend = RadioButtonList1.SelectedItem.ToString();
con.Open();
SqlCommand cmd = new SqlCommand("INSERT into OwnerReg VALUES('" + TextBox1.Text + "',
'" + TextBox2.Text + "', '" + TextBox7.Text + "',
'" + gend + "','" + TextBox3.Text + "','" + TextBox4.Text + "',
'" + TextBox5.Text + "','" + TextBox6.Text + "')", con);
cmd.ExecuteNonQuery();
con.Close();
Label16.Text = "Registered Successfully....";
}
--------------------------------------------------------
Data base table: OwnerReg
Username nvarchar(50),Password nvarchar(50),ConfirmPassword nvarchar(50),Gender nvarchar(50),DOB nvarchar(50),
Email nvarchar(MAX),MobileNO nvarchar(50),Address nvarchar(MAX)
plz help me...