| | | View Article | |
|
|
|
| Tuesday, December 06, 2005 | |
|
| Comments | By
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 |
|
|
By
Richard Edwards @
Monday, February 27, 2006 2:20 PM | |
Is there anything in e.Sender or e.Target?
|
|
|
By
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 |
|
|
By
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
<asp:linkbutton id="Next" 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?
|
|
|
By
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 |
|
|
By
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 |
|
|
By
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. |
|
|
Click here to post a comment |
|
|
|
 |
| | |
|