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.0NavigateUrl switches to Admin skinNavigateUrl switches to Admin skin
Previous
 
Next
New Post
4/18/2007 11:58 AM
 

Hi, I have a module which uses NavigateUrl() to move between the main view module and a secondary details view module, as follows:

DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "ViewDetails", "mid=" & CStr(ModuleId))

The problem is that the page always switches to the admin skin when the second module is loaded, whereas I want it to use the page skin for both. Can anyone suggest a solution to this?

Thanks,

Rupert

 
New Post
8/16/2007 2:49 PM
 

These posts are seperated by 4 months, but I'll respond with what I've found.

I'm having the exact same problem, and have the fix. IMHO this is a bug in the core system. I don't know if it's been fixed in the latest release, but it does happen in 4.5.3.

The offending line of code is 1142 in Library\Components\Shared\Globals.vb.
This is the original line of code
Return IsAdminTab OrElse (ControlKey <> "" And ControlKey <> "view" And ModuleID <> -1) OrElse (ControlKey <> "" And AdminKeys.IndexOf(ControlKey) <> -1 And ModuleID = -1)

The offending statement is the middle one
(ControlKey <> "" And ControlKey <> "view" And ModuleID <> -1)

If the ControlKey is anything but "view" then the admin skin get's applied.

A potential fix is to change it to this
(ControlKey <> "" And Not ControlKey.Contains("view") And ModuleID <> -1)

Then you can name your control ControlNameview and you'll get the skin you expected. You'll also have to change your module definition (to change the control key) and the code in your module (to refer to the new control key)

I'm going to try and get the core team to address this. Hope it helped.

 
New Post
8/16/2007 7:17 PM
 

It is not a bug. This works like that by design.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
8/16/2007 10:31 PM
 


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0NavigateUrl switches to Admin skinNavigateUrl switches to Admin skin


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