Hi,
I am trying to acess a radiobuttonlist which is placed inside a radgrid, so that i can insert its selected value into my database.
I realized that I need to use FindControl, but can't get it to work... the name of my grid is "FichaConteúdo".
I tried:
Control myRadioBtnListTipo = FichaConteúdo.FindControl("RadioBtnListTipo");
sel = myRadioBtnListTipo.SelectedValue;
and also:
Control myRadioBtnListTipo = FichaConteúdo.MasterTableView.Items.FindControl("RadioBtnListTipo");
The problem is that I can't access "SelectedValue", it doesn't appear... I really need the selected value so that I can use it as an sql parameter in my query...
Any suggestions please?
Thank you,
Marta
I am trying to acess a radiobuttonlist which is placed inside a radgrid, so that i can insert its selected value into my database.
I realized that I need to use FindControl, but can't get it to work... the name of my grid is "FichaConteúdo".
I tried:
Control myRadioBtnListTipo = FichaConteúdo.FindControl("RadioBtnListTipo");
sel = myRadioBtnListTipo.SelectedValue;
and also:
Control myRadioBtnListTipo = FichaConteúdo.MasterTableView.Items.FindControl("RadioBtnListTipo");
The problem is that I can't access "SelectedValue", it doesn't appear... I really need the selected value so that I can use it as an sql parameter in my query...
Any suggestions please?
Thank you,
Marta