asp.net ajax collapsible panel in ie8 problem

Posted by stuart on Stack Overflow See other posts from Stack Overflow or by stuart
Published on 2009-06-01T07:06:34Z Indexed on 2012/09/30 9:37 UTC
Read the original article Hit count: 263

Anyone try this simple bit of code in an ie8 browswer and try refreshing the page,

in ie8 you will get an error around getelementbyid on refresh.

When i run it it complains of not being able to find control with id of 'ctl00_main_dd'

<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server"     
     ImageControlID="Image2" CollapsedImage="~/App_Themes/IMStandard/icons/uparrow.png"
    ExpandedImage="~/App_Themes/IMStandard/icons/downarrow.png"
     CollapseControlID="dd" ExpandControlID="dd"
     TargetControlID="pnlQuickKeywordSearch"
     SuppressPostBack="true">
</cc1:CollapsiblePanelExtender>
 <asp:Panel ID="dd" runat="server">
    <h3 class="loginHeader">
        <asp:Image ID="Image2" runat="server" />
        &nbsp;&nbsp;Quick Keyword search&nbsp;<asp:Image ID="HelpIconImage" runat="server"
            Width="16px" Height="16px" ImageUrl="~/App_Themes/IMStandard/icons/help.png" /></h3>
</asp:Panel>
 <asp:Panel ID="pnlQuickKeywordSearch" Style="float: left; border: double 3px #C9DF86;"
    runat="server" >
    <div style="clear: both; padding: 5px;">
    </div></asp:Panel>

Anybody know why this is happening? is it a bug in ie8 or am i missing something?

By the way, i am using masterpages, but i dont think that has anything to do with it.

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about internet-explorer-8