Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capitalisation of Page.User.Identity.Name.ToString();

Status
Not open for further replies.

stanfury

Instructor
Feb 7, 2006
3
GB
I have a .net forms authenticated membership system. Certain elements of the pages are set such that they display the

users name on the page. Now, when a user logs in and does not enter the correct capitalization of their username they

are given entry to the site, but instead of the name displaying the capitalization they joined with it shows the

capitalization they logged in with. Can this be resolved?

I would like users to be able to login with incorrect capitalization as most people are used to this, but I would like

their name to be displayed in the original capitalization they registered with.

Many Thanks,
Stan
 
honestly it's going to be much easier if you pick one and stick with it. I'm surprised the incorrect capitalization didn't invalidate the user.

if there is a standard format with usernames, then you could simply format the string.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Convert the displayed value to proper case:
Code:
company = "CHILKAT SOFTWARE"
Print StrConv(company,vbProperCase)' prints "Chilkat Software"
But that will change, for example, 'McFarlane' to 'Mcfarlane'.
Otherwise you will need to retrieve the correct version and hold and display it as a session variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top