Calling functions from an ASP.NET code file with javascript

后端 未结 1 1602
逝去的感伤
逝去的感伤 2020-12-22 01:30

I have a JavaScript-based timeline which needs to use data from an SQL server. The queries and the JSON conversions have been worked out in the form of C#.NET functions with

1条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 02:05

    This is how I do it with jQuery

    $.getJSON("MyAction" { Data: somedata}, function(data) {
        // do stuff on callback
    });
    

    0 讨论(0)
提交回复
热议问题