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.0View Control RedirectionView Control Redirection
Previous
 
Next
New Post
11/10/2006 8:40 AM
 

I have two view controls in my module. I always get "edit mode" when i redirect from one control to another.

This is my redirect code:

Response.Redirect(Globals.NavigateURL(TabId, "MyControlKeyName", "mid=" + ModuleId)

Is there any way of redirection from one view control to another without going in to edit mode?

 
New Post
11/13/2006 4:47 AM
 

Nobody knows if it's possible to redirect from view control -> view control?

Or do i have to use panes in same control, instead of seperat controls?

 
New Post
11/13/2006 9:27 PM
 

Can you post a url to an example of what you are trying to do?  Are these controls on the same page?  Are they the same module definition?  If they are the same page, I typically use panels and set visibility in the logic. (if I understand what you are trying to accomplish).  If you can give us an example or a few more details we may be able to help better.

 

 
New Post
11/14/2006 12:54 PM
 

Sorry i don't have any url to show, have it only local right now.

The controls are on the same page and hade the same module definition. If i use panels, the control will be huge.

An exemple: Let's say that i have four choices(urls) on the module. Add image, View images, Add album, View albums. So if i click on one of the urls i want to show same module and on same page but not in edit mode. I want to be in view mode otherwise i cant see other modules that are placed on that page.

Is making a huge control with panels the only way to do it?

Thanks! 

 
New Post
11/14/2006 6:21 PM
 

Bacause the normal DNN framework behavior is to switch to the admin skin (with only the module of interest displayed) for any view control other than the default view (the one with a blank key), most developers will either use panels/tables to hide or display the different sub-views within the same view control or define each sub-view as a separate user control (.ascx) then use LoadControl to load the sub-view into the main or dispatch view.  The sub-view user control should also inherit from PortalModuleBase (or a class inheriting from PortalModuleBase) and will need to have the ModuleConfiguration of the main view passed to it.  I prefer this approach as it is more "modular" and results in a smaller footprint. The following thread and one mentioned in my last post in the thread describes this approach in more detail:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/111/threadid/75832/scope/posts/Default.aspx


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0View Control RedirectionView Control Redirection


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