• Login

Snippets

06
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);
	}
}	

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Name (required)

Email (required)

Website