I'm attempting to return a username in ASP.net but would prefer to convert the first character to upper, for example if a username is 'test' I would want to return 'Test'.
Code to get username:
<h3>Welcome Home<strong><%: User.Identity.Name %></strong>.
Not 100% sure on how to implement this and I'm pretty sure it will just end up being something simple but any help would be appreciated.
Thanks
FIXED
h3>Welcome Home <strong><%: User.Identity.Name.ToUpper().Substring(0,1) + User.Identity.Name.ToLower().Substring(1) %></strong>.