You are here Articles Archive How-To
 
View Article
06
I just posted another example of Intermodule Communication for DotNetNuke. This one is a port of the original but in C# for all you bracket lovers :)  Thanks go out to Kevon Houghton who found the original VB code on this site and wanted to give something back.

[Read More...]

Posted in: DotNetNuke, How-To

Comments

Dan Paul
# Dan Paul
Friday, February 24, 2006 11:29 PM
I'm new to ASP.net and C# having worked in JSP and Java for a while. I'm trying to implement this example with one more component on the page. I've added the following code to the new component.

public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e) {
lblReceive.Text = e.Text;
}

It does seem to fire on a send but the e.Text seems to have no value.

Thanks,
Dan
Richard Edwards
# Richard Edwards
Monday, February 27, 2006 2:20 PM
Is there anything in e.Sender or e.Target?
kevon houghton
# kevon houghton
Monday, March 27, 2006 11:33 AM
Hey all,

I'll take a look at what's going on under the hood later today and get back to you.

Kevon
kevon houghton
# kevon houghton
Monday, March 27, 2006 2:06 PM
Yeah, so... when you implement this you have to add code to do what you want it to... For instance.

I have a "next page" link button in one of my modules. The ASP is like this

Text="Next"
CommandArgument="0"
runat="server"
onClick="PagerButtonClick"/>

then in my code I have to handle the PagerButtonClick event like this...

protected void PagerButtonClick
(object sender, EventArgs e)
{
string arg = ((LinkButton)
sender).CommandArgument;

if (arg == "next")
{
CurrentPageIndex++

}

Make sense?
Chanh Phan
# Chanh Phan
Monday, May 15, 2006 10:11 AM
Hey Dan!
Here is some more info. for your stuff:
1. You want to handle events for controls on .asp pages but you use the inter-modules communication (IMC)of .DNN, that's not the right way.
2. In case you want to use IMC you must define another Listener on page you want to catch the event fired by the OnCommunication.
Hope this will help you.
CPC
Matt Fraser
# Matt Fraser
Monday, February 12, 2007 11:19 AM
How do I find this example? Clicking on "Read More" just takes me back to the home page
Richard Edwards
# Richard Edwards
Monday, February 12, 2007 11:39 AM
All the downloads have been centralized to the download page. The link has been fixed. Thanks.
Dima Mazmanov
# Dima Mazmanov
Tuesday, February 03, 2009 5:22 PM
Again Read More link seems to be broken.
Please fix.
Richard Edwards
# Richard Edwards
Tuesday, February 03, 2009 7:35 PM
The read more link works fine for me. You must be logged in, and you should see a forum that has a topic called Inter Module Communications Sample which has the code in it.
Woz
# Woz
Thursday, February 25, 2010 2:14 PM
Is the Inter Module Communications Sample Code still in the Downloads? I cannot see anything named that way. I am trying to figure out how to use IMC to send multiple values. Does this sample do that?

Thanks

Post Comment

Only registered users may post comments.
Privacy StatementTerms Of UseCopyright (c) 2004-2012 DNNStuff