an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > User not added to DSC.User and DSC.Address but ...
Last Post 9/30/2010 11:53:41 AM By Bahram. 2 replies.
9/28/2010 2:41:58 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
User not added to DSC.User and DSC.Address but it works correctly

I use this code to add users and this is like the one in register.aspx :

 
MembershipUser m = Membership.CreateUser(nU.UserName, nU.PassWord, nU.Email, "The greatest band ever?", "none", true, out status);
                if (m == null)
                {
 
                    ErrorStr.Msg += GetErrorMessage(status) + Environment.NewLine;
                    return ("{\"error\":0}");
                }
                else
                {
 
                    try
                    {
                        userId = DSC.User.AddUser(nU.UserName, true, CoreHelper.GetReferralId(), nU.FirstName,
                                       nU.LastName, nU.CompanyName, nU.Address, nU.Address2, nU.City, nU.State,
                                       nU.Zipcode, nU.CountryId, nU.Phone, nU.PhoneExt, DateTime.Now, true);
 
 
 
Membership works fine and DSC.user also returns userID and works without error.
No record in DSC.User and DSC.Address tables.
9/29/2010 3:58:03 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: User not added to DSC.User and DSC.Address but it works correctly
If you have userId returned, that is the one in the DSC_User table.
DotShoppingCart Staff
9/30/2010 11:53:41 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: User not added to DSC.User and DSC.Address but it works correctly
 I had this incident twice. the usr_id returned, but no records when querying that id.