href无法在asp.net的updatepanel内部工作

时间:2015-04-08 06:29:30

标签: asp.net

   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="divFilters">
                <div class="subHeaderWrapper">
                    <span class="subHeaderLeft">
                        <img id="imgCtrlContainer" onclick="toggle_visibility('divContainer1','imgCtrlContainer','span_min.png','span_max.png','true');" name="Expand and Collapse1" alt="Expand / Collapse" src="../Style/UX/Images/span_min.png" style="display: none;" />
                    </span>
                    <span class="widgtTitle">
                        <asp:Label ID="lblFilters" EnableTheming="false" runat="server" Text="Filters"></asp:Label>
                    </span>
                </div>
    </div>
    </ContentTemplate>
</asp:UpdatePanel>
<div class="subHeaderWrapper" id="divSubHeaderWrapper" runat="server">
    <span class="subHeaderLeft"></span>
    <span class="widgtTitle">
        <asp:Label ID="lblObservation" EnableTheming="false" runat="server" Text="Observation"></asp:Label>
    </span>
    <a **href="#divFilters"** id="filterAnchor" class="filtersPopup" style="text-decoration: none;">
        <img style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" id="util1" class="filterIcon" onmouseover="mouseOverUtl('util1')" title="Filter" onmouseout="mouseOutUtl('util1')" name="Util1" runat="server" alt="Utility" src="../Images/icon_dash_filters.png" />
    </a>
</div>
<asp:Griview...>
</asp:Gridview>

上面是我在asp:UpdatePanel标签中编写的代码。从锚标签转到div&#34; divFilter&#34;提到的href="#divFilters"不起作用。在没有给出updatepanel的情况下进入另一个aspx页面的同一页面工作正常。但我需要在UpdatePanel下完成它

0 个答案:

没有答案