Analysis of the difference between request.querystring and Request.param in asp.net _ Practical skills
Source: Internet
Author: User
Request.params is actually a collection, which in turn includes Request.QueryString, Request.Form, Request.Cookies, and Request.ServerVariables.
If you want to pass data on two pages, you can only use Request.QueryString, Request.Form, Request.Cookies
Request.params is looking for data in QueryString, Form, Server Variable, and Cookies, he first looks up the data in the QueryString collection, and if you find the data in QueryString, it returns the data, if not Find the data in the Form collection, find it and return it, otherwise find the data in the next collection.
request.params["id"], request.form["id", request.querystring["id"] and what is the difference?
Request.params is a collection of all post and get-pass values, Request.Form is a post-pass value, and Request.QueryString is a get-pass-along value
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service