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 Settings Page by using codeHow to Navigate to Settings Page by using code
Previous
 
Next
New Post
1/5/2009 2:00 AM
 

My Question is that i am using the followin code to navigate the Module Setting Page

Response.Redirect(String.format("http://{0}{1}/{2}/tabid/{3}/ctl/Module/ModuleId/{4}/Default.aspx", Request.UserHostName, Request.ApplicationPath, PortalSettings.ActiveTab.TabName, TabId, ModuleId));

It works well but the problem is that it does not shows as Friendly url rather it shows

http://localhost/dotnetnuke/?TabId=57&ctl=Module&ModuleId=435

PLease any one give this answer that how to navigate to Settings page of an module with Friendly URL.

 
New Post
1/6/2009 12:24 AM
 

CAn any one?

How to NAvigate To Module Settings through code?

 
New Post
1/9/2009 3:22 PM
 

 use the EditUrl function

 

EditUrl()

 

that will give you the full url when you are in the context of PortalModuleBase.

 

Otherwise use NavigateUrl


-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
1/9/2009 4:34 PM
 

Complementing what Mitch said, you can use directly Response.Redirect(DotNetNuke.Common.Globals.NavigateUrl(TabId, "Settings", "mid=" + ModuleId.ToString())); and you'll get the desired result.

 
New Post
2/13/2009 12:41 AM
 

Since I have not recieved an Email from your responses therefore I can't see your replies for Long Time.

Thanks Mitch and Alfonso. I think it is better to Use Key from EditUrl and NavigateUrl to get the desired results.

Is there is a way such that Browser not show Friendly URl  of the whole website and  vice versa i.e if not showing

friendly URL then shows it for whole site.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to Navigate to Settings Page by using codeHow to Navigate to Settings Page by using code


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