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.0Link to edit user profileLink to edit user profile
Previous
 
Next
New Post
1/9/2007 5:33 PM
 

Lance May wrote
Stefan,
Is there a particular place where one could go to learn more about linking in DNN? Also, where might I find a reference to the NavigateUrl() method? I see numerous references to this method, and it seems like many people are unfamiliar with how to really use it (myself quite obviously included). Thanks much in advance.

Lance, please post new questions in new threads.

There's a tutorial for NavigateURL here


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

Also.. IMHO, the best tuturial is the code itself. Just take some time reviewing it, and you will learn a lot!


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
1/10/2007 9:58 AM
 

Thanks for your help. Unfortunately I have not been able to get the following to work:

      NavigateURL(PortalSettings.UserTabId, "Profile", "UserID=" & UserID.ToString)

It ignores the UserID parameter (which has a value of 3)  and redirects to the Administrator Account profile. The string that results from NavigateURL is:

      . . .  /tabid/58/ctl/Profile/UserID/3/Default.aspx

which after the redirection results in:

    . . .  /Prayer/tabid/58/ctl/Profile/UserID/2/Default.aspx

In my development installation, PortalSettings.UserTabID returns -1. TabId 58 is the tab (Prayer) on which the module in development sets.

I also tried PortalSettings.AdminTabID which is 38 in my installation. The url returned by Navigate URL is:

   . . .  /Admin/tabid/38/ctl/Profile/UserID/3/Default.aspx

Following redirection, this ends up at:

   . . . /Admin/tabid/38/ctl/Profile/UserID/2/Default.aspx

with the UserID again being ignored.

Finally, if I manually insert the value of 42 (which is the correct Admin TabID for editing a user profile)  into the NavigateUrl TabID parameter, NavigateUrl returns:

   .  .  .  /Admin/UserAccounts/tabid/42/ctl/Profile/UserID/3/Default.aspx"

which when redirected again ignores the UserID and opens the Administrator Account's own profile for editing.

So far, the only method that works is that I originally posted which explicitely inserts the UserAccounts ModuleID as an additional parameter ("mid=") to NavigateUrl. This returns the correct (for a default installation) of:

   . . . /Admin/UserAccounts/tabid/42/ctl/Edit/mid/354/UserID/3/Default.aspx

and correctly redirects to:

  . . . /Admin/UserAccounts/tabid/42/ctl/Edit/mid/354/UserID/3/Default.aspx

I think I'll use that as a default but as was also suggested (since a custom user registration/profile module might be installed on a different TabID) to include on the module settings page fields for a custom UserAccounts TabID, ControlKey, and UserID field name to be specified. I'm still concerned that a ModuleDefinitions FriendlyName can change. At least it's been a real good exercise in learning all the overloads of NavigateUrl !!


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Link to edit user profileLink to edit user profile


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