krishna chandra

krishna chandra

  • NA
  • 207
  • 2k

Getting problem to select the checked radio button

Mar 15 2019 3:37 AM
Can any one help me to get the values of selected radio button which are place inside the listview control in asp.net using c# 
 
i try this code 
 
RadioButton rb1 = (RadioButton)ListView1.FindControl("RadioButton1");
if (rb1.Checked == true)
{
Label1.Text = rbl1;
}
 
but is shows me the following error
 
Object reference not set to an instance of an object.
 

Answers (3)