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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 7, 2015, 7:10 AM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jun 7, 2015, 7:57 AM EDT
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
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 7, 2015, 8:28 PM EDT
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.