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  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  show display name in skin?
Previous Previous
 
Next Next
New Post 3/11/2008 2:13 PM
Resolved
User is offline kay rupt
13 posts
www.thesportstrunk.com
10th Ranked


show display name in skin? 

Hi,

I found online that the following will render the username of a logged in user:

<%=IIf(Request.IsAuthenticated, HttpContext.Current.User.Identity.Name, "Register")%>

However, I would like to just render the display name of the user. Does anyone have know how to do this?

thanks,

Karuna

 
New Post 3/12/2008 1:27 AM
Accepted Answer 
User is offline Timo Breumelhof
1690 posts
5th Ranked




Re: show display name in skin?< 
Modified By Sebastian Leupold  on 3/12/2008 5:20:02 AM)

<%=UserController.GetCurrentUserInfo.DisplayName%>

should work


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 3/12/2008 11:37 AM
User is offline kay rupt
13 posts
www.thesportstrunk.com
10th Ranked


Re: show display name in skin?< 

Thank you so much. Cliche: You the man.

Does this apply to all the user profile properties too?

 
New Post 3/13/2008 5:18 AM
User is offline Timo Breumelhof
1690 posts
5th Ranked




Re: show display name in skin?< 

Yes it does, email, first- lastname etc.


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 9/22/2008 8:54 AM
User is offline Chad P. Statham
65 posts
www.themaximizers.com
10th Ranked


Re: show display name in skin?< 

Hate to be such a newbie, but does that work by simply pasting in .ascx skin file? 

What about the typical token code in example.

<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>

and

<dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" CssClass="DATE_object" />

 

Thanks!

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  show display name in skin?
 


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.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint | Community of Microsoft Partners
PartnerPoint is one of the largest and most active online communities of Microsoft Partners worlwide with over 8,000 members.
www.PartnerPoint.com

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