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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Switching Contorls in a ModuleSwitching Contorls in a Module
Previous
 
Next
New Post
4/22/2010 2:12 PM
 

I've created a simple module that has two controls.  It's for testing right now so the main ascx page has a label and a button.  The second ascx file was added as a control to the module, set to view and given a key of "TestDirect".  The goal is to show the main page of the module (the label and button) and if the button is clicked it will show the "TestDirect" control. I did some searching and came up with this:

Response.Redirect(NavigateURL(PortalSettings.ActiveTab.TabID, "TestDirect", "mid=" + ModuleId.ToString()))

This redirects to the current tab, loads the control with TestDirect as the key for my current module.  When I click the button I get the second control like I expected.  My problem is this is the only module that shows on the page.  I have modules on the side of the page for "Contact Support", "Quick Links", etc.  The other modules show up when the page loads, but when I click the button I get only the "TestDirect" page, all other modules are gone.  I tried taking the mid out of the Redirect thinking it is telling DNN to only show this module.  When I did that I get a page with no modules after I click the button. Is there a way to change the control of my module to a second page and still display the other modules on the page?

It's kind of like the forums here.  When you are at the main forums page you see some advertisement modules off to the right.  But if you click on My Settings you see your "User Settings" page but those other modules go away.  What I'm going for is clicking My Settings and seeing the User Settings page AND the advertisement modules to the right.

One solution is creating multiple pages on the site.  The first is the main forums page with the advertisement modules off to the right.  The second page is not included in the menu and it has a "User Settings" module on it with the advertisement modules to the right.  When you click the button on the first page it redirects you to the second page on the website and you get your User Settings plus the extra modules.  It seems like alot of extra work doing it this way so I'm hoping there is an easier option.

-Mike

 
New Post
4/23/2010 11:12 AM
 

Maybe I made the above post too complicated. Here's a quick summary of what I'm trying to accomplish using the forums as an example.

The forums have modules to the right of the page, some advertisements, sponsors, etc. They are in the right pane of the page and the forum is in the left pane. When you click on My Settings for the forum it loads the My Settings control for the module so you can change your settings. But, when it loads that control the advertisements, sponsors, etc. in the right column dissapear. Is there a way to have it load the My Settings, but keep the other modules in the right column?

I have tried the following and have it working like the My Settings, but I need a way to keep the modules off to the right of the page: Response.Redirect(NavigateURL(PortalSettings.ActiveTab.TabID, "TestDirect", "mid=" + ModuleId.ToString()))

 
New Post
4/23/2010 11:22 AM
 

Check out this post by Michael Washington.  A good summary of your options.

http://adefwebserver.com/dotnetnukehe...

 


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/23/2010 11:36 AM
 
Thanks Richard. The solutions there will work. It would have been easy if there was an extra flag I could use in the NavigateUrl call to keep the extra modules on the page. The link you sent provides some workarounds (a bit more logic involved, but doable). Better than nothing though. Thanks again.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Switching Contorls in a ModuleSwitching Contorls in a 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