Hello,
I have string which came from the database,now i want to compare each charater of the string with the radiobuttonlist value and check box list value and select both radiobutton list and checkboxlist.
Here i write down some code but its just select 2 item of the each radiobuttonlist and checked all checkboxlist.
if (!string.IsNullOrEmpty(sred))
{
foreach (Control c in this.Panel5.Controls)
{
if (c is RadioButtonList)
{
RadioButtonList rb1 = (RadioButtonList)c;
for (int i = 0; i < rb1.Items.Count-1; i++)
{
if(rb1.Items[i].Value==ch[i].ToString())
{
rb1.Items[i].Selec ...
Go to the complete details ...