Header Ads

Capitalize first letter of words in a string

 
string strName = "srikanth portal"
strName =System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(strName.ToLower());
Response.Write(strName);

No comments:

Powered by Blogger.