0
我有一個顯示多個選項卡的主頁。錯誤數據顯示在標籤下mvc3
我想在頁面中爲第一個標籤 添加標籤,我正在使用jquery和ajax調用,其中標籤計數取決於 獲取的數據。
例如,我的家庭控制器有更多的細節動作,顯示 產品,製造商的標籤,並在產品標籤取決於獲取DAT 我顯示國家的標籤和第一個標籤工作正常,並在第二個選項卡 是從製造商選項卡獲取數據並且沒有數據顯示在 製造商選項卡下。
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EmsAdmin.Models.abc>" %>
ABC詳細 ABC詳細 <%Html.RenderPartial( 「ABC」,模型); %>
</ul>
<div class="panes">
<!-- Products -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Products"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of products-->
<% if ((Boolean)ViewData["HasWTB"])
// Do they have the Where to by product?
{ %>
<!-- where to buy -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Manufacturers"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of where to buy -->
<% } %>
<!-- Request Reports see Reports.ascx-->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Reports"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of request reports -->
<% if ((Boolean)ViewData["HasInText"])
{ %>
<!-- In Text -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("InText"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of in text -->
<% } %>
<!-- Ranges or SubBrands -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Ranges"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of ranges of SubBrands -->
<!-- Ranges or Region -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Regions"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of ranges of Regions -->
<!-- Categories -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("Categories"); %>
<div style="clear: both;">
</div>
</div>
<!-- end of Categories -->
<!-- REgions -->
<div class="pane">
<div style="clear: both;">
</div>
<% Html.RenderPartial("REgions"); %>
<div style="clear: both;">
</div>
</div>
<!-- end ofFilters -->
</div>
</div>
<script type="text/javascript">
//<![CDATA[
// Set the tabs to be tabs
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div");
});
//]]>
</script>
你是很好,足以表現出一點的代碼? –