asp.net mvc 3 c# post array of variables

后端 未结 4 975
我在风中等你
我在风中等你 2020-12-11 18:43

I need to pass array to POST method. But i\'m obviously missing sometging My view look something like this:

<%@ Page Title=\"\" Language=\"C#\" MasterPage         


        
4条回答
  •  [愿得一人]
    2020-12-11 19:19

    Check out model binding to a list here. Items posted needs to be in certain format to be able to retrieve them as list in POST action.

提交回复
热议问题