Kliknite ovdje za prijavu
Pretražuju se:
Sve
Blogovi
Forumi
Vijesti
Stranice
Korisnički profili
MonoX
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.
{1}
##LOC[OK]##
{1}
##LOC[OK]##
##LOC[Cancel]##
{1}
##LOC[OK]##
##LOC[Cancel]##
Vrati se nazad na sve teme
How to get Current User (Zatvorena) (
Mono Support
)
14874 put(a) pogledan
,
3 odgovor(a)
25.11.2013. 9:28:38
,
Kreirao(la) fdiama
fdiama
25.11.2013. 9: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
Ovaj sadržaj još nije ocijenjen.
107
Reputacija
11
Ukupno objava
Dalibor
25.11.2013. 9: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
Ocjena 5,00, 3 glas(ova).
250
Reputacija
19
Ukupno objava
fdiama
25.11.2013. 10:01:36
It works successfully,
thanks
Francesco
Ovaj sadržaj još nije ocijenjen.
107
Reputacija
11
Ukupno objava
MonoX Nightly Builds
MonoX Gallery
MonoX Roadmap
Mono Software at GitHub
Additional Resources