HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...URL problemsURL problems
Previous
 
Next
New Post
10/21/2008 1: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/21/2008 10:21 PM
 

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 1: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 6:21 AM
 

Silly me, forgot to set the cache to 0.

 
New Post
2/3/2009 1: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 DotNetNuk...Using DotNetNuk...Administration ...Administration ...URL problemsURL problems


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
DotNetNuke Store

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Telerik JustCode Free
DotNetNuke DNN Hosting
Exact Target Exec Alert

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.