I have seen some many different answers on the web and did a lot of copy and paste. It just doesn't work for me. Can any one tell me why?? I am so frustrated >_< Do I have to do something on my web.config file? I don't understand that even my "WebService.asmx/add" won't return anything from my browser (because there is no such a link.) How would jQuery get any result? I must add some httphandlers, right?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Using :remote => true with hover event
- Is there a way to play audio on a mobile browser w
I don't know whether I am being hated or what. There are just no people answering me. Very sad. ...>_<... After days of research, I found some way working The attribute need to serialize data as JSON string is
so I have my asmx code as
}
my jQuery code as
which correctly returned 35.
NICE!
As i see in your image, your webmethod does not have static method.
A webmethod should be a static method, in order to consume a service. WebMethod and Static
Please go through with this links for more information