private void DisplayRolesInGrid() { string[] roles = Roles.GetAllRoles(); DropRoles.DataSource = roles; DropRoles.DataBind(); RoleList.DataSource = roles; RoleList.DataBind(); }
protected void RoleBind() { DataTable dt = new DataTable(); dt = Casetek.KPI.UserRole.QueryddlRoleList().Tables[0]; DropRoles.DataSource = dt; DropRoles.DataTextField = "RoleName"; DropRoles.DataValueField = "RoleID"; DropRoles.DataBind(); }