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.02 Pages in One DNN Module2 Pages in One DNN Module
Previous
 
Next
New Post
6/21/2007 9:56 PM
 

Is it possible two have 2 pages in one DNN Module? I tried to add one link on one DNN Module, but how can I call it? I tried to set its postback url property but that doesn't works. Please help, thanks in advance!

 
New Post
6/22/2007 12:38 AM
 

I'm not sure I understand what you want, but i'll assume you want to link one page to the other in the same module.

First, if you are developing a module, your 2 pages are of type .ascx. Then, in the HOST menu, go in your module definition and make sure the page you are linking to has a KEY set. Then, from the calling page, you can either bind your URL using the DotNetNuke.Common.Globals.NavigateUrl() function in code behind or using inline code.

Example: You have page1.ascx and page2.ascx, and page1.ascx has no key (it's your main page), and page2.ascx has the key 'page2'

page1.ascx has a web control <asp:Hyperlink runat="server" id="hyp1" Text="Some Hyperlink"></asp:Hyperlink>

Then, to generate your link, you go in code behind like this:

hyp1.NavigateUrl = DotNetNuke.Common.Globals.NavigateUrl(this.TabId, "page2", "mid=" + this.ModuleId);

I hope that helped you.

 
New Post
6/22/2007 4:32 AM
 

Thanks for the reply. That's what I did, but what happen is that, all of the default modules where gone. What I want is I am only navigating on a specific module, without affecting the whole page. I tried to add placeholder and multiview server control and it works fine in vb.net but not in c#. Please help me in c#. Thanks again!

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.02 Pages in One DNN Module2 Pages in One DNN Module


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