Get and Post both are used for sending client information to web server means both methods are used to transfer data from client to server.
Security : In the case of security post is more secure. because for this we have some differences.
Get
Data is passed from client in the form of Url and Url data is visible to every user if you are submitting any form then data which you are passing will be visible in Url ,so this will not safe. also we have some restrictions on that you can pass only 1024 characters in the case of Get.
Data is passed from client in the form of Url and Url data is visible to every user if you are submitting any form then data which you are passing will be visible in Url ,so this will not safe. also we have some restrictions on that you can pass only 1024 characters in the case of Get.
Example for this
I have a application from where i will pass data
GetMethod.aspx
- <html
- xmlns="http://www.w3.org/1999/xhtml">
- <body>
- <form method="get" action="GetDataUsingget.aspx">
- User Name:
- <input id="txtuserName" type="text" name="username" />
- <input id="btnSubmit" type="submit" value="Submit data using GET" />
- </form>
- </body>
- </html>
From there i have entered my name and then data will be posted on "GetDataUsingget.aspx" page.
After clicking on button this will be like as shown in below picture



Ayyappadas NKPosted Sep 19, 2019, 6:40 AM
Then why we use get method? Post is doing every thing.
RETHABILE PHEKOPosted Nov 14, 2015, 3:03 AM
very good job
Neeraj PokhriyalPosted Aug 6, 2015, 2:58 PM
thanks
Rajeesh MenothPosted Aug 6, 2015, 8:51 AM
Good One
Neeraj PokhriyalPosted Aug 5, 2015, 2:26 AM
welcome
Santhakumar MunuswamyPosted Aug 4, 2015, 10:07 PM
Thanks for sharing :)