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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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