Solved

Convert name to proper case

Posted on 2006-10-23
6
195 Views
Last Modified: 2008-03-17
I need to convert a name to Proper Case which has been entered on a web page.  I am using VB.NET. Any ideas?
0
Comment
Question by:thespiceman
  • 3
6 Comments
 
LVL 6

Expert Comment

by:Roopesh_7
ID: 17792894
which case actuly u needed becouse different javascript string  function are there touppercase() tolowercase() to convert the case.....tell me you requirment specifically....
0
 

Author Comment

by:thespiceman
ID: 17797135
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
 

Author Comment

by:thespiceman
ID: 17797317
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
 

Author Comment

by:thespiceman
ID: 17797326
Please close this question
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 17828792
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now