Using VS.NET to create NEW module for Portal Starter Kit

I'm trying to build my 1st NEW module for the portal starter kit, but I'm not sure what VS.NET is doing...it seems to be creating the wrong 'inherits from'

This is the beginning of my new module codebehind file
Public Class Charts
Inherits System.Web.UI.Page
.................................................................................
This is the beginning of an existing module codebehind (that works)
Namespace ASPNET.StarterKit.Portal
Public MustInherit Class Announcements
Inherits ASPNET.StarterKit.Portal.PortalModuleControl
....................................................................................
Any ideas on what the correct inherits statement should be for the new module?
Should i change 'Inherits System.Web.UI.Page' to 'Inherits ASPNET.StarterKit.Portal.PortalModuleControl' and/or do something else also?
Thanks,

Paul
K
0
vsnet
10/22/2003 8:21:24 PM
📁 asp.net.vs2002-vs2003
📃 3502 articles.
⭐ 0 followers.

💬 1 Replies
👁️‍🗨️ 1053 Views

OK I figured it out

Simply change
Public Class Charts
Inherits System.Web.UI.Page
to
Public Class Charts
Inherits ASPNET.StarterKit.Portal.PortalModuleControl
the ASPNET.StarterKit.Portal.PortalModuleControl evidently inherits from the System.Web.UI.Page,so everything works from there on out.
Yippeeee!!
K
0
vsnet
10/22/2003 10:11:35 PM
Reply: