I have the need to establish whether the current user is in a role (using 'IsInRole("ADMIN")') in one of my code classes.
However given I'm outside of the 'Page' object I can't use the code Page.User.IsInRole("ADMIN") for example.
How can I achieve this?
Thanks in advance.
Steve
However given I'm outside of the 'Page' object I can't use the code Page.User.IsInRole("ADMIN") for example.
How can I achieve this?
Thanks in advance.
Steve