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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Look and feel of registration formLook and feel of registration form
Previous
 
Next
New Post
12/21/2009 12:41 AM
 

 Thanks Amrish its helps a lot...

 But would like to know one more thing how can we design a new registration form,, are you mean using the dynamic form  or something diffrent..

 your reply realy appricicte us to worki around the form..

 

Thnaks

Kishor Pawar

 

 

 
New Post
12/21/2009 9:07 AM
 

kishor,

Create new module For registration and Use this code on the Click Event on Submitt button of Your Registration form.

//check if user exists
UserInfo objUserInfo = UserController.GetUserByName(PortalId, txtEmail.Text);
            if (objUserInfo == null)
            {
                objUserInfo = new UserInfo();
                objUserInfo.FirstName = txtFirstName.Text;
                objUserInfo.LastName = txtLastName.Text;
                objUserInfo.Email = txtEmail.Text;
                objUserInfo.PortalID = PortalId;
                objUserInfo.DisplayName = txtFirstName.Text + " " + txtLastName.Text;
                objUserInfo.AffiliateID = 0;
                objUserInfo.Username = txtEmail.Text;

                //memebership
                objUserInfo.Membership.Email = txtEmail.Text;
                objUserInfo.Membership.Approved = true;
                objUserInfo.Membership.Password = Guid.NewGuid().ToString().Replace("-", "").Substring(0, 8);

                //profile


                objUserInfo.Profile.InitialiseProfile(PortalId);//removing this may cause blank profile :(
                ////Profile Null fix ends
                objUserInfo.Profile.Street = txtStreet.Text;
                objUserInfo.Profile.Country = ddlCountry.SelectedItem.Text;
                objUserInfo.Profile.Region = ddlState.SelectedItem.Text;
                objUserInfo.Profile.City = txtCity.Text;
                objUserInfo.Profile.PostalCode = txtZipcode.Text;
                objUserInfo.Profile.Telephone = txtPhone.Text;
                objUserInfo.Profile.FirstName = txtFirstName.Text;
                objUserInfo.Profile.LastName = txtLastName.Text;
                //add user
                UserCreateStatus userCreateStatus = UserController.CreateUser(ref objUserInfo);

                StringBuilder emailData = new StringBuilder();
                if (userCreateStatus == UserCreateStatus.Success)
                {
                    if (objUserInfo.Profile.IsDirty)
                    {

                        DotNetNuke.Entities.Profile.ProfileController.UpdateUserProfile(objUserInfo);
}}

Hope it helps


Amrish Sharma, MCP
 
New Post
12/21/2009 10:46 AM
 

You can change the form to whatever you want, though you may need to add/change database fields and DAL/BLL code if you are extending it beyond what it currently does.  Keep in mind that any upgrade will replace this form, so have a backup.

Jeff

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Look and feel of registration formLook and feel of registration form


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