阅读背景:

从ASP.NET MVC中的表中解析表单后置值?

来源:互联网 

Ok, I'm an MVC newbie coming from a webforms background, so please excuse any ignorance here. Here is my scenario. I've got a table consisting of a list of applications and associated permissions. Each table row consists of 3 pieces of information: a checkbox, some text describing the row, and a dropdown list allowing the user to select the appropriate permission for the application. I want to post this data and only work with the rows in the table which were checked (the id of the row is embedded as the checkbox name). From there, I want to grab the selected value from the DropDownList, and call the necessary code to update the DB. Here is my View page's code:Ok, I'm an MVC newbie coming from a webforms ba




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

分享到: