Calling a web service from javascript and .net 2.0
Posted
by rod
on Stack Overflow
See other posts from Stack Overflow
or by rod
Published on 2010-05-21T14:44:41Z
Indexed on
2010/05/21
14:50 UTC
Read the original article
Hit count: 250
jQuery
|asp.net-ajax
Hi All,
Is it possible to call a web service (on my localhost) from jquery in a plain html page inside an asp.net 2.0 application?
<script type="text/javascript">
$(document).ready(function(){
$('#button1').click(function(){
$('#targetDiv').load('http://localhost/testservice/Service1.asmx/HelloWorld',null,function(){alert('test')});
});
});
</script>
I'm getting a 500 error? Not sure if it's even possible to do this way?
thanks, rod
© Stack Overflow or respective owner