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  |  

telerik -- supercharge your DNN websites
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  OnInit does not get called
Previous Previous
 
Next Next
New Post 6/12/2008 3: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 3: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.

 


Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com

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