Calling a C# method with jquery

后端 未结 5 1533
旧时难觅i
旧时难觅i 2021-02-09 18:00

I am trying to call a method with jQuery on a button click.This is waht I have so far:

$(\"a.AddToCart\").click(function () {
            var link =         


        
5条回答
  •  醉话见心
    2021-02-09 18:44

    place script method this way as shown below

    [WebMethod]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    

提交回复
热议问题