/// <summary> /// 绑定用户角色 /// </summary> private void BindDrpRoleInfo(int UserLevel) { Ctrl_Sys_Role CtrlSysRole = new Ctrl_Sys_Role(); DataSet ds = CtrlSysRole.GetList("RoleLevel=" + UserLevel.ToString()); drpUserRole.DataSource = ds; drpUserRole.DataTextField = "RoleName"; drpUserRole.DataValueField = "RoleId"; drpUserRole.DataBind(); }