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.0Link from Module A to Module BLink from Module A to Module B
Previous
 
Next
New Post
6/18/2009 11:05 AM
 

 

Thank you for reading my Thread.

I am attempting to avoid "hardcoding" a link to another tabid/module. I am familiar with using

Response.Redirect(EditUrl(string.Empty, string.Empty, "Poll_Answers_Edit", String.format("AnswerID={0}", (string)e.CommandArgument), string.format("QuestionID={0}", QList.SelectedValue)));

OR

Back.NavigateUrl = Globals.NavigateURL();

However, these allow me to link within the same module. How do I link to another module without Hard Coding the link.

Thank you for your time.

Alex

 

 
New Post
6/18/2009 4:43 PM
 

Your best bet in this case, is to give the user an option to select the module/tab for redirection.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/19/2009 6:37 AM
 

Alex,

if I understand, you need to dynamically understand where some module is installed on your portal: I solved this by using GetModuleByDefinition, like in this function:

Public Shared Function LinkCliente(ByVal pid As Integer, ByVal cdCli As String) As String
            Try
                Dim objModules As New ModuleController
                Dim SearchModule As ModuleInfo = objModules.GetModuleByDefinition(pid, "VOJPCustomers")
                If SearchModule Is Nothing Then
                    Return "#"
                Else
                    Return NavigateURL(SearchModule.TabID, "SchedaCliente", "cdcli=" & cdCli, "mid=" & SearchModule.ModuleID)
                End If

            Catch ex As Exception
                Return "#"
            End Try

        End Function

 

Hope this helps.

 

 
New Post
6/19/2009 9:39 AM
 

Thanks Alberto.

 

I'm going to go this route and test it out. I'll try it out and tell you if it worked. 

It would help me out if you confirmed what the parameters are you're passing through. "pid" I assume is the PortalID but "cdCli" I don't know. Is "VOJPCustomers" your modules friendly name? and what type of parameter is "SchedaCliente". Thanks for all the clarifications. It is greatly apreciated.

Alex

 
New Post
6/19/2009 10:56 AM
Accepted Answer 

AlexScript wrote


It would help me out if you confirmed what the parameters are you're passing through. "pid" I assume is the PortalID but "cdCli" I don't know. Is "VOJPCustomers" your modules friendly name? and what type of parameter is "SchedaCliente". Thanks for all the clarifications. It is greatly apreciated.

Alex

Alex,

you're right sorry, have to clarify:  yes pid is a parameter for PortalID, while "cdCli" is another param I need (customer code in my scenario). Exactly, "VOJPCustomer" is the friendly name of the module I want to link. Finally, "SchedaCliente" is a control in my module: passing this param to the NavigateURL function would result in a "ctl=SchedaCliente" param to be added in the generated url. If you omit that you will link to the main View control of your module.

That is:

Return NavigateURL(SearchModule.TabID, "SchedaCliente", "cdcli=" & cdCli, "mid=" & SearchModule.ModuleID)

will give me a link to a certain tabid (the one where my VOJPCustomers module is installed), and will ask that module to load the "SchedaCliente" control, passing a cdCli parameter.

Regards,

al.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Link from Module A to Module BLink from Module A to Module B


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