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

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -