Friday, January 4, 2008

Convert string to TitleCase

string strSample = "MOHAN";
strResult = System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(strSample.ToLower());
// Answer : strResult = "Mohan"

No comments: