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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...IMC Communication OK, fail refresh in receiver moduleIMC Communication OK, fail refresh in receiver module
Previous
 
Next
New Post
7/30/2008 11:24 AM
 

Hi,

I am doing a small proyect, and I just connected two modules using IMC (First time ever!, and I am quite happy with this 'discovery')... (example taken from here)

THE PROBLEM: The receiver module has the new information (in a Label.Text) from sender module, however it is not refreshed. So, I need to render the module with the updated information where the sender send the message. To test de receiver module, I added a button and after click on it, the modules is refreshed with the new information.

Any advice is very welcome.

Thanks,

Alfonso

 

 
New Post
7/30/2008 11:54 AM
 

Alfonso,

This maybe an issue with AJAX ... if you "sending" module is in an update panel,  you receiving module will not be told about the change (I believe).  So you must either disable AJAX update panel, or force a post-back to all other modules on the page will refresh. 

Paul.

 
New Post
7/30/2008 12:23 PM
 

Hi Paul, you are right, it is a issue with AJAX, I disable partial rendering in the sender module, and everythig is working ok, however I lost good features of the AJAX in the sender module.

Any clue to refresh the Receiver Module without disable the AJAX control from the Sender Module

Thanks,

Alfonso

 

Paul Scarlett wrote

Alfonso,

This maybe an issue with AJAX ... if you "sending" module is in an update panel,  you receiving module will not be told about the change (I believe).  So you must either disable AJAX update panel, or force a post-back to all other modules on the page will refresh. 

Paul.

 
New Post
7/30/2008 12:44 PM
 

Done!!!!

 I added an UpdatePanel in the Receiver Module.  (Both sender and receiver have AJAX enabled), then on the OnModuleCommunication I updated the panel

public void OnModuleCommunication(object s, ModuleCommunicationEventArgs e)
{
...
UpdatePanel1.DataBind();
}

 
New Post
7/30/2008 12:47 PM
 

Alfonso,

You can still enable Ajax, but you will need to tell Ajax that you want the Update Button (or whatever control)  to perform a full postback.  

You will need something like:

DotNetNuke.Framework.AJAX.RegisterScriptManager()
DotNetNuke.Framework.AJAX.RegisterPostBackControl(btnControl)

where btnControl is the control on the page that must cause a full postback.

There is probably some other way to "wake up" the other module, but I am not aware...

Paul.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...IMC Communication OK, fail refresh in receiver moduleIMC Communication OK, fail refresh in receiver module


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