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  |  

DotNetNuke Marketplace
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


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


Controlling ModuleActions by business logic 

I want to control the visibility of the AddContent action by custom business logic. The problem is that the "business" information is not available yet when the skin calls my ModuleActions() method.

How can I control the ModuleAction visibility in Module_Load event?

 
New Post 1/17/2006 8:35 AM
User is offline Robert Lyda
82 posts
10th Ranked


Re: Controlling ModuleActions by business logic 
Can you associate the ModuleActions with Roles?  That's how I think DNN is really setup to handle who gets what actions...
 
New Post 1/17/2006 12:35 PM
Online now... Charles Nurse
2899 posts
5th Ranked










Re: Controlling ModuleActions by business logic 
 espenalb wrote

How can I control the ModuleAction visibility in Module_Load event?



Any reason why you can't use Module_Init?

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
 
New Post 1/17/2006 2:34 PM
User is offline Espen Albrektsen
14 posts
10th Ranked


Re: Controlling ModuleActions by business logic 

The businnes logic information is not available at module_init.

This is the scenario:

We have two modules on the page - one selector let us call it M1 and one viewer, call it M2

The user selects something in M1, triggering a postback. M1_init and M2_Init are called - but the new selection is still not available.

Now M1 and M2 retrireves the Action collection, and finally M1_Load is called updating the Session, making the new values available to M2.

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

 
New Post 1/18/2006 1:35 AM
User is offline Vicenç Masanas
1408 posts
www.disgrafic.com
6th Ranked








Re: Controlling ModuleActions by business logic 
Business logic information is available when you get it.
If you need it on the Module Actions property just make a call to whatever method you need and get the information. Then you can code visibility to your action items based on whatever information you got. I've used this a couple of times, no magic in it.

Disgrafic.com
 
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.

 


Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au

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