View not refreshing after AJAX post

前端 未结 3 1743
小蘑菇
小蘑菇 2020-12-16 18:27

I have a view (Index.cshtml) with a grid (Infragistics JQuery grid) with an imagelink. If a user clicks on this link the following jquery function will be called:

         


        
3条回答
  •  不思量自难忘°
    2020-12-16 18:57

    When using jQuery.post the new page is returned via the .done method

    jQuery

    jQuery.post("Controller/Action", { d1: "test", d2: "test" })
      .done(function (data) {
          jQuery('#reload').html(data);
      });
    

    HTML

    
    

提交回复
热议问题