目前我有一个完整的工作注册表。但是我现在需要在表单上添加用户地址,一切都很好,直到我来添加用户地址信息
Dim newUser As New UserInfo
//Memebership and Userinfo added
newUser.Profile.PreferredLocale = Services.Localization.LocaleController.Instance.GetCurrentLocale(Me.PortalId).Code
newUser.Profile.SetProfileProperty("PostalCode", "S62 6EP")
newUser.Profile.City = txtCity.text
newUser.Profile.Country = txtCountry.text
newUser.Profile.Region = txtRegion.text
newUser.Profile.Street = txtstreet.text
newUser.Profile.Unit = unit.text
邮政编码不同的原因是一个测试,看看它是否改变了结果(它没有)
基本上,用户注册良好。但是,当我转到 UserProfile 页面时,数据不存在。只有名字和姓氏在字段中。
似乎在错误的 propertydefinitionID 下将数据添加到数据库(例如,preferedlocale 添加的 ID 为 19,但如果我在 UserProfile 页面中更改它,我得到 38