mojoPortal Controls

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.
10/28/2011 10:00:48 AM
Gravatar
Total Posts 148

mojoPortal Controls

Hi:

I am trying to use the mojoPortal DropDownListQuestion Control.  I add a reference to mojoPortal.Features.UI but still get an error when I use the control.  The error reads:

Compiler Error Message: CS1729: 'SurveyFeature.UI.DropDownListQuestion' does not contain a constructor that takes 0 arguments

 

 

 

 

 

 

 

 

 

10/28/2011 10:10:00 AM
Gravatar
Total Posts 18439

Re: mojoPortal Controls

That control is internal to the Survey feature and not intended for use outside of it. Features that plug into mojoPortal CMS should be self contained and should not take on dependencies on other features. And you should not fork the code, if you want to make a custom version of the Survey you should clone it into a new feature. You can borrow code from Survey and use it in a custom feature but you should not code against controls in the survey feature.

Hope that helps,

Joe

10/28/2011 10:21:37 AM
Gravatar
Total Posts 148

Re: mojoPortal Controls

Hi:

Yes, I wasn't going to change the code.  I was trying to use it the same way I would use a .NET control. When I drop a .NET control on my form, I can't change the .NET code for that control. I can only use the control, not change it. But, I guess it would be too tempting to change the code since we have access to the source...I'm new to using open source code. So, I need to literally cut and paste the source code into my own control?

Also, if a control is for internal use by another control, should it be listed on the Toolbox in VS2010? This may be a VS2010 issue and not a mojoPortal issue.

10/28/2011 10:36:20 AM
Gravatar
Total Posts 18439

Re: mojoPortal Controls

It should not be in the toolbox. 

As I said it was implemented for use in the Survey only. If you find some of the survey code useful to copy and paste then you can do that but my advice is don't code against the Survey or its controls.

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