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...Building ExtensionsBuilding ExtensionsModulesModulesCustome Module Events not firingCustome Module Events not firing
Previous
 
Next
New Post
3/15/2011 5:33 PM
 
Hello! I have developed a custom module and am trying to test it. I added the module to my site but now it appears there are no events firing. My code is stored in the page_load but it appears the OnInit is not even working. I have been working on this problem for several hours and have tried to see if many solutions would fix the problem.

Things I have already tried are:
1.) Cache Time. It is and was set to 0 already.
2.) Make sure the event is setup in the OnInit. OnInit calls InitializeComponents() which has: this.Load += new System.EventHandler(this.Page_Load);
3.) Tried changing code from Page_Load to Override OnLoad()
4.) Made sure that the code behind on the *.ascx file was correct.

I have tried to recreate the module and transplant the code and see if something was wrong with the module but I cannot get it to work still.

I am using a C# module template that can be found here:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/112/postid/260700/scope/posts/Default.aspx

Any Information would be appreciated!
 
New Post
3/15/2011 6:57 PM
 
These templates are based on the WAP module development processes - when you compile your project - you need to copy the nameofproject.dll file from the project /bin directory across INTO the dotnetnuke/bin directory ... this is usually done by most developers using a post compile action.

Westa
 
New Post
3/16/2011 3:24 AM
 
Wes, I cannot express how much a help you have been. I had been wracking my brain and normally can figure things out. I hadn't even thought about the DLL. It works now and I am moving forward. Saved my brain that is for sure! I will make sure to write this step down for future modules.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustome Module Events not firingCustome Module Events not firing


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