C#
// Convert to Lower case and bind to dropdownlist
List<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
Tweet
1 comment:
THANK YOU!
Post a Comment