How to call server side class code method from javascript?
开发者_开发技巧I want to know how to call .cs method from javascript file in asp.net
you can Use either of the following,
1. If your code is within aspx.cs create a static webmethod and call this webmethod using Page Method from javascript
2. If your code is within a webservice, Call the webservice from javascript.
Hope this helps
精彩评论