多个Tab问题中的多个网格视图

时间:2018-04-04 04:04:23

标签: c# asp.net

我在页面加载时在多个选项卡中加载多个网格视图,有11个网格视图导致延迟问题。

你能不能告诉我有没有其他方法可以减少延迟,我也无法将其存储在会话中,因为所有数据每次都在更新

 <div id="tabs-1">
    <div id="div_created" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
        <asp:GridView ID="grd_created" runat="server"
            <%--*************--%>>
        </asp:GridView>
    </div>
</div>
<div id="tabs-2">
    <div id="div_inprocess" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
        <asp:GridView ID="grd_inprocess" runat="server"
            <%--*************--%>>
        </asp:GridView>
    </div>
</div>
<%--*************--%>
<%--*************--%>
<div id="tabs-11">
    <div id="div1" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
        <asp:GridView ID="GridView1" runat="server"
            <%--*************--%>>
        </asp:GridView>
    </div>
</div>


<ul class="tabs" data-persist="true">
    <li runat="server" id="li_create" onclick="doAdelay()"><a href="#tabs-1">Created
        <asp:Label ID="lblCreatedCount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_proc" onclick="doAdelay()"><a href="#tabs-2">In Process
        <asp:Label ID="lblInprocessCount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_hold"><a href="#tabs-3">On Hold<asp:Label ID="lblonholdCount" runat="server"></asp:Label></a></li>

    <li runat="server" id="li_comp"><a href="#tabs-4">Completed<asp:Label ID="lblcompltedCount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_fianl"><a href="#tabs-5">Finalized<asp:Label ID="lblFinalizedCount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_custom" visible="false"><a href="#tabs-6" runat="server"
        id="ViewCustom">Custom</a></li>
    <li runat="server" id="li_all"><a href="#tabs-7">All<asp:Label ID="lblAllcount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_SrchRslt" class="clssearch" visible="false"><a href="#tabs-8" runat="server"
        id="SrchRslt">Search Result<asp:Label ID="lblSearchcount" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_CR" visible="false"><a href="#tabs-9">In Rebuttal<asp:Label ID="lblCodeRebuttal" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_RR" visible="false"><a href="#tabs-10" runat="server"
        id="A1">Review Records<asp:Label ID="lblreviewrecords" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_SA" visible="false"><a href="#tabs-11" runat="server"
        id="A2">
        <asp:Label ID="lbltabSTA" runat="server" Text="Sent to Auditor"></asp:Label><asp:Label ID="lblSA" runat="server"></asp:Label></a></li>
    <li runat="server" id="li_PRS" visible="false"><a href="#tabs-12" runat="server"
        id="A3">Peer Review<asp:Label ID="lblpeerreviewS" runat="server"></asp:Label></a></li>
</ul>

0 个答案:

没有答案