Just a quickie not this can be really helpful for displaying string properly.
string strSomething="PLEASE CAPITALIZE THE FIRST LETTER OF EVERY WORD"
or
string strSomething="please capitalize the first letter of every word"
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strSomething.ToLower())
the result
"Please Capitalize The First Letter Of Every Word"
DotNetNuke Custom Module Development
Tuesday, March 24, 2009
Subscribe to:
Post Comments (Atom)
3 comments:
Very nice! Thanks for the tip!
Oh before I forget, this also works with ASP.NET 1.1 (my host doesn't support anything higher :().
Thanks !!
Post a Comment