I am trying to add a value to the value item of a dictionary object based upon whether the first item in a radiobutton is selected or not. For some reason regardless of whether it is selcted or not the value stays set to No. The code I am using using the iff function to test if the radiobutton item is selected. Can someone see a problem with the code below. Thanks In advance.
Itemlist.Add("@Cancer", CStr(IIf(RadioButtonList2.Items(0).Selected = True, "Yes", "No")))
View Complete Post