Convert a string to Proper Case
===========================
// Use this Namespace
using System.Globalization;
// Code
string myString = "thIS is tHE sAmple tExt to shoW tHIs examPle !!";
TextInfo TI = new CultureInfo("en-US",false).TextInfo;
Response.Write (TI.ToTitleCase( myString ));
Wednesday, July 23, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment