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.0Why does the page_load get triggered twice in a module?Why does the page_load get triggered twice in a module?
Previous
 
Next
New Post
11/29/2006 2:48 PM
 

I have a module I created where the page_load gets fired 5 times.  If I remove either one of the two events (MyBase.Load,  or Me.Load) then it fires 4 times.  I am pretty new to module development and may have done something totally stupid, but I can't find it.  I have a "If Not Page.IsPostback Then" construct and the code inside of it gets fired all 5 times, and the debugger confirms that the Page_load fires five times with no code in between (at least nothing I can step into).  It just goes from Private Sub Page_Load ... to End Sub, then back to beginning.  Immediately after the last time through, Admin/Containers/ActionButton.ascx.vb has a Page_Init Handles myBase.Init that runs five times in a row also.

Could this be due to a dnn module development issue?

Thanks.

Mark

 
New Post
11/29/2006 4:48 PM
 
One suggestion for figuring out more information would be to put a breakpoint on Default.aspx's page load; this will let you know if it's just your application or the whole page reloading...  This would probably only be a possibility if you're using custom handlers or have modified the core code - if you're on a clean install and just adding a module it probably wouldn't be the case...   I got stuck on this exact problem once; i thought forever the problem was in my module - it turned out it was with one of my custom HTTP modules.
 
New Post
11/29/2006 5:55 PM
 
Thanks for the suggestion Matt.  I am just adding modules to a clean install.  I tried it anyway, but Default.aspx's page_load only fires once.  I've looked at a few of my other custom modules and they all fire twice (myBase.load and me.load).
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Why does the page_load get triggered twice in a module?Why does the page_load get triggered twice in a module?


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