Gridview sort IE crash Issue

Aug 21 2009 8:40 AM

Hi All,


I m having a gridview with the sort functionality

everything is working fine in sort but sometimes it is crashing IE browser.  It is working in firefox but crashing the IE..

Plz help...


Index.aspx page code


<asp:GridView id="dgShoppingIdeas" runat="server" AutoGenerateColumns="False" OnRowDataBound="dgShoppingIdeas_RowDataBound" CaptionAlign="Left" GridLines="None" CellPadding="4" AllowSorting="True" OnSorting="dgShoppingIdeas_Sorting">
                    <Columns>
                        <asp:TemplateField HeaderText="<U>Item or Event</U>" SortExpression="product">
                             <HeaderTemplate>
                                <asp:LinkButton ID="lnkpruductHeader" runat="server" Text="<U>Item or Event</U>" ToolTip="Item or Event"></asp:LinkButton>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:HyperLink ID="hykproduct" runat="server" Font-Underline="true"></asp:HyperLink>
                                <asp:Label ID="lblproduct" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle ForeColor="#231FED" CssClass="Alignleft" Width="300"/>
                            <ControlStyle Width="300"/>
                            <ItemStyle Width="300" HorizontalAlign="left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<U>When</U>" HeaderStyle-Font-Underline="true" SortExpression="pdate">
                            <HeaderTemplate>
                                <asp:LinkButton ID="lnkdateHeader" runat="server" Text="<U>When</U>"></asp:LinkButton>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblpdate" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle  ForeColor="#231FED" CssClass="Alignleft" Width="80"/>
                            <ControlStyle Width="80" />
                            <ItemStyle Width="80" HorizontalAlign="left" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#66CCFF" Font-Names="Verdana,Arial" Font-Size="13px" VerticalAlign="Middle" HorizontalAlign="Left"/>
                    <RowStyle BackColor="#CCCCCC" Font-Size="11px" />
                    <AlternatingRowStyle BackColor="#66CCFF" />
                </asp:GridView>


Thanks alot


Mohit

Answers (1)