How to get DropDownList selected value in controller in MVC
How to get the DropDownList selected value in controller in MVC3 ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Sachin KaliaRank #102 · 20.8K reputationPosted Jan 31, 2014, 2:48 AM EST
Kindly use the following line of code in your Controller to get data of DropDownList .
long itemId = Convert.ToInt64(collection["ddlValues"]);
Parthiban Elangovan76 reputationPosted Nov 19, 2014, 3:49 AM EST