.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

What is get and post method in asp.net

Posted By: Ramesh     Posted Date: March 19, 2010    Points:2   Category :ASP.Net
Hi,
What is get and post method in asp.net? when to use get and when to use post method in asp.net?

Thanks in advance
Ramesh

Responses
Author: Lalij Mer             
Posted Date: March 19, 2010     Points: 5   

Get and Post are methods used to send data to the server:
With the Get method, the browser appends the data onto
the URL. With the Post method, the data is sent
as "standard input."


Use GET:

- during development for debugging purposes (although in ASP.NET it's
also easy to see what has been sent through POST).
- if you want your visitors to be able to bookmark the submitted pages
- if you want to refer to submitted pages using hyperlinks


Use POST:

- for forms with password fields
- for large forms or forms with large text fields

show here more details
http://triaslama.wordpress.com/2008/05/01/interacting-with-get-and-post-methods-in-aspnet/
http://www.plus2net.com/asp-tutorial/form-diff.php

Please Check my answer if you help....
Thank You...

Lalit.
Author: Syed Shakeer Hussain             
Posted Date: March 19, 2010     Points: 5   

Hi,

Difference Between GET and POST methods
GET:
1) Data is appended to the URL.
2) Data is not secret.
3) It is a single call system
4) Maximum data that can be sent is 256.
5) Data transmission is faster
6) This is the default method for many browsers


POST:

1) Data is appended to the URL.
2) Data is Secret
3) It is a two call system.
4) There is no Limit on the amount of data.That is characters any amount of data can be sent.
5) Data transmission is comparatively slow.
6) No default and should be Explicitly specified.


Author: Rowan             
Posted Date: May 03, 2010     Points: 5   

GET. Usually used to fetch pages. If extra data needs to be sent (i.e from a form) in the request it is put in the querystring.

POST. Usually used to post data (forms). Extra data can now also be put into to the body of the request. The receiving web server can see the data, but it's not visible in the url.

The advantage of GET is that all the data is in the URL, so you can provide additional data by just providing a link with the correct querystring, such as http://phpforms.net/tutorial/html-basics/form-builder.html form builder.

The disadvantage is that the URL imposes a limit on the amount of data that can be sent, and maybe you don't want the data to be easily modifiable.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend