Tuesday, May 06, 2008

Several Ways to populate DropDownList Controls

There are several ways to populate DropDownList control. In this article I have tried to cover some of them including populating DropDownList manually, programmatically, through xml, database, arraylist, hashtable. I have also covered how to specify different background color of every items of the DropDownList and how to generate DropDownList on the fly. At last I have covered how to get its index, text and value properties.

Here one thing is worth mentioning that DropDownList is rendered as the Select HTML tag in your page. Let’s start with different ways of populating DropDownList server controls first.

For more visit http://www.dotnetfunda.com/articles/article30.aspx

No comments: