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 ExtensionsModulesModulesModules Run Twice! - Why? How to stop it.Modules Run Twice! - Why? How to stop it.
Previous
 
Next
New Post
6/30/2010 10:12 AM
 
Thanks to both of you. Each of these was an issue in each of the modules I was working on. Same were models downloaded like (MVP) and other were default modules. Each one of them had at least one of these errors. When I did what you told me to do, they are ALL now working!
 
New Post
12/18/2012 10:55 AM
 
Sorry to dig up an old thread, but I just ran into this same problem, where the Page_Load event of a module was being called twice. The cause for me was a line in Chris' original module template (for VS 2010):

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load); // HERE
}

Commenting that line out removed one call to the module's Page_Load routine. I'm not sure why that line is in there, its seems to just cause the load event to fire twice. I peeked through the VS2012 template code and I don't see a similar line in there (We don't have VS2012 yet, so are still using the 2010 version).

Leaving this here for future Googlers of this issue and hopefully a response.

Thanks.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModules Run Twice! - Why? How to stop it.Modules Run Twice! - Why? How to stop it.


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