ASP.NET MVC 2: What Model property datatype will autobind an html select (DDL) with multiple selections? -


There is a model property of the customer, for which a separate list of selected options requires a comma, we will select our selection list (DDL) As a multi-choice dropdown.

What will be the property datatype that automates the multi-selects in the client-side HTML selection (DDL)?

Select such post data:

  myOptions = Volvo & amp; MyOptions = Mercedes & myOptions = Audi  

and we want to automatically pair it for some property:

IList < String & gt; Carcows {get; Set;}

then the Post Action Mercer parameter will be (Carref MyForm) which will contain myForm.CarChoices in which a list of three selected cars Include?

I can misunderstand what you are trying to do but I think Phil Hawks This post tells you how you can try to do it in a pure way:


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -