I have been using the following tutorial and had to convert the code to C# for my project, now i cant get the code to work, im getting red line under the word "in" in the UpdateRolesFromList,
i tried to add a datasource on page load for the checkboxlist like so RoleList.DataSource = PopulateRoleList(User.Identity.Name.ToString());
and gives me error saying cannot implictly convert type 'void' to 'object'
What am i missing, that when i load the page or even do a search it never displays the checkbox list as it shows in the tutorial?
protected void Page_Load(object sender, EventArgs e)
public void PopulateRoleList(string userName)
string roleNames = null;
string roleName = null;
roleNames = Roles.GetAllRoles();
foreach (string roleName_loopVariable in roleNames)
roleName = r
View Complete Post