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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to Comminicate between module(Donot Using QueryString)How to Comminicate between module(Donot Using QueryString)
Previous
 
Next
New Post
3/29/2009 1:37 PM
 

Here is my $0.02:

90% of the time when developer's need two modules to communicate, they really need to just put the functionality in one module. If you want a person to choose a category on the left hand side of the page and then the category shows up on the right hand side, simply make a module that has that layout.

Most of the business solutions I do are simply one module that fills the page. The "layout" looks correct to the end user (for example a category selection on the side that stays in one place) but basically it's just a single module on the page.

You just need to ask yourself "what would I do if this were not a DotNetNuke module? How would I design this application?"

Basically I create separate modules when the functionality is separate. If the modules need to communicate tightly you don't want to create seperate modules.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/26/2009 4:54 PM
 

Thanks for the nice description Fabian.

Is the IMC still search engine friendly or is it better to use query strings to pass info between two modules like categories module and list of items module?

Thank you.



Nedim
 
New Post
6/25/2009 7:58 AM
 

Hi, I am having a challenge with implementing or rather getting Entities.Modules.Communications.IModuleListener to work.

I have the 2 modules BuyOnlineSideMenu and BuyOnlineViewProducts. I implemented the IModuleCommunicator in the BuyOnlineSideMenu module and the IModuleListener in BuyOnlineViewProducts. Please see the code below. The Sidemenu consists out a treeview, when a category is selected it causes a postback during which it raises the ModuleCommunication event. I have debugged upto this point and can confirm that it works upto here but the handler on the IModuleListener is never reached.

My events seem to be fired in the following order:

1. BuyOnlineSideMenu.Page_load
2. BuyOnlineViewProducts.Page_load
3. BuyOnlineSideMenu.TreeViewOnNodeClickEvent

Any help will be appreciated

Thanks

Wayne


    Partial Class BuyOnlineSideMenu
        Inherits BaseNetReadyModule
        Implements Entities.Modules.Communications.IModuleCommunicator

 ...

        Protected Sub TreeViewOnNodeClickEvent(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)
            Dim Moduleargs As New Entities.Modules.Communications.ModuleCommunicationEventArgs

            Moduleargs.Sender = "BuyOnlineSideMenu.ascx"
            Moduleargs.Target = "BuyOnlineViewProducts.ascx"
            Moduleargs.Text = e.Node.Text
            Moduleargs.Type = "node clicked"
            Moduleargs.Value = e.Node.Value

            RaiseEvent ModuleCommunication(Me, Moduleargs)

        End Sub

    End Class


    Partial Class BuyOnlineViewProducts
        Inherits BaseNetReadyModule
        Implements Entities.Modules.Communications.IModuleListener

 ...

        Public Sub OnModuleCommunication(ByVal s As Object, ByVal e As DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs) Implements      DotNetNuke.Entities.Modules.Communications.IModuleListener.OnModuleCommunication

            If e.Target = "BuyOnlineViewProducts.ascx" Then
                If CInt(e.Value) > 0 Then
                    _ProductCategoryID = e.Value
                    BuildProductDisplay()
                End If
            End If

        End Sub

    End Class

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to Comminicate between module(Donot Using QueryString)How to Comminicate between module(Donot Using QueryString)


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