Hi.
I'm trying to make a dynamic radiobuttonlist for my site. I've found the code for it by googling and i get how its done, but i cant see to get my references working. I've added the System.Windows. Forms reference, and "using" at the top of the page. (some more googling told me that that was the appropriate reference) but i'm still getting this error message:
The type or namespace name `RadioButtonLis t' could not be found. Are you missing a using directive or an assembly reference?(CS02 46)
Heres the code for the radiobuttonlist :
I've tried to find a tutorial for this, but it seems to be impossible to find. So i'm hoping that someone here knows how to do it :)
I'm trying to make a dynamic radiobuttonlist for my site. I've found the code for it by googling and i get how its done, but i cant see to get my references working. I've added the System.Windows. Forms reference, and "using" at the top of the page. (some more googling told me that that was the appropriate reference) but i'm still getting this error message:
The type or namespace name `RadioButtonLis t' could not be found. Are you missing a using directive or an assembly reference?(CS02 46)
Heres the code for the radiobuttonlist :
Code:
//create dynamic radiobuttonlist
RadioButtonList rblTest = new RadioButtonList();
rdoMoreRooms.ID = "rblTest";
rdoMoreRooms.AutoPostBack = true;
//rdoMoreRooms.SelectedIndexChanged += new System.EventHandler(this.radioButton_Check_Changed);
rdoMoreRooms.RepeatDirection = RepeatDirection.Horizontal;
rdoMoreRooms.Items.Add(new ListItem("Cake", "Cake"));
phMoreRooms.Controls.Add(rblTest);
phMoreRooms.Controls.Add(new LiteralControl("<p>"));
Comment