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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  problem with NavigateURL ...
Previous Previous
 
Next Next
New Post 5/17/2008 4:19 AM
Unresolved
User is offline elhamroshan
12 posts
10th Ranked


problem with NavigateURL ... 

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 7:18 AM
User is offline Joe Craig
329 posts
8th Ranked


Re: problem with NavigateURL ... 

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.

 
New Post 5/17/2008 9:40 PM
User is offline elhamroshan
12 posts
10th Ranked


Re: problem with NavigateURL ... 

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 9:05 AM
User is offline Brandon Haynes
624 posts
everysport.net
7th Ranked


Re: problem with NavigateURL ... 

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

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  problem with NavigateURL ...
 


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 Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com

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