Using logged member details in custom .NET controller
Hello all,
Im new to this forum, Umbraco and ASP.NET in general, although I have been programming in C# before.
I have set up the Membership Provider model available in Umbraco, I have created members, member groups and assigned public access to some pages for certain member groups.
I have also created a custom .NET controller in C#. Some functions of the Controller should be available for certain member groups, while others can be visible to everybody.
How can I access and check ale the details of currently logged user, like member group, name or id, to use them within the controller to show/hide elements?
Using logged member details in custom .NET controller
Hello all,
Im new to this forum, Umbraco and ASP.NET in general, although I have been programming in C# before.
I have set up the Membership Provider model available in Umbraco, I have created members, member groups and assigned public access to some pages for certain member groups.
I have also created a custom .NET controller in C#. Some functions of the Controller should be available for certain member groups, while others can be visible to everybody.
How can I access and check ale the details of currently logged user, like member group, name or id, to use them within the controller to show/hide elements?
Thank you in advance!
Hi Kamil,
Welcome to the forum.
Try this:
Reference: http://our.umbraco.org/wiki/how-tos/membership-providers
Thank you Marcio!
Now it works, thanks for reference... now I see my question was quite silly as I could search better.
the forum is to it, no matter the question ;)
is working on a reply...