jQuery post request (not AJAX)

前端 未结 5 1931
醉酒成梦
醉酒成梦 2020-11-29 21:54

In an ASP.NET MVC app I use jQuery for posting data on button-click:


....
$.post(\'<%=         


        
5条回答
  •  鱼传尺愫
    2020-11-29 22:05

    $.post is an AJAX call.

    Your best bet is to make the button a trigger for a form and just submit that using the post method.

    An alternative would be to echo your new url from the server, but that defeats the point of AJAX.

提交回复
热议问题