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...Using Modules a...Using Modules a...Problem with module communicationProblem with module communication
Previous
 
Next
New Post
8/22/2011 4:00 PM
 
I have a problem with the module communication. I have a module that implements the module communication interface both listener and sender. in this module, I have a placeholder where I load a new ascx control. the problem is when I want to Communicate from this new dynamically loaded control. In this control i also implemented module communication interfaces( listener and sender). but when I call sender method, in this dynamic loaded control to update an other module (on same page)nothing happens. But then i call a " sender " from the dynamic loaded controls container control( the control where i have the placeholder) it works updating the other module on the same page. It seams that module comunications do not work in dynamic loaded ascx controls at all. Is there anyone who have any idea , to solve this /theonealf
 
New Post
8/22/2011 9:49 PM
 
I would avoid module communication as a rule - it is bad for SEO and prevents users being able to bookmark the current state of a page since changes made to one module by another module using the module communication system do not surface  to the URL level in a meaningful way.

I would instead strongly recommend that you maintain the state of the page in the URL using parameters as part of the query string.
If  you want to change the contents of the second module based on the selection of an action by the first module - do so by a url link action on the first module with values in the query string.

That way the user can bookmark the current state - and search tools can properly index your page - since they will walk the path of any URL's they find in the page.

With regard to your specific problem - the module communication interface does not have the ability to understand the concept of dynamically loaded controls. The interface is designed for communication at the MODULE level to MODULE level - as such you need to manage the sender / receiver as an interface of  the main module.

In the receiver on your main module you could then add your own code to trigger a receiver method on the dynamically loaded control.

Westa
 
New Post
8/26/2011 5:35 AM
 
Hi
thanks for your reply
but how do i do this.. update modules with an querystring url link action?
(you wrote: ...change the contents of the second module based on the selection of an action by the first module - do so by a url link action on the first module with values in the query string.)
do you have some code or link that explains it?

/theonealf


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Problem with module communicationProblem with module communication


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