Interviews27 answers
Difference between Request.Form and Request.QueryString?
27 Answers
Request.Form meant for accessing the values posted from referal page.
Vineet KumarPosted Jan 12, 2017, 8:43 PM EST
Request.Form to pick the control value from web form and Request.queryString is used to pick the value from querystring that is passed through page url.
alka malikPosted Nov 18, 2016, 6:20 PM EST
Request.Form - means you are wanting to retrieve the values for the form that was posted.
Request.QueryString - means you are wanting to retrieve values that have been passed on the querystring.
Gaurav YadavPosted Sep 18, 2016, 10:03 PM EDT
Request.Form - It's use to access the control value from mvc view to controller end.
Request.Querystring- It's the url parameter which can be used to pass the value from one page to other page
Vinay SinghPosted Aug 30, 2016, 3:47 AM EDT
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Vinay SinghPosted Aug 10, 2016, 2:47 AM EDT
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Vinay SinghPosted Aug 10, 2016, 2:45 AM EDT
Request.QueryString is a visible variable values passed with url where as Request.Form is a collection which can be accessed by Post method in a .net page.
Vishal JadavPosted Aug 5, 2016, 6:39 AM EDT
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Chinmaya DashPosted Aug 2, 2016, 3:59 AM EDT
gud
Kapi ShivharePosted Jul 17, 2016, 9:40 AM EDT
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Ashish SrivastavaPosted Jul 3, 2016, 10:55 AM EDT
Request.Form is used for accessing the value on post back of form and Request.QueryString is used for accessing the value passes in url as a parameter.
Vinay SinghPosted Jun 21, 2016, 9:55 PM EDT
yrt
Suresh KumarPosted Jun 14, 2016, 5:19 AM EDT
yrt
Suresh KumarPosted Jun 14, 2016, 5:19 AM EDT
If the HTTP request method is POST, the user submitted data is in the Request.Form() collection
If the HTTP request method is GET, then user submitted data is in the Request.QueryString() collection
Keerthi VenkatesanPosted Jun 7, 2016, 9:44 PM EDT
Request.Form the data is posted in http header
QueryString data is sent through url.
Bhuvanesh MohankumarPosted May 20, 2016, 8:22 AM EDT
Request.Form (POST method of HTTP Request)
1. Post through HTTP Header i.e., request body
2. Not visible on browser address bar
3. Can post any data eg., uploaded file
Request.Query (GET method of HTTP Request)
1. Sent through URL
2. As it is appended to the url, it is visible in the browser address bar
3. It has length limitations.
Gayatri SravyaPosted May 4, 2016, 2:14 AM EDT
In Request.Form the data is posted in http header whereas in Request.QueryString data is sent through url.
Ashish SrivastavaPosted Mar 28, 2016, 3:19 AM EDT
http://www.sitepoint.com/forums/showthread.php?46086-Difference-between-Request-and-Request-QueryString
http://stackoverflow.com/questions/20697272/difference-between-request-form-and-request-querystring
Amol SontakkePosted Mar 24, 2016, 12:49 AM EDT
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
You can see below link also for same
http://stackoverflow.com/questions/20697272/difference-between-request-form-and-request-querystring
Vivek KumarPosted Mar 21, 2016, 11:46 PM EDT
Request.Form handles null values.
Request.QueryString doesn't handles null values.
Sreekanth ReddyPosted Mar 15, 2016, 1:20 AM EDT
generally:
Request.Form - means you are wanting to retrieve the values for the form that was posted.
Request.QueryString - means you are wanting to retrieve values that have been passed on the querystring.
Dheeraj Kumar JhaPosted Mar 14, 2016, 3:42 AM EDT
Difference between Request.Form and Request.QueryString are given below:
First of all whenever we talking about Request.Form it is realized me
1.If the HTTP request method is POST, the user submitted data is in the Request.Form() collection.
2. The value of Request.Form(element) is an array of all the values of element that occur in the request body. You can determine the number of values of a parameter by calling Request.Form(element).Count. If a parameter does not have multiple values associated with it, the count is 1. If the parameter is not found, the count is 0.
3.The Form collection retrieves the values of form elements posted to the HTTP request body, Only those elements and value which exist in your Form.
4.Request.Form - means you are wanting to retrieve the values for the form that was posted.
and whenever we talk about Request.QueryString it is realized me
1.If the HTTP request method is GET, then user submitted data is in the Request.QueryString() collection.
2.The value of Request.QueryString(parameter) is an array of all of the values of parameter that occur in QUERY_STRING. You can determine the number of values of a parameter by calling Request.QueryString(parameter).Count. If a variable does not have multiple data sets associated with it, the count is 1. If the variable is not found, the count is 0.
3.The QueryString collection retrieves the values of the variables in the HTTP query string, Here you can append any of your custom variable and value which event dose not exist in your Form.
4.Request.QueryString - means you are wanting to retrieve values that have been passed on the querystring.
Dheeraj Kumar JhaPosted Mar 14, 2016, 3:40 AM EDT
In Request.Querystring you need to encrypt for senstive data and it doesnt allow any special characters like(#$%^&*()_+~) except (!@). You need to encrypt to pass special characters from querystring. Where in Request.Form allows all kinds of data with out any encryption.
Querystring will not handle null values, but Request.Form can handle it.
Maruthi PalllamalliPosted Mar 9, 2016, 1:42 AM EST
In Request.Form the data is posted in http header whereas in Request.QueryString data is sent through url.
Pankaj Kumar ChoudharyPosted Feb 9, 2016, 4:13 PM EST
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Munesh SharmaPosted Feb 8, 2016, 7:17 PM EST
In Request.Form the data is posted in http header whereas in QueryString data is sent through url.
Shubham KumarPosted Feb 7, 2016, 11:22 PM EST
Request.Form
===========
1. HTTP request method is POST, the user submitted data is in the Request.Form() collection.
2. Request.Form the data is posted in http header.
Request.QueryString
================
1. HTTP request method is GET, then user submitted data is in the Request.QueryString() collection.
2. QueryString data is sent through url.
Manoj KallaPosted Feb 2, 2016, 11:31 PM EST

















