阅读背景:

在MVC/Razor中,如何获取多个复选框的值并将它们全部传递给控制器?

来源:互联网 

I have a view with a list of items from a model. I need to add a checkbox to each row, have the user select multiple check boxes, and pass some identifier of what row was selected to the controller. I know how to pass a single value through an action link, but I'm not sure how to pass multiple values through an action link or how to "collect" which rows were selected. I'll show some of my code attempts below. Can someone help me sort out why I can't get the values of all the checkboxes passed to the controller?I have a view with a list of items from a model




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: