Questions tagged [webmethod]

WebMethod is an attribute that is marked to indicate that a function (usually in .NET) in a web service is exposed to the consumers of the web service.

The WebMethod attribute is attached to a public method (cannot be attached to a private/protected) that you want the method exposed as part of the .NET Web service. It is also used to further configure the behavior of the method by passing additional attributes. Check out the MSDN link for more information, How to: Use the WebMethod Attribute.

1317 questions
0
votes
1 answer

append webmethod results to a listbox using javascript

i'm trying to update a listbox using ajax/jquery/webmethod. from inspecting network activity in developer tools in chrome, i can see that the webmethod is returning values, but those values are not being appended to the listbox. so i guess that the…
MattSull
  • 5,514
  • 5
  • 46
  • 68
0
votes
3 answers

Send and receive input text to webmethod using ajax call

I am trying to use the simple ajax script to webmethod as follows: Here is my code: $('#btnSaveFile').click(function () { var fileName = $('#txtFileName').val(); …
Liam neesan
  • 2,282
  • 6
  • 33
  • 72
-1
votes
1 answer

How to make the perfomance faster when ajax calls webmethods in asp.net

[Play.aspx] [asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> ..... viewvideo(videoid) ....... [/asp> [Video.js] function viewvideo(videoid) { varVideoid = videoid; $("#video").empty(); var data =…
hapiten
  • 9
  • 3