Web API Form Data Collection

后端 未结 3 700
梦毁少年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:48

    Or you can use the build "ReadAsNameValueCollection", like this :

    NameValueCollection MyNameValueCollection = formData.ReadAsNameValueCollection();
    

提交回复
热议问题