Live Chat Icon For mobile
Live Chat Icon

How to convert a string to Proper Case

Platform: ASP.NET| Category: Basic

Use the namespace System.Globalization


Dim myString As String = 'syncFusion deVeloPer sUppOrt'
’ Creates a TextInfo based on the 'en-US' culture.
Dim TI As TextInfo = New CultureInfo('en-US', False).TextInfo


string myString = 'syncFusion deVeloPer sUppOrt';
// Creates a TextInfo based on the 'en-US' culture.
TextInfo TI = new CultureInfo('en-US',false).TextInfo;
Response.Write (TI.ToTitleCase( myString ));

For more details refer TextInfo.ToTitleCase()

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.