Passing List of objects via querystring to MVC Controller

后端 未结 3 2114
一生所求
一生所求 2021-02-15 14:18

I\'ve got a situation where I need to pass a List of objects to an MVC Controller, but I\'m not sure how to format this in the querystring. The reason I would want to do this i

3条回答
  •  没有蜡笔的小新
    2021-02-15 15:09

    Ok, based on the information provided I don't think you want what you think you want. In your case on the client you POST the data to the controller. Not use a querystring.

    ok since you have to use querystring. my new answer: serialize object, convert it to base64 string and pass it, then convert it back.

提交回复
热议问题