MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How to get Current User (Closed) (Mono Support )

Viewed 14768 time(s), 3 post(s) 25.11.2013 09:28:38by fdiama
fdiama

fdiama

25.11.2013 09:28:38
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
Dieser Inhalt wurde noch nicht bewertet. 
107 Reputation 11 Total posts
Dalibor

Dalibor

25.11.2013 09:47:21
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
Bewertet mit 5,00, 3 Besucher. 
250 Reputation 19 Total posts
fdiama

fdiama

25.11.2013 10:01:36
It works successfully, 
thanks

Francesco

Dieser Inhalt wurde noch nicht bewertet. 
107 Reputation 11 Total posts