3
Answers

How i create drop down list Dynamically

How i create drop down list dynamically.and how i append the data in dropdown list?
Answers (3)
0
Praveen Kumar Sreeram

Praveen Kumar Sreeram

NA 15.1k 478.2k 8y
Hi Siva,
Please note that the controls that are dynamically created will be lost on each postback. So, for every postback, you need to do the following.
  1. Create the dropdown.
  2. Maintain the data that you would like bind to dropdown on each postback. probably use ViewState or Session to maintain the data that you would like to retain across postbacks.
  3. Bind the data to dropdown.
Thanks,
Prawin
0
Vinay Singh

Vinay Singh

NA 5.9k 126.1k 8y
0
Midhun T P

Midhun T P

NA 19.7k 281.1k 8y
Hi,
Please check below links -
http://www.aspsnippets.com/Articles/Creating-Dynamic-DropDownList-Controls-in-ASP.Net.aspx
http://techbrij.com/create-dynamic-dropdownlists-in-asp-net