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.0Redirect to another pageRedirect to another page
Previous
 
Next
New Post
8/14/2007 10:53 AM
 

I am not sure exactly what you are asking, but I will throw my 2 cents in too. There are two basic ways to programatically get around in DNN NavigateURL and EditUrl.

If its an existing Core page or a page from another module then NavigateUrl is the way to go. Pass in your target TabId, controlkey, and parameters as arguments.

If you are creating a custom control and you want to get to another ascx file in your module it would probably be easier to use the EditUrl function. It doesn't require a TabId. Just name the ControlKey you listed in your module definition and pass any parameters you need. For example:

Response.Redirect(EditUrl("ItemId", ItemId.ToString(), "Edit"));

'ItemId' is the Name of the Key that you want passed into the URL and 'ItemId.ToString()' is the value of the ItemId Key, and 'Edit' is the Key name of the control in the module definition

Hope this helps.


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post
8/14/2007 3:24 PM
 

I am trying to do something similar - I have a module and a couple of controls I want to navigate between - First off, I have tried the following:

Response.Redirect(EditUrl("ItemId", ItemId.ToString(), "MyKEY"));

Response.Redirect(

Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "MyKEY", "mid=" + ModuleId.ToString()));

It loads the control , but I lose all my skin Layout - all the other modules I have loaded in that page go away - it is basically have a top, bottom, left,right and content pane, and I want to load the control where the one I am navigating from is located-

any help would be greatly appreciated!!!

 
New Post
8/14/2007 8:05 PM
 

also.. if you want to redirect to another tab, it would be better not to use a hard coded tabname, but let the user define to what page and module should be redirected.

You could easily add some module settings, first allowing the user to select the page, next to select the module. You could even just give him the pages that contain modules you can redirect to


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
8/15/2007 1:19 AM
 

(@mcdela22)

This is actually by design. Whenever you navigate to a different module control, the other modules on the page disappear. There are a few reasons for this (such as avoiding QueryString conflicts) but the point is, you can't use the moduel controls framework to do this.

My suggestion would be to use an asp:MultiView control, place each of your different controls into asp:View controls inside that MultiView and switch the active view as necessary.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
8/15/2007 10:18 AM
 

(@openarrow)

Thats a fine idea. I would be willing to bet that lots of other folks would like to keep other modules present on pages within their own modules. I have a customer that has a dashboard that he wants visible within his module no matter which page he is on. He wants it in his TopPane. I ended up using an AJAX UpdatePanel control to create the illusion of page navigation without an actual postback. Then I placed his dashboard in an update panel and set it to update continuiously.

I like the idea of using the multiview control when displaying external modules. I could have saved myself some trouble.

Cheers!


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Redirect to another pageRedirect to another page


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