Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Creating a ViewProfile link
Previous Previous
 
Next Next
New Post 10/10/2007 9:30 PM
User is offline bozojoe
15 posts
10th Ranked


Creating a ViewProfile link 

How can I create a link to view a user profile via the reporting output

 
New Post 10/11/2007 6:38 AM
User is offline Andrew Nurse
353 posts
8th Ranked






Re: Creating a ViewProfile link 

There are a couple of ways to do this, depending on your Visualizer. If you are using the Grid Visualizer then you need to place it in your SQL, if you are using the HTML Visualizer it is a little easier. Essentially, you need to go to the user profile page for any user and get the URL. Then figure out where the UserID is (I don't have a DNN installation handy at the moment, so I don't have the exact URL format on hand).

For this post, I will assume that it is:

http://mydnnsite.com/path/to/profile/[UserID goes here]/page/Default.aspx

If you are using the Grid Visualizer, then you can put something like this in your SQL

SELECT '<a href="http://mydnnsite.com/path/to/profile/' + UserID + '/page/Default.aspx">User Profile</a>' as ProfileLink, ...

This will build the complete <a> tag in the SQL Server.

If you are using the HTML Visualizer, it is a lot easier, just add the link to your HTML template and use the "[UserId]" token (or replace "UserId" with the name of the column returned by your query that contains the User ID). For example:

<a href="http://mydnnsite.com/path/to/profile/[UserId]/page/Default.aspx">[UserName]'s Profile</a> ...

You can also use the XSLT Visualizer, but I won't go in to details regarding that. The concept is similar to the HTML Visualizer though, just build the link inside the template.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Creating a ViewProfile link
 


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.

 


DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP