I have a RadioButtonList that is created in the .cs file, it only has 2 options in it that is added to a asp:table. I want to be able to show different options on the page based on which radio button they click. All are created dynamically.
ArrayList cg = new ArrayList(2);
cg.Add("Ca");cg.Add("b");
dd= new RadioButtonList();
dd.ID="dd";
dd.DataSource=cg;
dd.SelectedIndex=0;
dd.RepeatColumns=1;
dd.DataBind();
dd.AutoPostBack=true;
tr.Cells.Add(myUtils.addRadioButtonListCell(dd,""));
I tried to add a function to the radio list but it isn't getting called when the page submits:
dd.Attributes.Add("onClick", "dd_click");
I want it called in the .cs file.
Is it possible? How?
THanks
Maboo59
ArrayList cg = new ArrayList(2);
cg.Add("Ca");cg.Add("b");
dd= new RadioButtonList();
dd.ID="dd";
dd.DataSource=cg;
dd.SelectedIndex=0;
dd.RepeatColumns=1;
dd.DataBind();
dd.AutoPostBack=true;
tr.Cells.Add(myUtils.addRadioButtonListCell(dd,""));
I tried to add a function to the radio list but it isn't getting called when the page submits:
dd.Attributes.Add("onClick", "dd_click");
I want it called in the .cs file.
Is it possible? How?
THanks
Maboo59