asp.net mvc 3 c# post array of variables

后端 未结 4 979
我在风中等你
我在风中等你 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:36

    Change your view code as follows:

    <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    
    
    
    
    
    
    
    
    

    Update: On 2nd thoughts, I think this is your actual problem, you are starting from 1-7, rather than 0-6.

    Thanks Ant.

提交回复
热议问题