How can I get the results from a JQUery Multi-select dropdownlist as called per an mvc3/razor?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The multiselect plugin uses the
[]notation to send the selected values to the server. As always we start by writing a view model:then a controller:
a corresponding view:
and finally a model binder associated with the
IEnumerable<string>type and which will work with the[]notation used by the plugin:The last part is to register the model binder in
Application_Start: