At the beginning, I was confused about the differences between several request value methods. When I was using it, I always remembered which one to write according to my mood. Now I have recorded it for forgetting:
1. httpcontext. Current. Request. querystring []
On the page, it matches the request. querystring is no different, but if it is not in the page, you can only use httpcontext. current. request cannot be used. query because the request here is a page object.
2. httpcontext. Current. Request. Form ["ID"]: The same as request. form.
3. request ["Param"] All
4. Request. querystring ["Param"]: gets a set of HTTP query string variables. It is usually used when the submission method is get.
5. Request. Form ["Param"]: gets a set of form variables. It is usually used when the submission method is post.
6. Request. Params contains the preceding two sets, including the current running environment variables and cookies.
Questions about request values