How to handle C# .NET GET / POST?

前端 未结 6 1546
走了就别回头了
走了就别回头了 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:52

    If you are looking to get the query string value of Foo use:

    Request.QueryString["foo"];
    

    You can use the request object to get values posted to your page.

提交回复
热议问题