WebParts in 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.
1/28/2007 7:21:02 PM
Gravatar
Total Posts 8

WebParts in MojoPortal

Hi Joe,

I tried the way you told me but i didn't work do you have another way to solve this problem.

Mahmoud El-Sobki

1/28/2007 7:28:31 PM
Gravatar
Total Posts 8

WebParts in MojoPortal

Hi Joe,

I tried the way to load Control

MyUserControl my = (MyUserControl)Page.LoadControl("~/Web/Controls/MyUserControl.ascx");

should probably be this:

MyUserControl my = (MyUserControl)Page.LoadControl("/Controls/MyUserControl.ascx");

or maybe this

MyUserControl my = (MyUserControl)Page.LoadControl("Controls/MyUserControl.ascx");

but i didn't success to load the control and the same error is appeared Object reference not set to an instance of an object.

do you have another solution to this problem.

Mahmoud El-Sobki

1/28/2007 7:35:09 PM
Gravatar
Total Posts 18439

Re: WebParts in MojoPortal

try this one

MyUserControl my = (MyUserControl)Page.LoadControl("~/Controls/MyUserControl.ascx");

Make sure the .ascx file exists in the location Web/Controls

Joe
1/29/2007 6:15:15 AM
Gravatar
Total Posts 8

WebParts in MojoPortal

Hi Joe,

I checked that user control is existing in the web/controls but still not success , i want to make it clear i write this code in SimpleWebPart class and it gave me the same error Object reference not set to an instance of an object.

Mahmoud El-Sobki

3/14/2007 11:37:38 AM
Gravatar
Total Posts 1

Re: WebParts in MojoPortal

Hello

I've got a question according web party's edit mode. I still cann't find out how to switch and edit web party's properties in mojoPortal. Is there any posibility how to do this.

Thanks in advance Janeq 

 

3/14/2007 8:32:41 PM
Gravatar
Total Posts 18439

Re: WebParts in MojoPortal

Hi,

I think its because none of the webparts exposed form the mojoportal content management system expose any user editable properties.

If you have a webpart that does expose user editable properties and you send it to me I will look into it.

joe dot audette at gmail dot com

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