Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IMC Problem IMC Problem
Previous
 
Next
New Post
2/29/2008 2:42 AM
 

I'm trying to let my module to communicatie with an other module with IMC. However, I have the following problem.

The code I implemented is

partial class ViewBosalContactSelector : PortalModuleBase, IActionable, IModuleCommunicator
{
     public event ModuleCommunicationEventHandler ModuleCommunication;
          .........................................
     protected void ddlCriteria3_SelectedIndexChanged(object sender, EventArgs e)
       {
           ModuleCommunicationEventArgs MCArgs = new ModuleCommunicationEventArgs();
           MCArgs.Sender = "ViewBosalContactSelector";
           MCArgs.Target = string.Empty;
           MCArgs.Value = ddlCriteria3.SelectedValue;
    
           if
(ModuleCommunication != null)
           {
               ModuleCommunication(this, MCArgs);
           }
 }

The problem occurs with ModuleCommunication != null.  This object is always null so the condition is never executed. I have set the cache of the module to 0.
Does anybody has an answer to my problem ?

Thanks in advance

Patrick

 
New Post
2/29/2008 1:36 PM
 

Hi Patrick,

Did you implement the IModuleListener interface on the module that is to receive the communication?  If no modules implement this interface, I would expect ModuleCommunication to be null, because no objects would have subscribed to the event.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
3/5/2008 12:07 PM
 

Hi Brandon,

I did implement the IListener but not 100% the wat it should. I've got it working now. Thanks for your reply

Patrick

 
New Post
10/3/2008 10:29 PM
 

Patrick,

Would you mind explaining further what you did to get it working?

I have been working on this for most of the day, reading everything on the 'net, and I can't figure out what I've missed. Sounds like I was at the same place you were before you implemented "the way it should" be.

Thanks,

Jesse

 
New Post
10/3/2008 10:38 PM
 

IMC is very hard to get right! Especially the first time...

JK.


You know your website is cool, so why not let your users help you by spreading the word on social networking sites - get the DotNetNuke Social Bookmarks Module with 57 different ways to add social bookmarks to your site ... or download the FREE demo right now
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IMC Problem IMC Problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out