我有一个显示多个选项卡的主页。
我正在尝试为页面中的第一个选项卡添加选项卡,我正在使用 jquery 和 ajax 调用来执行此操作,其中选项卡计数取决于获取的数据。
例如,我的家庭控制器具有详细信息操作,根据获取的数据显示产品、制造商选项卡和产品选项卡下,我正在显示国家/地区选项卡,第一个选项卡工作正常,第二个选项卡从制造选项卡获取数据,没有数据显示在制造商选项卡下。
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EmsAdmin.Models.abc>" %>
abc 详细信息 abc 详细信息 <% Html.RenderPartial("abc", Model); %>
</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>