Asp.net 3.5 ListBox DataTextFormatString value to convert the string data to TitleCase

Posted by Maheep on Stack Overflow See other posts from Stack Overflow or by Maheep
Published on 2010-03-15T05:05:43Z Indexed on 2010/03/15 5:09 UTC
Read the original article Hit count: 220

Filed under:
|
|

I have a webform with a ListBox control bind to a DataTable with a string column mapped(bound) to dataText field. This column retruns a string in all lowercase.

I want to display the string in title case(sometimes uppercase) what value should I assign to DataTextFormatString field to get this functionality? Is there any better way of doing this?

Thanks. Maheep

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about stringformat