VB.NET
Dim arrList As ArrayList = New ArrayList
arrList.Add('Faq')
arrList.Add('Tips')
arrList.Add('Tricks')
DropDownList1.DataSource = arrList
DropDownList1.DataBind()
C#
ArrayList arrList = new ArrayList();
arrList.Add('Faq');
arrList.Add('Tips');
arrList.Add('Tricks');
DropDownList1.DataSource = arrList;
DropDownList1.DataBind();
Share with