Solved

Convert name to proper case

Posted on 2006-10-23
6
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 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