Convert name to proper case

I need to convert a name to Proper Case which has been entered on a web page.  I am using VB.NET. Any ideas?
thespicemanAsked:
Who is Participating?
 
kodiakbearConnect With a Mentor Commented:
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0
 
Roopesh_7Commented:
which case actuly u needed becouse different javascript string  function are there touppercase() tolowercase() to convert the case.....tell me you requirment specifically....
0
 
thespicemanAuthor Commented:
I need to check if a name is all lowercase or uppercase first.  That's easy.  If it is, then I need to convert it to Proper Case.  e.g. TIM SMITH to Tim Smith.  
0
 
thespicemanAuthor Commented:
Got it figured out:

Private Function ProperCase(ByVal strValue As String) As String
        Try
            ProperCase = StrConv(strValue, VbStrConv.ProperCase)
        Catch ex As System.Exception
           'Error hadler goes here
        End Try
    End Function
0
 
thespicemanAuthor Commented:
Please close this question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.