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.0Extending PortalModuleBaseExtending PortalModuleBase
Previous
 
Next
New Post
6/20/2007 3:56 PM
 

Hi all,

I'm relatively new to DNN development, though I'm pretty experienced as a VB.NET/ASP.NET developer.  I'm trying to learn the "right" way to do things, and thus my question.

I've been tasked with extended and upgrading a custom solution developed with 3.0.12 verson of DNN.  Several changes were made to the base libraries, including several methods added to PortalModuleBase.vb.  I am currently migrating these to a clean 4.1.1 version of the product.  When done, I want to make sure that upgrading to new versions won't require us to change base code again.

Let's say that there was a Sub ABC() added to the 3.x version of PortalModuleBase.vb.  I was thinking I should create MyPortalModuleBase.vb which inherits from PortalModuleBase, and then add my Sub ABC() to it.

Question 1:
Is this the "right" way to do this?
Question 2:
Where do I store MyPortalModuleBase.vb - ie, what folder?  Should I put it in \Library\Components\Module\MyModules, or should I put it somewhere else?

Discuss (and any advice appreciated).

Thanks!
Tim

 
New Post
6/20/2007 4:01 PM
 

Are you going to be using Sub ABC()  in multiple modules or just in one module? If Only one you are correct, you can have your module inherit from MyPortalModule base, and have MyPortalModuleBase inherit from PortalModuleBase.

If you need to do this from multiple modules you might look at making a class library for your MyPortalModuleBase, so it's in it's own DLL and have your projects inherit from that class, that class would still inherit from PMB as well.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Extending PortalModuleBaseExtending PortalModuleBase


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