Web API Form Data Collection

后端 未结 3 704
梦毁少年i
梦毁少年i 2020-12-11 01:59

I\'m trying to post form serialized values to controller (Web API Self Host). I cannot understand why the NameValueCollection is not correctly bound. Client-side using jQuer

3条回答
  •  天命终不由人
    2020-12-11 02:55

    Instead of NameValueCollection, try FormDataCollection.

    http://weblogs.asp.net/cibrax/archive/2012/08/10/binding-form-data-in-asp-net-web-api.aspx

提交回复
热议问题