How to inherit NonCmsBasePage class with custom module

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.
5/15/2012 7:30:56 AM
Gravatar
Total Posts 9

How to inherit NonCmsBasePage class with custom module

Hi  

    I have added custom module and now I want to inherit module.ascx.cs with NonCmsBasePage class.

   Module.ascx.cs already inherit from SiteModuleControl. So How should I add NonCmsBasePage class in custom Module.

 

 Thanks

5/15/2012 8:02:57 AM
Gravatar
Total Posts 18439

Re: How to inherit NonCmsBasePage class with custom module

UserControl and Page are 2 different things. A UserControl cannot inherit from a Page, it must be hosted in a page. ModuleControls are hosted in the CMSPage which is Default.aspx. See How mojoPortal Works.

NonCmsBasePage is intended as a base class for administrative pages.

A feature can have supporting pages in addition to the module control that is hosted by the cms page, but generally feature supporting pages should inherit from mojoBasePage rather than NonCmsBasePage.

Study the code for existing features that have supporting pages to learn more (ie the forums, blog have supporting pages).

Hope that helps,

Joe

5/15/2012 8:11:45 AM
Itz
Gravatar
Total Posts 2

Re: How to inherit NonCmsBasePage class with custom module

I found it very usefull to run through the Guestboox example videos that Joe has created here Training Videos

this will show you lots about how to create custom mojo portal content 

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