2014-07-25 36 views

回答

0

您可以通過調用Ajax回服務器/控制器和返回更新的視圖做到這一點的選項卡。

然後在你的Ajax調用的響應簡單地找到使用JQuery通過標識的標籤的內容DIV:

$('#myTabContent).html(view) 

所以,你的Ajax調用會是這個樣子:

$.ajax(
{ 
     url: "Customer/GetCustomerTabDetails",   
     data: 
     { 
      customer: id, // If you need to pass any data 
     }, 
     success: function(view) 
     { 

      $('#IdOfYourContentTab').html(view); 
     }, 
     error: function(jqXHR, textStatus, errorThrown) 
     { 
      // handle error 
     } 
});