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.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

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


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Controlling ModuleActions by business logic
Previous Previous
 
Next Next
New Post 1/18/2006 1:44 AM
User is offline Espen Albrektsen
14 posts
10th Ranked


Re: Controlling ModuleActions by business logic 

The problem is that postback data is not loaded in Page_Init - it is loaded between Page_Init and Page_Load

Since the Actrion collection is queried in Page_Init, we can not control the action visibility from the control values, as they are not available before Page_Load.

I am trying to add the action to the container in my Module_load, using the following scenario:

1 - Module implements IActionable
2 - ModuleActionCollection returned is empty
3 - In module_load Event handler:

Dim ctlContainer As UserControl = Me.ContainerControl
Dim objActions As DotNetNuke.UI.Containers.ActionBase = CType(FindActionControl(ctlContainer), DotNetNuke.UI.Containers.ActionBase)
objActions.MenuActions.Add(_addContentAction)

But this did not work, I assume the objActions collection is parsed in Container_Init

Any suggestions?

(The simple workaround is to not use the DotNetNuke action and just put a button on the page, but that is not as nice)

 

 
New Post 1/18/2006 2:36 PM
User is offline Charles Nurse
2899 posts
5th Ranked










Re: Controlling ModuleActions by business logic 
 espenalb wrote

Question: Is the selected value property of a dropdownlist available at M1_Init? Because then we could update the session in Init...



The answer to your question I think is no - see this link in MSDN on Control LifeCycle

Charles Nurse
DotNetNuke Trustee,
Senior Architect, DotNetNuke Coporation
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
See my Blog for Articles on .NET, DNN and Module Development

View my Blog
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Controlling ModuleActions by business logic
 


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.

 


Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com

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