|
|
posted on July 06, 2014 07:56
public void GetPreviousAgents(string _AgentRole)
{
try
{
DotNetNuke.Security.Roles.RoleController objRoleController = new DotNetNuke.Security.Roles.RoleController();
ArrayList objUserList = objRoleController.GetUsersByRoleName(DotNetNuke.Entities.Portals.PortalSettings.Current.PortalId, _AgentRole.ToString());
int i = 0;
foreach (DotNetNuke.Entities.Users.UserInfo objUserInfo in objUserList)
{
ddlPreviousAgent.Items.Insert(i, new ListItem(objUserInfo.DisplayName.ToString(),objUserInfo.Email.ToString()));
}
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
There are currently no comments, be the first to post one!