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 ...problem with NavigateURL ...problem with NavigateURL ...
Previous
 
Next
New Post
5/17/2008 7:19 AM
 

Hi, I want to send a parameter from a user control to another user control,"Message.ascx", in my module, I use the code below and It never calls the "page-load" of "Message.ascx" . "MessageID" is the parameter that I want to use it in "Message" page..

What's the solution?

Dim urlArgNew As String = String.Format("mid={0}", CStr(ModuleId))

Dim arrOfStrings() As String = {urlArgNew, "MessageID="&MessageID}

Response.Redirect(NavigateURL(PortalSettings.ActiveTab.TabID, "Message", arrOfStrings))

 
New Post
5/17/2008 10:18 AM
 

There are inter-module communications tools available in the DotNetNuke framework.  You'll do better using them, provided that both modules are under your control.




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
5/18/2008 12:40 AM
 

Thanks Joe,

I hadn't any information about "IMCs" ,But I read some articles after you told me ,So ,now I wrote this code . the code in sender page runs but receiver never get anything . why ?

Sender :

Imports DotNetNuke.Entities.Modules.Communications

Partial Class Inbox

Inherits DotNetNuke.Entities.Modules.PortalModuleBase

Implements IModuleCommunicator

Public Event ModuleCommunication(ByVal sender As Object, _ ByVal e As ModuleCommunicationEventArgs) _

Implements IModuleCommunicator.ModuleCommunication

btn_clicked:

Dim mcArgs As ModuleCommunicationEventArgs = New ModuleCommunicationEventArgs()

mcArgs.Sender = "Inbox"

mcArgs.Target = "MessageID"

mcArgs.Value = MessageID

RaiseEvent ModuleCommunication(Me, mcArgs)

Receiver:

Imports DotNetNuke.Entities.Modules.Communications

Partial Class Message

Inherits DotNetNuke.Entities.Modules.PortalModuleBase

Implements IModuleListener

Sub OnModuleCommunication(ByVal s As Object, _

ByVal e As ModuleCommunicationEventArgs) Implements IModuleListener.OnModuleCommunication

Dim MessageID As String

If e.Target = "MessageID" Then

     MessageID = e.Value.ToString()

End If

End Sub

Thank you .

 
New Post
5/19/2008 12:05 PM
 

Looks okay to me.  Are both modules are instantiated on the SAME page?

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...problem with NavigateURL ...problem with NavigateURL ...


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