Request A Quote

 The blog is one way to stay current on all things Web Ascender. On this page you'll find articles with tutorials, advice, industry news, and other general Web Ascender announcements.  Checking this page regularly (or subscribing to our RSS feed) will help you get the most out of SiteCTO, Enlighten, and our other web marketing and tracking services.

 

Call Web Ascender - 517.579.0420
Email Web Ascender
Contact Web Ascender Online
Technology Newsletter
Once a month we write an exceptional business article and send it via email to our clients and friends. If you want in on the goods, please sign up for the newsletter
* Your email will be kept private, and you may unsubscribe at any time

Blog

Current Articles | Categories | Search | Syndication

 

Articles from DotNetNuke
Sunday, March 30, 2008
Show logged in users name in DotNetNuke
By Web Ascender @ 10:03 PM :: 160 Views :: 0 Comments :: :: DotNetNuke

DotNetNuke – Show the logged in users name

The DotNetNuke documentation does not always have everything you need to customize the system. Often times you need to open up DotNetNuke in Visual Studio to review some of the methods that are available to you in the skins / ascx controls.

Here is how to show the first name, last name or show the username of the logged in user in DotNetNuke / DNN.

<%If HttpContext.Current.User.Identity.IsAuthenticated=True Then%>


Welcome

<%=UserController.GetCurrentUserInfo().FirstName%>

,

<%End If%>

 

<% If HttpContext.Current.User.Identity.IsAuthenticated=False Then %>


 | Sign Up

<% End If %>

 

<% If HttpContext.Current.User.Identity.IsAuthenticated=True Then %>


 | 

<% End If %>




To show the username of the logged in user in DotNetNuke you can use UserController.GetCurrentUserInfo().UserName

Read More..