I am beginner in jQuery.
I want to know that as we can call server side method in ASP.Net by javascript using XMLHttpRequest object and GET verb, similarly can we call the same using jQuery $get() or we are able to do it by POST onley?
Thanks.
I am beginner in jQuery.
I want to know that as we can call server side method in ASP.Net by javascript using XMLHttpRequest object and GET verb, similarly can we call the same using jQuery $get() or we are able to do it by POST onley?
Thanks.
$.ajax( { type: "GET", url: "AjaxSample.aspx/Greet", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { debugger; $('div').val(data); }, error: function(err) { debugger; $('div').val('Error'); } – Prateek Deshpande Oct 19 '11 at 06:18