开发者

How to call server side class code method from javascript?

开发者 https://www.devze.com 2023-03-14 14:01 出处:网络
开发者_开发技巧I want to know how to call .cs method from javascript file in asp.netyou can Use either of the following,

开发者_开发技巧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

精彩评论

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