HoverMenuExtender仅在gridview中回发后才能工作

时间:2016-06-11 23:42:52

标签: c# asp.net

HoverMenuExtender仅在gridview中回发后才能运行。奇怪的行为。

          <asp:TemplateField>
                                                    <HeaderStyle CssClass="CenterAligner" />
                                                    <ItemTemplate>
                                                        <asp:Image ID="imgNotes" runat="server" ImageUrl="Images/information.png"  Style="position: relative" />
                                                        <asp:Panel ID="pnlNotes" runat="server" BackColor="GhostWhite" BorderColor="Black" BorderStyle="Solid" BorderWidth="1" Width="500px" Visible="true">
                                                            <div style="position: relative">
                                                            <div style="padding: 10px; margin: 10px; text-align: justify">
                                                                <asp:Label ID="lblCreditInfo" runat="server" Font-Size="9pt" ForeColor="Black"></asp:Label>
                                                                <asp:Label ID="lblCreditWebSite" runat="server" Font-Size="9pt" Text='<%# Bind("CreditWebSite") %>' Visible="false"></asp:Label>
                                                                <asp:Label ID="lblCreditUserName" runat="server" Font-Size="9pt" Text='<%# Bind("CreditUserName") %>' Visible="false"></asp:Label>
                                                                <asp:Label ID="lblCreditPassword" runat="server" Font-Size="9pt" Text='<%# Bind("CreditPassword") %>' Visible="false"></asp:Label>
                                                            </div>
                                                            <br />
                                                                </div>
                                                        </asp:Panel>
                                                         <ajaxToolkit:HoverMenuExtender ID="hmeNotes" runat="server" PopupControlID="pnlNotes" PopupPosition="left" TargetControlID="imgNotes">
                                                        </ajaxToolkit:HoverMenuExtender>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="center" />
                                                    <HeaderStyle HorizontalAlign="Left" />
                                                </asp:TemplateField>

Before Postback After Postback

1 个答案:

答案 0 :(得分:0)

我错过了页面上也有气球扩展器的面板。