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 ...URL problemsURL problems
Previous
 
Next
New Post
10/21/2008 4:15 AM
 

Any ideas as to why i get the error 'DotNetNuke.Common.Globals' does not contain a definition for 'NavigateUrl' when using DotNetNuke.Common.Globals.NavigateUrl(nextTabId);?

 
New Post
10/22/2008 1:21 AM
 

I had the case wrong : it's Globals.NavigateURL()

DotNetNuke.Common.

If that doesn't fix it, then you might want to make sure you've got the DotNetNuke dll referenced correctly.

 
New Post
10/22/2008 4:55 AM
 

Ah yes, it solved that problem.  I don't get any errors now but the url returned doesn't work.  I tested it a few times to be sure but when i give it a TabId is sends me to: http://localhost/dotnetnuke/DesktopModules/<ThisModule>/<TabId>

I'm using the returned string as the PostBackUrl on a LinkButton.

EDIT:

Ok i realised it was something to do with using the postbackurl so i changed to using LinkButtons.  I have a datalist with repeated LinkButtons which have been given a tabId as a CommandArgument. The paramter OnClick="btnLink_Click" runs the following:

protected void btnLink_Click(System.Object sender, System.EventArgs e)
        {
            LinkButton btnLinkTemp = (LinkButton)sender;
            string tab = btnLinkTemp.CommandArgument;

            if (tab.Length == 2)
            {
                //TYPE: internal
                Response.Redirect(Globals.NavigateURL(Convert.ToInt32(tab)));
            }
            else
            {
                //TYPE: external
                Response.Redirect(tab);
            }
        }

The strange thing is that the links work fine in edit mode but as soon as i switch to view the links stop working.

EDIT #2:

Ok, this is strange.  One instance of the module on my front page works in view mode and when no ones logged in.  But another module on another page isn't working in view mode.... weird

 
New Post
10/22/2008 9:21 AM
 

Silly me, forgot to set the cache to 0.

 
New Post
2/3/2009 5:30 PM
 

Bruce,

Thank you very much! I have been searching most of the day for this and finally you gave me exactly what I needed. Especially where you can specify that the ControlKey is "". Why was this information so hard to find? I probably just don't know the right documentation to look at... Anyway thanks again.

Daniel

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...URL problemsURL problems


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