Call C# method in javascript function directly

后端 未结 7 652
醉梦人生
醉梦人生 2021-01-21 02:10

How to call a c# method in javascript function directly. (eg page_load method of code behind page). Please help me.

7条回答
  •  天命终不由人
    2021-01-21 02:34

    javascript would be client side and page_load would be serverside . I don think you can call the method as such. May be you can create a separate page just for that method and make a call via ajax

提交回复
热议问题