Ascx UserControls to mojoportal

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.
12/14/2010 12:13:30 AM
Gravatar
Total Posts 76

Ascx UserControls to mojoportal

Hello,

I have several asp.net user controls (over 100 of them) which I want to use with mojoportal to boost it.

Some are for online video chat,SMS integration,email integration,automatic calling,shopping cart,billing modules,ERP,CRM modules,etc. I'm already using these with Sharepoint and MWPSK but now I want to include these inside mojo portal.

Is there anyway I can just drop these user controls inside mojo portal without writing/ changing code? Please tell me the easiest way possible..

 

Thanks

 

12/14/2010 4:40:12 AM
Gravatar
Total Posts 71

Re: Ascx UserControls to mojoportal

Hi,yes that is good idea ,

making mojoModule from an user control is very simple and easy , Joe has made a complete documentation about modules, I am waiting for your modules wink
 

12/14/2010 5:27:30 AM
Gravatar
Total Posts 76

Re: Ascx UserControls to mojoportal

Hello Naser,

Thanks for your reply.

But,How do I add an ascx without writing code or inheriting from the mojo namespace?

Will my ascx controls work in mojo portals without modifications to my ascx's codebehind and mojoportals source code?

Thanks

12/14/2010 5:58:28 AM
Gravatar
Total Posts 71

Re: Ascx UserControls to mojoportal

I am a novice in mojoportal , but you must make some change in your code , in mojo , your module must inherits from sitemodule (i think mojoportal.web.sitemodule) ,  sea this page :http://www.mojoportal.com/developerdocs.aspx

Joe and community will help you to create mojoportal modules,

12/14/2010 6:15:38 AM
Gravatar
Total Posts 76

Re: Ascx UserControls to mojoportal

So if your feature isn't going to need to support multiple instance you could just use a plain UserControl instead of inheriting from SiteModuleControl.

That's from the quickstart for building a usercontrol for mojoportal. But unfortunately,it doesn't work for me .It doesn't appear on the page even after adding it....

 

 

12/14/2010 6:18:53 AM
Gravatar
Total Posts 76

Re: Ascx UserControls to mojoportal

Please help me...Is there any way to get this thing work without any coding?

Thanks

12/14/2010 6:28:03 AM
Gravatar
Total Posts 108
Community Expert

Re: Ascx UserControls to mojoportal

You can't put foreign user controls into mojoportal with out coding more or less, and I don't know any cms that allow such behaviour. You can read the documentation here for more info about adding new features to mojoportal http://www.mojoportal.com/addingfeatures.aspx.

If you have any doubts in your implementation, just ask

12/14/2010 7:30:25 AM
Gravatar
Total Posts 18439

Re: Ascx UserControls to mojoportal

If it fails to load your UserControl it means an error happened while trying to load it, you can find the error in the mojoPortal log under Administration > System log. Clear the log then visit the page that fails to load your control then check the log again.

If your .ascx file has codebehind that is compiled into a dll then the dll needs to be in the /bin folder along with any other dlls that your control may depend on.

Hope it helps,

Joe

12/15/2010 10:23:57 AM
Gravatar
Total Posts 76

Re: Ascx UserControls to mojoportal

Please see my blog ...I've posted with screenshots about what I've tried...

I'll convert it into a tutorial once you show me the way to complete it..

http://csharpnews.wordpress.com/

How do I get it to work? There seems nothing on the log too

Thanks..

12/15/2010 11:53:40 AM
Gravatar
Total Posts 108
Community Expert

Re: Ascx UserControls to mojoportal

Hi take a look into this post, this is the recomended steps by Joe Aude to create modules for mojoportal, http://techblog.strongeye.com/archive/2009/12/16/creating-a-mojoportal-module.aspx

Ther is a more easy way to include your own modules, but only works depend on the complexity of you controls read this post from Steve Land to get a detail explanation http://techblog.strongeye.com/archive/2010/01/15/quick-modules.aspx

 

 

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