Wednesday, September 27, 2006

Creating users programmatically in DNN 4.3.5

We had creted a custom registration module in DNN 4.0.3. When I updated my module to DNN 4.3.5 I found that this version had several changes.

The major issue I have found is the fact that I can not set any profile property. In this DNN forum you can finf how to resolve it. In my case in didnt' work. After try several alternatives I have fixed setting the properties out of the profile and directly into the UserInfo properties:

Example in DNN 4.0.X:
objNewUserInfo.Profile.FirstName="Alex";

Example in DNN 4.3.X:
objNewUserInfo.Firstname="Alex";

With this solution now I can sign in my users in portal.

0 Comments:

Post a Comment

<< Home