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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to navigate to another control in a module?How to navigate to another control in a module?
Previous
 
Next
New Post
7/23/2007 3:25 AM
 
Hi,

When we want to show another control (ascx) within a module, I use the following call:

Response.Redirect(DotNetNuke.Common.Globals.NavigateURL("DETAILS", "mid=" + this.ModuleId), false);

Where "DETAILS" is the control key and mid is module id. Currently we want to put a comments module under all screens. So most of my code that makes the above call navigates to a new page but other modules (such as comments module at the bottom of the screen) I placed originally in page are gone (not visible).

What is the correct way of navigating to a different control within a page without affecting other modules placed in the page?

The same issue is been posted by other user:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/146447/scope/posts/Default.aspx

Anyone please guide on this issue.

Thanks, srikanth.
 
New Post
7/23/2007 1:53 PM
 

As far as I know that is the way things are done.

I too would be interested in a resolution.


-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
7/24/2007 2:31 AM
 
mitchel.sellers@gmail.com wrote

As far as I know that is the way things are done.

I too would be interested in a resolution.



Hi,

Thanks for showing some interest.

After several hours of research, I found out that there are couple of workarounds:

a) By modifying the skin, so that there is a separate pane (other than the default left, top, right, content, bottom) - By placing our modules into this pane, even if we go to edit mode, the other modules placed in the page will not disappear. But this is a less favourable solution unless you have total control over the design and installation of DotNetNuke-based application.

b) To use ASP.NET Multiview control - we can place multiple user controls and manage them. This sometimes could get very complex and unmaintainable - unless we coin some design pattern and follow that strictly.
 
New Post
7/26/2007 3:02 PM
 

Hi,

I'm currently using a workaround similiar to your second recommendation. However, I didn't use Multiview to hold my customized user controls. Instead, I just set their Visible property to false/ true depending on some criterias. I agree that it is complex and messy. Maybe if we can put the user controls in different pages so that redirecting to a page will only show the user control(s) within this page, it will be more simplified. just my opinion

 
New Post
7/26/2007 3:27 PM
 

I personally use the dynamic control load method (this way you only have one View user control).  Michael Washington discusses the options you have to do this on one of his excellent tutorials here http://adefwebserver.com/DotNetNukeHELP/Misc/ModuleNavigationOptions.htm#Dynamically_Loaded_Controls.

A more detailed example of dynamically loaded controls is here: http://opensource.indyneinc.com/home/DevX/Articles/DynamicLoadUserControlsinDotNetNuke3/tabid/67/Default.aspx.  This is the code I used for my solution.  The only modification I made is that I don't like to use URL parameters to pass values, I instead use session variables (looks cleaner, a little more secure IMO).  And I don't need the "Utility.vb" component.

Carlos

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to navigate to another control in a module?How to navigate to another control 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