Handling Arrays of HTML Input Elements with Request.Form Like PHP

前端 未结 3 1964
温柔的废话
温柔的废话 2021-01-12 03:28

How can I properly receive these Array of Inputs on asp.net?




        
3条回答
  •  被撕碎了的回忆
    2021-01-12 04:22

    actually, it does exist with asp.net. - you can use

    string[] MyTest = Request.Form.GetValues("MyTest");
    

    or

    string[] MyTest = Request.QueryString.GetValues("MyTest");
    

提交回复
热议问题