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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...