Hi,
How to create runtime dropdown list at cs page . and get it's selected value from runtime dropdown list.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 8, 2014, 10:39 AM EST
DropDownList dropDownList = New DropDownList(); dropDownList .Items.Add("Item1", "SomeVal"); dropDownList .Items.Add("Item2","SomeOtherVal"); Page.Controls.Add(dropDownList );SUNIL GUTTARank #1,832 · 810 reputationPosted Feb 8, 2014, 11:56 AM EST
In detail explanation : http://www.aspsnippets.com/Articles/Creating-Dynamic-DropDownList-Controls-in-ASP.Net.aspx
or
Blindly use a looping function and create listItems of DropDown just incase looking like this so .
Cheers :)
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Feb 14, 2014, 9:27 AM EST