Get Vs Post Method to send data to the server
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
Please note that web forms in ASP.NET use POST by default.
It can be changed into GET, but only for small forms. Web forms can post a lot
of data, especially when ViewState is involved.
Subscribe to:
Post Comments (Atom)
nice.
ReplyDeleteThanks
ReplyDelete