Sunday, March 11, 2012

Need to hide panel at startup then display for hovermenuextender

Here are some sample codes?about?how?to?work?Ajax:HoverMenuExtender?with?asp:Panel for your reference.
<div>
<asp:Panel ID="pnlPopup" runat="server">
<table>
<tr>
<td><asp:Label ID="lblPopup" runat="server" Text="Popup"></asp:Label></td>
<td><asp:Image ID="img" ImageUrl="~/images/Graphics.gif" runat="server" /></td>
</tr>
</table>
</asp:Panel>
<asp:Image ID="imgPopup" runat="server" ImageUrl="~/images/airplane.bmp" />
<Ajax:HoverMenuExtender ID="HoverMenuExtender1" runat="server" PopupPosition="Center" PopupControlID="pnlPopup" TargetControlID="imgPopup" PopDelay="50">
</Ajax:HoverMenuExtender>
</div
Wish the above can help you.
Jax, just add "display:none" to the style of the panel.
Hi Steve,
???I tested?Ajax:HoverMenuExtender with asp:Panel?based?on Ajax?RC?1.0?in?my?PC?and?found?it?worked?fine.We?can?hide?a?panel?by setting?"style="display:none""?and?show?it?through?setting?"Panel.Attributes["style"] = "display: '';";". But?if?an?asp:Panel?is?associated?with?an?
Ajax:HoverMenuExtender, how to hide or show it? Maybe this is controlled byAjax:HoverMenuExtender.The panel will show when a mouse focuses on the target control and fade when the mouse loses focus on the target control.

No comments:

Post a Comment