Hi all
 
Is any functions exists to get proper case, That means for example i'm having data like " balaji ranganathan " in database. i want to update this like " Balaji Ranganathan ". And in C# how can i get first letter as uppercase. i got the below code from Google, But i didn't get the proper output.
 
private string MakeFirstUpperMakePascalCase( string name )
{
        if ( name.Length <= 1) return name.ToUpper();
 
        Char[] letters = name.ToCharArray();
        letters[0] = Char.ToUpper( letters[0] );
        return new string( letters );
}

if i found solution for this i think getting propercase will be easy
 
Thanks & Regards
Bala
 


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!


Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.

Yahoo! Groups Links

Reply via email to