Dropdownlist with autopostback="true" showing 1st item
I have two dropdownlists:- "ddl1" and "ddl2". "ddl2" is populated on selectedindexchange event of "ddl1" i.e. at runtime. "ddl1" and "ddl2" both have Autopostback="true". "ddl2" also has selectedindexchange event handled. But when I try to select an item in "ddl2" it refreshes the page and it shows the 1st item in the "ddl2". I have searched it on the internet and tried various things like putting "ddl2" in update panel, and handling prerender event of pagelifecycle, but they didn't help. Please provide some solution. It is required for my project. Please help


Bikesh SrivastavaRank #108 · 20.3K reputationPosted Dec 30, 2016, 11:06 PM EST
TechnetshadowRank #7,391 · 242 reputationPosted Dec 30, 2016, 1:14 AM EST
If you are binding dropdowns from codebehind then try removing binding code from aspx if any.
Midhun TpRank #388 · 6.5K reputationPosted Dec 30, 2016, 1:27 AM EST
Dilip GuptaRank #2,085 · 690 reputationPosted Dec 30, 2016, 1:53 AM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 30, 2016, 2:42 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 30, 2016, 4:02 AM EST
Madhukar KrishnaRank #1,382 · 1.2K reputationPosted Dec 31, 2016, 1:13 AM EST