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.


Jignesh KumarRank #91 · 22.9K reputationPosted Mar 14, 2019, 11:53 PM EDT
Vivek KumarRank #272 · 9.3K reputationPosted Mar 15, 2019, 1:00 PM EDT
Salman BegRank #284 · 8.8K reputationPosted Mar 15, 2019, 9:30 PM EDT