i want to assaign value to string a according to radio button selection list....for that i used this code but it showing the error... "The name 'grbFiltro' does not exist in the current context"
This is my code...
IEnumerable<RadioButton> buttons = grbFiltro.Controls.OfType<RadioButton>() ;
foreach (var Button in buttons)
{
if (Button.Checked)
{
//Do Somethingrb
}
}
what is grbFiltro? i searched in google but no satisfied answer....for me