Well, this post I will share with you my finding about the DNN IMC, something like you want to pass 1 or more values from one module to another module, imagine you created 2 modules, one is search module another one is result list module. You type something in search module and hit “go”, the value from search module will pass to result list module, for instance.
OK, stop the crap.
in sender module,
import this
using DotNetNuke;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Communications;
Extend the Interface
public partial class Training : PortalModuleBase, IModuleCommunicator
Declare this
public event ModuleCommunicationEventHandler ModuleCommunication;
Here the button Click
protected void btnSearch_Click(System.Object sender, System.EventArgs e)
{
try
{
ModuleCommunicationEventArgs MCArgs = new ModuleCommunicationEventArgs();
MCArgs.Sender = "ACS.BCU_Training.Search";
MCArgs.Target = string.Empty;
MCArgs.Text = "Search Text is " + txtSearch.Text;
MCArgs.Value = txtSearch.Text;
if (ModuleCommunication != null)
{
ModuleCommunication(this, MCArgs);
}
}
catch (Exception exc) //Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
In Receiver Module,
import this
using DotNetNuke;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Communications;
extend the interface
partial class View_Training : PortalModuleBase, IActionable, IModuleListener
put this method
public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
{
if (e.Sender == "ACS.BCU_Training.Search")
{
string imcValue = (string)e.Value;
BindList(imcValue);
}
}
in BindList, just normal pass the value to business object to retrieve a list of data you want.



i think i did the same @ my side . anyway thanks
[...] Inter Module Communication in DNN using C# – Well, this post I will share with you my finding about the DNN IMC, something like you want to pass 1 or more values from one module to another module, imagine you created 2 modules, one is search module another one is result list … Other post in DotNetNuke – Module DevelopmentCreating DotNetNuke Modules – May 20th, 2008Creating DNN Modules – The Tools – May 22nd, 2008DotNetNuke Modules – Foundational Concepts – May 26th, 2008DotNetNuke Modules – Install DNN into VS 2008 – May 27th, 2008DotNetNuke Modules – Creating Base Modules – May 28th, 2008DotNetNuke Modules – Registering Your Module – May 29th, 2008DotNetNuke Modules – Where Stuff Shows Up – June 3rd, 2008DotNetNuke Modules – Benefits of Architecture – June 4th, 2008DotNetNuke Modules – Anatomy of the View – June 9th, 2008DotNetNuke Modules – Adding Actions – June 11th, 2008DotNetNuke Modules – DNN Controls – Label – June 18th, 2008DotNetNuke – Internationalization – June 25th, 2008DotNetNuke Modules – Internationalization (part 2) – June 30th, 2008DotNetNuke Modules – Labels w/ no Help – July 9th, 2008DotNetNuke Modules – LinkButtons – July 14th, 2008DotNetNuke Modules – Collapsible Panels – July 16th, 2008DotNetNuke – The Data Layer – Installing CodeSmith – July 22nd, 2008DotNetNuke – Modules – Creating The Tables – July 24th, 2008DotNetNuke – Modules – Creating Stored Procs – July 29th, 2008DotNetNuke – Modules – Portal Specific Modules – July 31st, 2008DotNetNuke Modules – Data Access Layer – August 5th, 2008DotNetNuke Modules – Data Access Layer – August 7th, 2008DotNetNuke – Data Access Layer Alternative – August 12th, 2008DotNetNuke – Modules – Linking within the module – August 14th, 2008DotNetNuke – Make Your Module Searchable – August 19th, 2008DotNetNuke Modules – Making Content Portable – August 25th, 2008DotNetNuke Modules – Exceptions the DNN Way – September 2nd, 2008DotNetNuke Modules – PortalModuleBase – September 4th, 2008DotNetNuke Modules – Inter Module Communication – September 9th, 2008If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!Related PostDotNetNuke Modules – Exceptions the DNN WayDotNetNuke Skins – ASCX vs HTML modeDotNetNuke Modules – Making Content Portable Bookmark to: Hide Sites Tags: asp.net, dnn modules, dotnetnuke, imc, inter module communication [...]