Difference between Request.Form and Request.QueryString?

Ramesh Rajendran picture Ramesh Rajendran · Dec 20, 2013 · Viewed 48.6k times · Source

Can some tell me the exact difference between Request.Form and Request.QueryString?

I know one difference, like

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

any other difference? and Any example would be greatly appreciated.

Answer

Adil picture Adil · Dec 20, 2013

In Request.Form the data is posted in the http request body whereas in QueryString data is sent through url.