Knowledge Base

Snippets

11

DotNetNuke.Security.Roles.RoleController rolesController = new DotNetNuke.Security.Roles.RoleController();
UserRoleInfo role = rolesController.GetUserRole(0, this.UserId, rolesController.GetRoleByName(0, "Donor").RoleID);
DateTime expiryDate = role.ExpiryDate;
lblDebug.Text = expiryDate.ToShortDateString();

Post Rating

Comments

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

Post Comment

Only registered users may post comments.