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
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Creating a ViewProfile link
Previous Previous
 
Next Next
New Post 10/10/2007 10: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 7:38 AM
User is offline Andrew Nurse
366 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.

 


Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com

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