Author: gmmr | Posted on: 9/14/2010 7:24:13 AM | Views : 818



hiiii
iam using 2 radio buttonlist controls in web application
they are
FIRST      Yes    No
SECOND  Yes    No
Initially  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 is
protected void Button1_Click(object sender, EventArgs e)
    {
        
            SqlConnection con = new SqlConnection(@"Data Source=STS2\SQLEXPRESS;Initial Catalog=S ...

Go to the complete details ...