Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Where is the PortalModuleBase source code?Where is the PortalModuleBase source code?
Previous
 
Next
New Post
6/14/2008 4:08 PM
 
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 9:41 PM
 

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


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/19/2008 3:38 PM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Where is the PortalModuleBase source code?Where is the PortalModuleBase source code?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out