Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  OnInit does not get called
Previous Previous
 
Next Next
New Post 6/12/2008 2:40 PM
Unresolved
User is offline chillinmoon
4 posts
10th Ranked


OnInit does not get called 

Hi,

     I created a new module (say MyModule) and customized DesktopModules/MyModule/ViewMyModule.ascx.   I added "protected override void OnInit" and "protected override void Page_Load" methods to the code behind. For some strange reason, when the module is being rendered, "Page_Load" gets called, but "OnInit" does not. "ascx" files Control directive does have "AutoEventWireup="true" directive.

Any thoughts on what could be the problem?

Regards,
Akash

 
New Post 6/23/2008 2:53 PM
User is offline andyah
35 posts
10th Ranked


Re: OnInit does not get called 

What is the Page_Init function Handling?  Is should 'handle' the MyBase.Page_Init function...

I confess I've had this happen to me before...but never resolved it.  Do you have controls on the page?  Is 'runat=server' specified for each control?  Please let us know if you solve this and how...

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  OnInit does not get called
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP