razor - Checkbox and Hidden field in ASP.NET MVC -


html.checkboxfor generates hidden field false value , reasonable. need implement form http method. true , false values being sent server when submit form. problem mvc model binder cannot understand "true,false" value.

the parameter conversion type 'system.string' type 'system.boolean' failed.  see inner exception more information. 

how can workaround issue?

actually problem in mvccontribgrid.

see question: mvccontrib grid , checkboxes

it combines query string values http://contoso.com?checkboxval=true,checkboxval=false http://contoso.com?checkboxval=true,false


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -