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  |  

telerik -- supercharge your DNN websites
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  Is there a recommended path in DNN project to put general code for reusability?
Previous Previous
 
Next Next
New Post 4/2/2008 1:35 PM
User is offline IceWing_mk1
54 posts
10th Ranked


Is there a recommended path in DNN project to put general code for reusability? 

I'm starting to generate some reusable code that's going to be used in alot of my code behind pages and was wondering where most people put this stuff.

Brian

 
New Post 4/26/2008 3:44 PM
User is offline Chuck Rizzio
135 posts
9th Ranked




Re: Is there a recommended path in DNN project to put general code for reusability? 

Hi Brian,

At work, we created a few seperate solutions containing our utility classes.  The solutions are based on high level categories (i.e. formatting & Validation, Services, User Controls, etc).  Then within each solution we have the appropriate projects.  Each project contains the appropriate classes and creates it's own dll.  Then in our DNN Modules we just reference the nexessary dll the same way you reference the core Dotnetnuke DLL's.  The naming convention we use for the namespaces is...

For DotNetNuke specific code:

MyCompany.DNN.Utilities.BaseClasses...

For generic ASP.NET code:

MyCompany.ASPNET.Utilities.BaseClasses...

Hope this helps,

Chuck R.

 
New Post 4/28/2008 7:52 AM
User is offline Mitch Sellers
5719 posts
www.mitchelsellers.com
3rd Ranked




Re: Is there a recommended path in DNN project to put general code for reusability? 

I do something similar to what Chuck has outlined above.  The biggest part is ensuring when installing the module(s) that you don't accidentally have a needed dependency for another module removed if another module is un-installed.


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  Is there a recommended path in DNN project to put general code for reusability?
 


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.

 


DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com

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