Hi
I can not populate data(external data) to a list in properteditorcontrol in dnn 4.7
i can retrive the contents of list using this code but i can not add data to a list
Dim
objListController As New ListController
Dim q11 As New ListEntryInfo
Dim q2 As New ListEntryInfoCollection
q2 = objListController.GetListEntryInfoCollection(profProperty.PropertyName, profProperty.PropertyCategory)
q11 = q2.Item(0)
dim s,s1 as string
s=q11.Text
s1=q11.Value
i tried following code to add data to a list but it thrown an error
if any one knows please help
Dim objListController As New ListController
Dim q11 As New ListEntryInfo
Dim q2 As New ListEntryInfoCollection
q2 = objListController.GetListEntryInfoCollection(profProperty.PropertyName, profProperty.PropertyCategory)
q11.text="s"
q11.Value="s"
q2.Add(profProperty.PropertyName + ":" +q11.Value,q11)
i used this code to add but following error ocured
Error: Edit User Accounts is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Admin.Users.Profile.DataBind() in c:\inetpub\wwwroot\DNN470\Website\Admin\Users\Profile.ascx.vb:line 236 at DotNetNuke.Modules.Admin.Users.ManageUsers.ShowPanel() in c:\inetpub\wwwroot\DNN470\Website\Admin\Users\ManageUsers.ascx.vb:line 465 at DotNetNuke.Modules.Admin.Users.ManageUsers.BindData() in c:\inetpub\wwwroot\DNN470\Website\Admin\Users\ManageUsers.ascx.vb:line 266 at DotNetNuke.Modules.Admin.Users.ManageUsers.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\DNN470\Website\Admin\Users\ManageUsers.ascx.vb:line 545 --- End of inner exception stack trace ---