Author: mikezx10 | Posted on: 10/17/2009 6:47:18 AM | Views : 248


This code doesnt work and i dont know why,
        foreach (ListItem li in cblRoles.Items)
        {
            foreach (DataRow row in dtUserCompanyRoles.Rows)
            {
                if (currentCompany == row[companyId].ToString()
                    && li.Value == row[roleId].ToString())
                {
                    li.Selected = true;
         &nb ...

Go to the complete details ...