簡體   English   中英

使用Internet Explorer的ASP GridView性能不佳

[英]ASP GridView bad Performance using Internet Explorer

嘿,我使用Internet Explorer遇到ASP Gridview的性能問題。 我的表大約有2000行,對於GridView來說似乎很多。 我已經嘗試過激活分頁,甚至在UpdatePanel中提供整個GridView。

真正奇怪的是問題不是數據的加載(整個表的顯示非常快),而是頁面的處理。 當您想要單擊標題中的TextBoxes或什至突出顯示某些數據時,IE會延遲大約5秒鍾執行此操作,然后凍結為“不再工作”。

Firefox中的同一個站點運行出色,沒有延遲。 您可以在此處查看我的代碼的一部分:

<asp:GridView ID="GridViewHandys" runat="server" AutoGenerateColumns="false" DataSourceID="HandyDataSource" AllowSorting="True"  PageSize="25"
                AllowPaging="true" CellPadding="4" ForeColor="#333333" GridLines="None" UseAccessibleHeader="True" ViewStateMode="Enabled" 
                OnSorting="onSort" >
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />

這是列的示例:

<asp:TemplateField>
<ItemTemplate>
     <asp:Label runat="server" Text='<%#Eval"Kostenstelle")%>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
    <asp:LinkButton runat="server" Text="Kostenstelle" 
    CommandName="Sort" CommandArgument="Kostenstelle" ForeColor="White">
    </asp:LinkButton><br />
    <asp:TextBox ID="txtSearchKostenstelle" runat="server" Text="" AutoPostBack="true" OnTextChanged="onFilter" CssClass="grid_tb"></asp:TextBox>
</HeaderTemplate>
</asp:TemplateField>

以及如何綁定數據:

<asp:SqlDataSource ID="HandyDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:GanzNeuConnectionString %>" SelectCommand="Select * from Table1 "></asp:SqlDataSource>

知道如何解決嗎?

好的,這是VisualStudio的問題。 使用相同的鏈接打開另一個IE效果很好,而且生產服務器上的版本也可以正常工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM