|
|
C#
// Convert to Lower case and bind to dropdownlistList<string> strList = new List<string>
{ "One", "TWO", "THree", "Four", "five" }; strList = strList.ConvertAll(low => low.ToLowerInvariant());
foreach (string s in strList)
{DropDownList1.Items.Add(s);
}
VB.NET
Dim strList As List(Of String) = _
New List(Of String)(New String() _
{"One", "TWO", "THree", "Four", "five"}) strList = strList.ConvertAll(Function(low)_low.ToLowerInvariant())
For Each s As String In strList
DropDownList1.Items.Add(s)
Next s'Like' us on our FaceBook page if you find this blog useful. Thanks!
Did you like this post?
|
|
|
||
|
|
|
|
Save on Delicious |
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |





comments
1 Response to "Easiest way to Convert ListTHANK YOU!
Post a Comment