User Profile configuration with option values from database

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/27/2010 8:37:06 AM
Gravatar
Total Posts 9

User Profile configuration with option values from database

Hi,

In the User Profile Configuration (http://www.mojoportal.com/userprofileconfiguration.aspx), there is an example of the Gender field.

It is possible to create a field where it's value is loaded from a database?, as I can see from the guide, the options is hardcoded in the mojoProfile.config.

Thanks

 

1/28/2010 1:46:59 PM
Gravatar
Total Posts 18439

Re: User Profile configuration with option values from database

You can implement a custom UserControl and populate the dropdown using custom code. To use your UserControl as a profile property, you have to implement a very simple interface, ISettingControl which you can find in Web/Components

Then you set the ISettingControlSrc property on the property definition in xml to ~/pathtoyour.ascx"

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.