Calling a web service from javascript and .net 2.0
- by rod
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