How do I pass this js array to my MVC 3 controller?

前端 未结 7 2099
粉色の甜心
粉色の甜心 2020-12-31 16:58

I am getting null values in the controller. Not sure what am I am missing.

I have a grid where I have a list of guests (with name & email) where user select gues

7条回答
  •  醉梦人生
    2020-12-31 17:43

    You can also create a custom model binder. This lets you write the code that takes in the raw input out of the request object and create an object from it. This would let you create a list of strings or anything else you would like to see as an object in your controller. It is also very reusable.

提交回复
热议问题