Display original Sitecore username instead of what's currently typed in
问题 I might be overlooking something obvious here, but is it possible to return a Sitecore user with the username in the capitalisation they used when registering? At the moment the username will be displayed as whatever the user typed when they logged in, but I'd like to be able to get the original string. I'm using User user = User.FromName(domainUser, false); UPDATE: This is what I ended up with after Yan's excellent answer: // get the MembershipUser object normally by name var initialUser =