Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Where is the PortalModuleBase source code?
Previous Previous
 
Next Next
New Post 6/14/2008 1:08 PM
User is offline Johan Van der Galien
13 posts
10th Ranked


Where is the PortalModuleBase source code? 
Dear Newsgroup Readers,
 
I wanted to know where the ModuleId value in the DotNetNuke.Modules.Survey.EditSurvey Page_Load event comes from. Well it can only come from the inherited class DotNetNuke.Entities.Modules.PortalModuleBase. But I did: Find in Files “Class PortalModuleBase” entire solution. But it is nowhere to be found. Then this functionality must come from a referenced DLL and it is not in the source code files as you get it from downloading DotNetNuke_04.08.02_Source.zip.
 
I want to learn as much as I can from the Survey Module and apply this knowledge to my own modules.
 
Is DotNetNuke only a partly open source project?
 
Kind regards,
 
Johan van der Galien.
 
New Post 6/14/2008 6:41 PM
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Where is the PortalModuleBase source code? 

DotNetNuke is fully opensource, all of the code is within the source download.

ModuleID is in the file you're looking at. If you look about line 300 you'll see it's definition. It's readonly as it's only designed to expose an internal value. It's been marked as invisible to the designer for that reason.

<Browsable(False), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property ModuleId() As Integer
            Get
                If Not _moduleConfiguration Is Nothing Then
                    Return Convert.ToInt32(_moduleConfiguration.ModuleID)
                Else
                    Return Null.NullInteger
                End If
            End Get
        End Property

 
New Post 6/19/2008 12:38 PM
User is offline Kevin Goff
10 posts
10th Ranked


Re: Where is the PortalModuleBase source code? 

Perhaps you got enough from cathal's response, but here is where the file you are looking for is:

~\DotNetNuke_04.08.04_Source\Library\Components\Modules\PortalModuleBase.vb

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Where is the PortalModuleBase source code?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP