Mono Support How to get Current User (Closed)

Viewed 14844 time(s), 3 post(s), 11/25/2013 9:28:38 AM - by fdiama
11/25/2013 9:28:38 AM
107 Reputation 11 Total posts

Hello,

I need to get the current user data, (username, email ecc..), to use it in a protected contact form;

Could you help me (I'm using the Monox 4.8 version)?

Thanks in advance

1
11/25/2013 9:47:21 AM
250 Reputation 19 Total posts

Hi Fdiama,

Please try using

UserProfileBLL.GetInstance().GetCachedUserProfile(SecurityUtility.GetUserId());

Other then that, you can get the data you need with

System.Web.Security.Membership.GetUser();

Regards,
Dalibor

2
11/25/2013 10:01:36 AM
107 Reputation 11 Total posts

It works successfully, 
thanks

Francesco

3
This is a demo site for MonoX. Please visit Mono Software for more info.