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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Shared Code and ControlsShared Code and Controls
Previous
 
Next
New Post
4/28/2009 10:52 AM
 

Ok i have been reading the forums, i have been reading the DNN book, and i still can't figure it out.

I have a bunch of modules i created, about five, they work on the same database and work together in a manner.

Now it turns out that i have some code that is duplicated across all my modules. Not just back end code but some contain parts that could be in controls and shared.

So i decided to separate those parts and share them among my modules, but i can’t do it.

I tried putting user controls inside the controls folder but i can’t see them anywhere, i don’t know how to add them to my modules.

I also tried putting some classes inside the app_code folder, but here i encountered a problem due to the fact that i don’t know vb and write all my code in c#, but this will not compile.

Please help. How have you solved this?

 
New Post
4/29/2009 1:10 PM
 

Hi Andrew,

if you want to use C# in the App_Code folder, you'll need to register the subfolder in the web.config file. Anyway, is your controls library in the bin folder and correctly referenced by your modules?

Best regards,
Dario Rossa

 
New Post
4/30/2009 5:33 PM
 

I added my subfolder to the <codeSubDirectories>, and now i can put in code in there and it is exposed to my module.

Great success, thanks.

However i still don't know how to do it with a control. And no i don't see it in the bin folder. :( do i have to register it too?

Regards

A

 
New Post
5/1/2009 3:03 AM
 

Hi Andrew,

if you are using WAP model make sure that the output folder for compiled libraries is the DNN/bin subfolder. If you are using the WSP model you don't need this, just register it and use the control on your pages.

Best regards,
Dario Rossa

 
New Post
5/3/2009 10:47 AM
 

Hi Dario,

Since i am using WSP i guess i don't have to worry about the dll.

It all apears to be working fine on my dev enviroment. I have both shared classes in my app_code folder as well as a common control i use in my modules.

However i am not really sure how to distrubute this to my server. The package does not apear to include the shared control.

So my module does not work.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Shared Code and ControlsShared Code and Controls


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