Page 1 of 1

Customizatione in Registration process...

Posted: Thu Sep 17, 2009 12:14 pm
by srajderkar
Could you please let me know if it is possible to customize the customer registration process ( add new fields to the user control and save those fields in the database.

Thanks

Re: Customizatione in Registration process...

Posted: Thu Sep 17, 2009 12:56 pm
by AbleMods
Yes, within the limits of the ASP.Net security provider. The user registration process is handled by a .Net user control, so source code is easy to find in the ~/ConLib/ folder.

The users data class includes a custom fields component, so it's quite easy to add additional user-specific custom fields to user records as needed. If you are using Visual Studio, you can use the object browser to explore the Users data class and expose the custom fields class for your use.

Re: Customizatione in Registration process...

Posted: Fri Sep 18, 2009 12:03 pm
by srajderkar
hi

thanks for your reply, but i could not locate the custom field class using object browser.

Can you please give me the location of the custom field class in the application?

Thanks and Regards

Re: Customizatione in Registration process...

Posted: Sat Sep 19, 2009 3:16 am
by AbleMods
Whoops, sorry. Able didn't name it in Users to be consistent with the other custom field sub-classes.

In the Users class it's called "Settings"

Code: Select all

User _User = UserDataSource.Load(123);
_User.Settings.SetValuebyKey("FieldName","FieldValue");
to retrieve a value, you simply load the user data class and...

Code: Select all

string _TestField = _User.Settings.GetValuebyKey("FieldName");