开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜