Possible Duplicate:
Call web service from jQuery
I want to add two numbers together, the operation must be done in WCF, and the result will be
display in default.aspx page.
How can I pass the values of my two textboxes to the WCF service using jquery?
You could start by defining a new service contract:
an implementation:
an endpoint (
~/service1.svc):and inside your web.config configure the service to enable REST:
Now you could add a WebForm1.aspx to your project to consume the service: