Madhukar Krishna

Madhukar Krishna

  • 686
  • 1.4k
  • 292.6k

Dropdownlist with autopostback="true" showing 1st item

Dec 30 2016 5:30 AM
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

Answers (7)