views:

51

answers:

1

I have a C# library. From within it, I want to call a static method that exists within the same library but through Javascript. Can I use WebResource to call a C# method?

A: 

You will have to create a "proxy" to call that method. From javascript you can call
- Page Method
- HttpHandler
- Web Service

So will be your proxy on charge of calling the method you want and returning the result to javascript (more likely using json format)

Please let me know if you need some examples about how to use any of these mecanisms

Claudio Redi