G
Guest
I have the following cod ein my base page:
Private tInfo As TextInfo = New CultureInfo("en-US", False).TextInfo
Protected Function TitleIt(ByVal input As String) As String
Return tInfo.ToTitleCase(input)
End Function
And I am implementing it like this:
UsersName.Text = TitleIt(currentUser.fullName)
And it simply isn't returning title cased stuff:
?Input
"WILLIAM SEMPF"
?TitleIt
"WILLIAM SEMPF"
I have noticed a few other recent unanswered posts around the 'net about
this. Recent service pack break Globalization? ToLower works just fine:
?Input
"WILLIAM SEMPF"
?TitleIt
"william sempf"
Thoughts welcome.
S
Private tInfo As TextInfo = New CultureInfo("en-US", False).TextInfo
Protected Function TitleIt(ByVal input As String) As String
Return tInfo.ToTitleCase(input)
End Function
And I am implementing it like this:
UsersName.Text = TitleIt(currentUser.fullName)
And it simply isn't returning title cased stuff:
?Input
"WILLIAM SEMPF"
?TitleIt
"WILLIAM SEMPF"
I have noticed a few other recent unanswered posts around the 'net about
this. Recent service pack break Globalization? ToLower works just fine:
?Input
"WILLIAM SEMPF"
?TitleIt
"william sempf"
Thoughts welcome.
S
