A situation I ran across this week: we have a jQuery Ajax call that goes back to the server to get data
$.ajax(
{
type: \"POST\",
contentType: \"appl
For security reasons, ASP.Net AJAX page methods only support POST requests.
It is true that ASP.NET
AJAX
page methods only support POST
requests for security reasons but you can override this behavior by decorating your WebMethod
with this these both attribute:
[WebMethod]
[ScriptMethod(UseHttpGet = true)]
I felt that the accepted answer was incomplete without pointing out a work around.