Monday, February 8, 2010

Convert Text into Title Case/Sentance Case

public static string ConvertTextIntoSentanceCase(string strValue)
{
if(string.IsNullOrEmpty(strValue)) return string.Empty;


return new System.Globalization.CultureInfo("en").TextInfo.ToTitleCase(strValue.ToLower());


}

No comments:

Post a Comment

 
Locations of visitors to this page