Does not extend class 'System.Web.UI.UserControl'

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.
7/23/2009 3:58:13 AM
Gravatar
Total Posts 4

Does not extend class 'System.Web.UI.UserControl'

Hi,

I've created my own module and plugged it into the CMS fine that contains a user control Review.ascx. I've created other usercontrols of type ascx that I load into the base Review.ascx user control programatically. These 'support' ascx pages inherit (in the code bahind of each) from mojoPortal.Web.mojoBasePage as it states I should in the documentation,  but I find I get the error "does not extend class 'System.Web.UI.UserControl' "

So my question is, do suppporting ascx pages need to inherit from mojoPortal.Web.mojoBasePage or System.Web.UI.UserControl ?

Many thanks

7/23/2009 7:08:13 AM
Gravatar
Total Posts 18439

Re: Does not extend class 'System.Web.UI.UserControl'

In ASP.NET an .ascx can only inherit from UserControl or sub classes of UserControl, it cannot inherit from Page or sub classes of Page like mojoBasePage 

Hope it helps,

Joe

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