How to get DropDownList selected value in controller in MVC
How to get the DropDownList selected value in controller in MVC3 ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Parthiban ElangovanPosted Nov 19, 2014, 8:49 AM
Sachin KaliaPosted Jan 31, 2014, 7:48 AM
Kindly use the following line of code in your Controller to get data of DropDownList .
long itemId = Convert.ToInt64(collection["ddlValues"]);