jQuery-AJAX calling ASP.NET page method. How to return value back to jQuery?

前端 未结 3 1507
灰色年华
灰色年华 2021-01-13 03:08

If I use jQuery AJAX to call a specific ASP.NET page method how to have that method return a value back to the AJAX method that called it?

Update

3条回答
  •  灰色年华
    2021-01-13 03:36

    You can use JQuery with page methods this way: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/

    The success callback contains a parameter with the returning data.

    HTH.

提交回复
热议问题