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.0Problems with copying modulesProblems with copying modules
Previous
 
Next
New Post
3/19/2009 4:26 AM
 

Hey guys!

I've got a problem which is surely very easy to resolve if you know the answer. I am searching since yesterday and i still don't have a clue.

I have written a small module, which has a button and a lable. When the user clicks the button, the label should show some text (e.g. "HelloWorld"). This module works great on my local dnn-installation (which i've opened in Visual Studio "File"->"Open"->"Website"). But when i copy the *.ascx and *.ascx.cs-files on the server it does not work any more.

Where do i have to paste the files? I have found a tutorial (http://www.adefwebserver.com/DotNetNukeHELP/DNN4_SurveyModule/) which contains this tip:

"The Web User Controls and their associated code behind files reside in the Module's directory that is in DesktopModules directory."

But when i copy those files in the "%pathtodnn%\DesktopModules\HelloWorld"-directory it just don't work.

 

I can create a new module and the HelloWorld-module appears in the dropdown-field where i can add a module to a specific pane. When i choose the HelloWorld-module and I add it to the content pane, the site reloads and it doesn't happen anything. There is no module.

 

I'm sorry for my english, but i tried hard to write good english =)

Thanks a lot!

 
New Post
3/19/2009 5:55 AM
 

the module needs to be registered first, either by importing the dnn file, or by doing it by hand (host>module definitions > add new module)

make sure you have at least one control that has no key, that will be the control that will be loaded by default by dnn.

also, make sure module caching is turned OFF, since you are doing a postback (if the module is cached no server side code will be executed for that module)


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/19/2009 6:29 AM
 

Hi!

Thanks for your answer!

I don't know how to create a dnn-file, but i have created a a new moduledefinition by clicking on "Create Module Definition".

I don't understand this sentence: "make sure you have at least one control that has no key, that will be the control that will be loaded by default by dnn." Which key do you mean? 

How can i turn module caching off? I have found unter "Host"->"Host Settings"->"Performance Settings" the option "module caching method". I can choose "Memory" and "Disk". The option "Disk" is chosen by default.

Is it okay that i've copied the files to the DestopModules-directory?

Many thanks!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problems with copying modulesProblems with copying modules


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