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.0Hyperlinks between modulesHyperlinks between modules
Previous
 
Next
New Post
4/21/2006 6:25 AM
 

Good morning,

I managed already to make links between pages from the same module, passing more than one parameter.

Ex: hl.NavigateURL = this.EditUrl("Code", ((PlanosInfo)e.Item.DataItem).Code, "Edit", "Type", ((PlanosInfo)e.Item.DataItem).Type);

Now, I would like to understand the way to implement hyperlinks that could link one page to another module page.

As far as I understood, the edit in bold must be the name in the Key field of the edit module control page when defining page modules.

In order to link to pages in other modules, do I have to "register" these pages in the Module Definition?

Thanks in advance,

Andreia

 
New Post
4/21/2006 9:08 AM
 
I'm not 100% sure, but I think you might have to build this on your own. You'll need to know a few things to do this: the tab and module IDs, control key (if not the view control), and any other parameters required for the module's control. Assuming you have all this, which you'll probably want to derive from the database in conjunction with allowing an admin to select which module they want yours to link to, you can generate the URL pretty easily. Simply use a URL and specify the tabid, mid, and ctl parameters for the first three. Any additional parameters can be specified just as you normally would.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
4/21/2006 10:41 AM
 

Thanks for your help.

Maybe I am not yet getting the full picture of DNN... I managed to perform this link without passing these parameters... maybe I am still not aware of the security / access... implications of doing it this way.

I performed the test I mentioned in my initial post:

Created a reference in the module definitions of my first module to a page that belongs to another module. Gave it the name. Named it "SetupLanguages".

Then, in the code behind of my first page edited the hyperlink in the same way I mentioned in my last post but passed the "SetupLanguages" in the controlKey parameter of the editUrl method.

Regards,

Andreia

 
New Post
4/21/2006 12:56 PM
 
Are you wanting to link to a completely separate module or just a different control within your module? Any background on what you're attempting to accomplish would help us provide the best solution.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
4/24/2006 10:43 AM
 

Yes, that is right.

What I am trying to do is link pages from different modules.

The reason why I would like to do this is in order to avoid having several classes defined in my first module.

My first module will deal with one entity.

The second (and other additional modules) will deal with another entities that have strong relations with the first one.

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Hyperlinks between modulesHyperlinks between modules


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