How do I post data to MVC Controller using HttpWebRequest?

后端 未结 3 1205
离开以前
离开以前 2021-01-05 16:03

I am trying to post data to MVC controller action but have been unsuccessful so far.

Here is the structure of the post data:

private string makeHttp         


        
3条回答
  •  悲哀的现实
    2021-01-05 16:22

    I just found that you can call a controller, even a dependency injected one, even from a Web Forms code behind using the "T4MVC" Nuget package:

    https://github.com/T4MVC/T4MVC

提交回复
热议问题