Im creating a dynamicc radion button list, which populates from the database as shown below. What I want to do is basically loop through the list to find out what the user chose, but I cannot seem to get it to work. I've tried several ways, and also using the check box list (which would have been better for my purpose, but I dont know if it is possible to loop through it in the way i want to?)
(Page_Load)
var listItems = from category in dataConnector.Categories select category.CategoryID;
MyList.DataSource = listItems;
MyList.DataBind();
I need the different button's ID's for my database (and as I said, it'd be great if I could use a check box list instead so that I could choose more than one option).
Im trying to catch up the choices using this code right now, but zero comes out of it:
( ...
Go to the complete details ...