How to handle C# .NET GET / POST?

前端 未结 6 1561
走了就别回头了
走了就别回头了 2020-12-29 05:23

As I\'m new to .NET after coming from PHP I chose C# to work with and its coming along nicely. I have a question though regarding the handling of GET and POST.

So fa

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 05:44

    Basically that is:

    var request = Request["q"];         // $_REQUEST
    var post = Request.Form["q"];       // $_POST
    var get = Request.QueryString["q"]; // $_GET
    

提交回复
热议问题