ASP.NET Webforms - Calling a C# method with AJAX

前端 未结 3 1335
-上瘾入骨i
-上瘾入骨i 2020-12-22 09:13

I\'ve an asp button on an aspx :



        
3条回答
  •  抹茶落季
    2020-12-22 09:33

    Try with this type of format.

     [System.Web.Services.WebMethod]
     public static void GetReport()
     {
     }
    
    
     [System.Web.Services.WebMethod]
     public static void GetReport(string name)
     {
     }
    

    Get more detail from

    http://www.aspsnippets.com/Articles/Call-ASPNet-Page-Method-using-jQuery-AJAX-Example.aspx

提交回复
热议问题