Not able to read the dropdownlist selected item in c#
I have a dropdownlist and it has selected value which was assigned using javascript. When I try to read the value in code behind on click of submit button, selected value is empty. Any suggestion here?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Ayan RoyRank #7,298 · 244 reputationPosted Mar 28, 2017, 6:40 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 27, 2017, 6:56 AM EDT
Ramesh BarikRank #3,664 · 401 reputationPosted Mar 27, 2017, 11:07 PM EDT
$("#ddlID > [value=" + YouValue + "]").attr("selected", "true");