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 kullanc 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 kullanc kimli§iniz baŸar ile oluŸturulmuŸtur.";else
{
hata +=
}
"Yeni kullanc kimli§iniz oluŸturulurken bir hata meydana gelmiŸtir.</br><br /> Hata:" + sonuc;UserInfo sonkullanc = DotNetNuke.Entities.Users.UserController.GetUserByName(PortalId, newuser.Username);
UserController.UserLogin(PortalId, sonkullanc, 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