Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  IMC Communication OK, fail refresh in receiver module
Previous Previous
 
Next Next
New Post 7/30/2008 9:24 AM
Resolved
User is offline Alfonso Bastias
208 posts
www.filapedia.com
9th Ranked


IMC Communication OK, fail refresh in receiver module 
Modified By Alfonso Bastias  on 7/30/2008 12:44:47 PM)

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 9:54 AM
User is offline Paul Scarlett
211 posts
www.tressleworks.ca
9th Ranked




Re: IMC Communication OK, fail refresh in receiver module 

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 10:23 AM
User is offline Alfonso Bastias
208 posts
www.filapedia.com
9th Ranked


Re: IMC Communication OK, fail refresh in receiver module 

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 10:44 AM
User is offline Alfonso Bastias
208 posts
www.filapedia.com
9th Ranked


Re: IMC Communication OK, fail refresh in receiver module 
Modified By Alfonso Bastias  on 7/30/2008 12:47:22 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 10:47 AM
User is offline Paul Scarlett
211 posts
www.tressleworks.ca
9th Ranked




Re: IMC Communication OK, fail refresh in receiver module 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  IMC Communication OK, fail refresh in receiver module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP