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
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
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
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Need Module to talk to another Module
Previous Previous
 
Next Next
New Post 4/18/2008 10:44 AM
Informative
User is offline avworkz
8 posts
10th Ranked


Need Module to talk to another Module 

I have worn out the search engine trying to find an answer to this question  and I think i have seen it here before, alas the search  feature seems to be a little week given the amount of content we have here. So...

I have a module with a Treeview that pulls data when a Leaf is selected and it needs to tell another module on the page to fill the information based on the selection(yes we have consider making one big module and may still do it, but the treeview module has many functions we want to reuse). How do i pass information between the modules so i can populate the desired data?

 
New Post 4/18/2008 11:02 AM
User is offline Brandon Haynes
542 posts
everysport.net
8th Ranked


Re: Need Module to talk to another Module 

Hi Avworkz,

You're likely going to wind up using inter-module communication to accomplish this task.  IMC allows a module to raise an event that can be consumed by other modules on the same page.  Look at the IModuleCommunicator and IModuleListener interfaces in the DotNetNuke.Entities.Modules.Communications namespace, and google "dotnetnuke imc" for some concrete examples.

Hope this points you in the right direction!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 4/18/2008 12:58 PM
Online now... Michael Washington
2656 posts
ADefWebserver.com
5th Ranked










Re: Need Module to talk to another Module 

 avworkz wrote

(yes we have consider making one big module and may still do it, but the treeview module has many functions we want to reuse).

I'm only giving my $0.02 cents here because I have seen this question so much over the years.

If you want to reuse the TreeView perhaps you can include it as a reusable .ascx control on the page?

I always encourage developer's to make "small modules" and leverage the DotNetNuke framework, however, there are times where 2 pieces are functionality are really one.

For example the tree view and the resulting click comprise one functional thing. One would be useless without the other. In this case trying to make a separate module out of each part can cause needless complexity.



Michael Washington
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
New Post 4/25/2008 6:23 AM
User is offline avworkz
8 posts
10th Ranked


Re: Need Module to talk to another Module 

Thanks for these wise words. We have done just this with total success and no stress.
Thank You!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Need Module to talk to another Module
 


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.

 


TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint - Microsoft Technology Community
PartnerPoint is one of the largest online communities of Microsoft Partners Worldwide. With over 5,000 active members, it serves as a collaboration platform for other technology communties around the globe
www.partnerpoint.com
Web Valley
Website design, Database development
www.webvalley.com

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