[I have an application where , i have a radiobuttonlist having 2 radio buttons radiobuttons RB1 & RB2
and there are 6 checkBoxes CB1 thru CB6
If RB1 is selected then CB6 shld be disable /invisible and if RB2 is selected then all the CBs shld be enabled. How do i do this?
protected void rb_OnIndexChanged(object sender, System.EventArgs e)
{
if (rb.SelectedValue=="A")
{
cb6.Enabled=true;
}
}
i get an error Object reference not set to an instance of an object
plz help.
thank you