What is Get and Post request in Asp.net?
What is Get and Post request in Asp.net? Explain it in term of Client and Server.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Jun 8, 2015, 12:28 AM
Key points about data submitted by using HttpGet
GET - Requests data from a specified resource
An hyperlink or anchor tag that points to an action will ALWAYS be an HttpGet.
Data is submitted as a part of url.
Data is visible to the user as it posts as query string.
It is not secure but fast and quick.
It use Stack method for passing form variable.
Data is limited to max length of query string.
It is good when you want user to bookmark page.
Key points about data submitted using HttpPost
POST - Submits data to be processed to a specified resource
A Submit button will always initiate an HttpPost request.
Data is submitted in http request body.
Data is not visible in the url.
It is more secured but slower as compared to GET.
It use heap method for passing form variable
It can post unlimited form variables.
It is advisable for sending critical data which should not visible to users.
Manoj BhoirPosted Jun 7, 2015, 11:57 AM
Syntax:
GET method:
This method appends form data to page request URL with key value pairs called as query string.
E.g.: http://www.c-sharpcorner.com/home.htm?key1=value1&key2=value2 \
Post Method:
Reference : http://dotnetmirror.com/Articles/aspnet/1/get-and-post-methods-in-asp.net-html-and-difference-between-get-and-post-get-vs-post
Pankaj Kumar ChoudharyPosted Jun 7, 2015, 11:10 AM