hiiiiiam using 2 radio buttonlist controls in web application they are FIRST Yes NoSECOND Yes NoInitially SECOND radio button list is in disable position.when i was click on yes of FIRST radio button list, then SECOND radio button list is enables otherwise it is in disable mode only.here my problem is when i am inserting data into the database the disable radio button list gives error as System.NullReferenceException: Object reference not set to an instance of
an object.code written for inserting isprotected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data Source=STS2\SQLEXPRESS;Initial Catalog=STS;Integrated Security=True"); string sql; sql = "insert into Table1("; sql += "First,Second)"; sql += "values('"; sql += rbl_first.SelectedItem.Value.ToString() + "&
View Complete Post