How to handle C# .NET GET / POST?

前端 未结 6 1547
走了就别回头了
走了就别回头了 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条回答
  •  -上瘾入骨i
    2020-12-29 05:38

    If your objective is to be able to access the parameters being passed in regardless of the method used (get vs. post) then you can just use Request.Params["paramname"] to access them, and you don't need to worry about whether it was a get or a post.

提交回复
热议问题