Click here to Skip to main content
15,868,016 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionApplication for creating vector objects Pin
MitchCZ2-Mar-20 2:45
MitchCZ2-Mar-20 2:45 
AnswerRe: Application for creating vector objects Pin
Pete O'Hanlon2-Mar-20 2:59
subeditorPete O'Hanlon2-Mar-20 2:59 
GeneralRe: Application for creating vector objects Pin
MitchCZ2-Mar-20 3:31
MitchCZ2-Mar-20 3:31 
GeneralRe: Application for creating vector objects Pin
Pete O'Hanlon2-Mar-20 4:20
subeditorPete O'Hanlon2-Mar-20 4:20 
QuestionSome GridView controls are running empty rows. Any ideas to fix Pin
samflex25-Feb-20 7:57
samflex25-Feb-20 7:57 
SuggestionRe: Some GridView controls are running empty rows. Any ideas to fix Pin
Richard MacCutchan25-Feb-20 8:51
mveRichard MacCutchan25-Feb-20 8:51 
GeneralRe: Some GridView controls are running empty rows. Any ideas to fix Pin
samflex25-Feb-20 9:03
samflex25-Feb-20 9:03 
GeneralRe: Some GridView controls are running empty rows. Any ideas to fix Pin
Richard MacCutchan25-Feb-20 9:26
mveRichard MacCutchan25-Feb-20 9:26 
AnswerRe: Some GridView controls are running empty rows. Any ideas to fix Pin
Mycroft Holmes25-Feb-20 11:35
professionalMycroft Holmes25-Feb-20 11:35 
GeneralRe: Some GridView controls are running empty rows. Any ideas to fix Pin
samflex25-Feb-20 17:20
samflex25-Feb-20 17:20 
SuggestionRe: Some GridView controls are running empty rows. Any ideas to fix Pin
phil.o25-Feb-20 20:19
professionalphil.o25-Feb-20 20:19 
GeneralRe: Some GridView controls are running empty rows. Any ideas to fix Pin
Richard MacCutchan25-Feb-20 21:22
mveRichard MacCutchan25-Feb-20 21:22 
AnswerRe: Some GridView controls are running empty rows. Any ideas to fix Pin
Blikkies26-Feb-20 1:19
professionalBlikkies26-Feb-20 1:19 
QuestionASP.NET + Multi Form using Textbox problem Pin
kerek224-Feb-20 21:41
kerek224-Feb-20 21:41 
SuggestionRe: ASP.NET + Multi Form using Textbox problem Pin
Richard MacCutchan24-Feb-20 23:16
mveRichard MacCutchan24-Feb-20 23:16 
QuestionWhen string in a cell has double quotes those appear in Excel after export. How do I remove them? Pin
Member 1140330424-Feb-20 10:19
Member 1140330424-Feb-20 10:19 
AnswerRe: When string in a cell has double quotes those appear in Excel after export. How do I remove them? Pin
Member 1140330424-Feb-20 11:26
Member 1140330424-Feb-20 11:26 
Rant[REPOST] When string in a cell has double quotes those appear in Excel after export. How do I remove them? Pin
Richard Deeming25-Feb-20 2:27
mveRichard Deeming25-Feb-20 2:27 
Questionreturning null value from populated selectlist with DB data Pin
ElenaRez21-Feb-20 21:11
ElenaRez21-Feb-20 21:11 
QuestionASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
Mou_kol18-Feb-20 8:32
Mou_kol18-Feb-20 8:32 
AnswerRe: ASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
jkirkerx19-Feb-20 9:15
professionaljkirkerx19-Feb-20 9:15 
GeneralRe: ASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
Mou_kol19-Feb-20 9:41
Mou_kol19-Feb-20 9:41 
AnswerRe: ASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
F-ES Sitecore19-Feb-20 23:01
professionalF-ES Sitecore19-Feb-20 23:01 
HttpPost and HttpGet simply mean you allow those methods to be called via that verb. It doesn't change anything about how the client works or how data is transmitted. Whether you use GET or POST depends on the calling code, the action attributes simply say which ones are allowed. If you put only HttpPost on a method and try to call that via GET on the client, you'll get a failure code back. If you have HttpGet and HttpPost on a method then then client can use GET or POST, but again that is up to the client to decide which one is used.

In terms of server to client, there is no difference between GET and POST.

Which you should use depends on the semantics of what your method does. If you are retrieving info, like Customer 123, then use GET, if you are sending data to the server for storage then use POST. Also remember that GET and POSt are remnants of how browsers request URLs, there are other verbs you can use depending on what you are doing. Again which one you use depends on the semantics of what your method is doing.

HTTP Methods for RESTful Services[^]

The other thing you might want to consider is that GETs can be cached but POSTs will never be cached.
GeneralRe: ASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
Mou_kol21-Feb-20 22:36
Mou_kol21-Feb-20 22:36 
GeneralRe: ASP.Net MVC: When to use HttpGet and when to use HttpPost for action Pin
F-ES Sitecore23-Feb-20 22:46
professionalF-ES Sitecore23-Feb-20 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.