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
2/13/2009 12:50 AM
 

As a general note to anyone reading this thread : whenever you find yourself formatting up a Url in code in DNN using append, string format, string builder or anything like that : don't.   There are many things that go into building the correct url for a page, and the framework takes care of all of them.   The example in this thread doesn't take into consideration things like language specifiers for multi-language sites, or a lot of other things.

There are two calls for creating urls, and these should be used to create every single url in DNN code:

NavigateUrl()

EditUrl()

NavigateUrl provides the ability to override many of the different settings to get the url you want.

EditUrl is itself just an overload of NavigateUrl, but with special overloads to generate the correct urls.  In the case of settings, you can specify the control and module, and you'll get back the correct result.

The DNN Url calls are there to provide standard Urls throughout the DNN install.

 
New Post
2/13/2009 1:29 AM
 

Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, "Settings", "mid=" + ModuleId.ToString()),true);

This will Only Load Settings Control but not show the whole Settings Page with all Settings, when you click on Settings Button.

The same case for using EditUrl.

Is this is possible with EditUrl. or NavigateURL then please give me the code,

Although my code is working well but not showing Friendly Url.

 
New Post
2/13/2009 2:07 AM
 

>> Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, "Settings", "mid=" + ModuleId.ToString()),true);

This will Only Load Settings Control but not show the whole Settings Page with all settings, when you click on Settings Link.

The same case for EditUrl.

Is this is possible with EditUrl or .NavigateURL then please give me the code,

Although my code is working well but not showing Friendly Url.

 
New Post
2/16/2009 7:01 AM
 

This is worked for me

Response.Redirect(EditUrl("Module").Replace("&mid=", "&ModuleId=").Replace("/mid/", "/ModuleId/"));

This is worked for both Url Friendly URl or Not Url Friendly.

By the way thanks all of you that replies.

 
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