I am importing an array of names from the db and for each element in the array I am creating a radiobutton. The radiobutton's ID corresponds to the array name. Certain names contain special characters and are therefore written in ASCII HTML character code. I later perform some operations to determine which radiobutton has been selected but then the radiobuttons with the HTML ID are not recognized. I tried inserting the following to ensure the ID stays in HTML character code form throughout the code but it doesnt seem to work:
Is there another way to tackle this?Code:selectedRbtnID = Server.HtmlDecode(radiobutton.ID);




Reply With Quote
