Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...User Profile InformationUser Profile Information
Previous
 
Next
New Post
4/1/2009 4:18 AM
 

Hello,

I developed a module that create DNN user on the portal.

I use this method on the code :

 

UserInfo newuser = new UserInfo();UserProfile updateuser = new UserProfile();string hata = "";//yeni kullanc oluŸturuldu

 

try

{

newuser.PortalID = PortalSettings.PortalId;

newuser.FirstName = txtAd.Text;

newuser.LastName = txtSoyad.Text;

newuser.DisplayName = txtAd.Text;

newuser.Username = txtUsername.Text;

newuser.IsSuperUser =

newuser.Email = txtEposta.Text;

 

{

newuser.Membership =

}

newuser.Membership.Approved =

newuser.AffiliateID =

newuser.Membership.Password = txtPassword.Text;

newuser.Membership.UpdatePassword =

newuser.Membership.Username = txtUsername.Text;

newuser.Membership.Email = txtEposta.Text;

newuser.Email = txtEposta.Text;

DotNetNuke.Security.Membership.

 

{

hata =

}

 

false;if (newuser.Membership == null)new UserMembership();true;Null.NullInteger;false;UserCreateStatus sonuc = DotNetNuke.Entities.Users.UserController.CreateUser(ref newuser);if (sonuc == DotNetNuke.Security.Membership.UserCreateStatus.Success)"Yeni kullanc kimli§iniz baŸar ile oluŸturulmuŸtur.";else

{

hata +=

}

 

"Yeni kullanc kimli§iniz oluŸturulurken bir hata meydana gelmiŸtir.</br><br /> Hata:" + sonuc;UserInfo sonkullanc = DotNetNuke.Entities.Users.UserController.GetUserByName(PortalId, newuser.Username);

 

UserController.UserLogin(PortalId, sonkullanc, PortalSettings.PortalName, IPAddress, true);

Here there is no problem.

But I want to add some extra information about the users.

The user information saven on the UserProfile Table

But I couldnt find any method to adding userprofile information adding.

I tryed some method, but not succesful.

And I try to convert the method on VB  to C# .

Thanks

Regards.

Filiz Gökçe

 

 

 

 
New Post
4/1/2009 9:55 AM
 

You will want to use newuser.Profile.<PropertyName> for standard profile properties.  For custom profile properties, there is a SetProperty (I haven't looked it up) that you use with the property name.




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...User Profile InformationUser Profile Information


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out