• Answers
  • Web
Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:

Web Service in ASP.NET and JS

Hi


I want to create a web service in ASP.NET with a function that has an input and output. This WS should be consumed by JavaScript.

I'm looking for a working sample of such code.

Been looking around but nothing seems to work for now

Thanks


Share Send to a friend Watch Report
 
 

Posted Answers

 
1 helpful answer

not sure what you mean by "a function that has an input and output" your question is sort of vague.. hard to tell what you're asking about.

maybe you want the javascript to make an async call to your asp script?

you basically write three pieces of code. 

1. javascript function that gets the data from your page and makes an ajax call to asp... 

2. asp page that handles the javascript call 

3. a  callback function ( #1 includes reference to  this piece) that handles the response from piece #2 and updates your page accordingly

here's an example google turned up: http://www.15seconds.com/issue/050526.htm

 

Posted 2006-12-01T21:17:16Z
wilfordbrimley was invited by Yedda to answer this question.

Helpful?(2)
Rated as Best Answer

Sign in to participate

Got an answer for hanoch? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License