1. Get is to get data from the server, and post is to send data to the server.
2. Get is to add the parameter data queue to the URL referred to by the Action attribute of the submission form. The values correspond to each field in the form one by one and can be seen in the URL. Post uses the http post mechanism to place fields in the form and their content in the HTML header and send them to the URL address referred to by the Action attribute. You cannot see this process.
3. For the get method, the server uses request. querystring to obtain the value of the variable. For the POST method, the server uses request. Form to obtain the submitted data.
4. The data volume transmitted by get is small and cannot exceed 2 kb. The amount of data transmitted by post is large, which is generally not restricted by default. Theoretically, the maximum size of IIS4 is 80 KB, and that of iis5 is 100kb.
5. Low get security and high post security. However, the execution efficiency is better than the POST method.
Suggestion:
1. The get method is more secure than the POST method. If it contains confidential information, we recommend that you use the post data submission method;
2. We recommend that you use the get Method for Data Query. We recommend that you use the post Method for Data addition, modification, or deletion.
Using request. Params ["ID"] to obtain parameters is a more effective way.
There are three ways to pass parameters: (1). Form (2 ).? Id = (3). Cookie
Request. Params is actually a set of requests. querystring, request. Form, request. Cookies, and request. servervariables.
If you want to transmit data on two pages, you can only use request. querystring, request. Form, and request. Cookies.
Request. params searches for data in querystring, form, server variable, and cookies. It first searches for data in the querystring set. If the data is found in querystring, the data is returned, if no data is found, search for data in the form set. If no data is found, return. Otherwise, search for data in the next set.
Request. Params is a set of all post and get values,
Request. form is a post-uploaded value.The post value of the form. Ajax post asynchronous value transfer requires request. Params to obtain the passed parameters.
Request. querystring is the value passed by get.It is usually the URL parameter transfer value and the form's get transfer value.
Ajax call
If you want to retrieve data on the server, use get. If the value to be retrieved changes with time and update process, you must add a current time parameter to the get call, in this way, subsequent calls will not use the previously incorrect buffer. If the call is to send arbitrary data to the server, you can use post.