Thursday, 17 January 2013 13:56

how to get profile and membership data in dnn module

Written by 
Rate this item
(0 votes)

getting dnn user information from dotnetnuke module is
easy.

you can get dotnetnuke user's User Credentials
and Profile data by the following way -

UserInfo.Email
UserInfo.FirstName
UserInfo.Profile.FirstName
UserInfo.Profile.MiddleName
UserInfo.Profile.LastName
UserInfo.Profile.Street
UserInfo.Profile.City
UserInfo.Profile.Country
UserInfo.Profile.PostalCode
UserInfo.Profile.TelePhone
UserInfo.Profile.Mobile
UserInfo.Profile.Fax
...

also you can get profile data according to dnn user id

userid=2;
UserController con = new UserController();
UserInfo userinfo = con.GetUser(PortalId, userid);

Read 6361 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.