Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Anyone with any ideas on how to get Members information (Members.GetCurrentLoginStatus()) when you are in a strongly typed view?
i.e. when the model is @model Umbraco.Web.Models.ContactFormViewModel not @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
It's being used with a surfacecontroller.
Thanks
https://our.umbraco.org/documentation/reference/querying/membershiphelper/
var memberShipHelper = new Umbraco.Web.Security.MembershipHelper(Umbraco.Web.UmbracoContext.Current);
@memberShipHelper.GetCurrentLoginStatus().Name
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get Member information in strongly typed view
Hi,
Anyone with any ideas on how to get Members information (Members.GetCurrentLoginStatus()) when you are in a strongly typed view?
i.e. when the model is @model Umbraco.Web.Models.ContactFormViewModel not @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
It's being used with a surfacecontroller.
Thanks
https://our.umbraco.org/documentation/reference/querying/membershiphelper/
var memberShipHelper = new Umbraco.Web.Security.MembershipHelper(Umbraco.Web.UmbracoContext.Current);
@memberShipHelper.GetCurrentLoginStatus().Name
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.