Go to DotNetFunda.com
 Welcome, Guest!  
LoginLogin  
{ Submit content and get exposure !!! }
Submit: Article | Interview Question | Tips | Joke | Question | Link || Search  
 Skip Navigation Links Home > Interview/Exam Questions > How to convert a sentence into Title Case (Capitalize first character of every word)? ...


.NET Interview Questions

How to convert a sentence into Title Case (Capitalize first character of every word)?

Author: Raja | Posted on: 9/6/2008 10:13:12 AM | Category: C# | Views:527 |  Print Asked In: Many Interviews





Answer:
Use ToTitleCase method.
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase("dotnetfunda.com is a very good website");


The output will be "Dotnetfunda.Com Is A Very Good Website"


Interesting?  Bookmark and Share


Navigate to:

<< Previous Interview Question: How to sort an array into descending order?

Next Interview Question >>: Difference between DropDownList.Items.Add and DropDownList.Items.Insert method

Random Questions: Random Interview Questions

Help: If for some reason you are getting the same question by clicking Next and Previous, Try clicking Random Question or Category link above.


About Us | Contact Us | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
All rights reserved to DotNetFunda.com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)