HoverMenu rendered by OnClick event

Last post 07-14-2009 3:44 PM by VeganMan. 4 replies.

Sort Posts:

  • HoverMenu rendered by OnClick event

    02-29-2008, 6:05 PM
    • Member
      213 point Member
    • isheahan
    • Member since 05-11-2005, 4:58 AM
    • Posts 130

    Is there a way to get the HoverMenuExtender to only render when someone clicks the TargetControlID of the extender?

    Basically, it seems like I need a cross between a modal (but MUCH lighter and faster) and a hoverMenuExtender (anchored on the calling TargetControlID).

    Please help! thanks!!
    isheahan

  • Re: HoverMenu rendered by OnClick event

    03-04-2008, 2:50 PM
    • Member
      213 point Member
    • isheahan
    • Member since 05-11-2005, 4:58 AM
    • Posts 130

    bump!

    Still looking for answers if ya'll have any...

    thanks,
    isheahan

  • Re: HoverMenu rendered by OnClick event

    03-06-2008, 6:47 AM
    Answer

    Hi Isheahan,

    In your case, you'd better use PopupExtender instead of HoverMenuExtender.   Here is the working sample. 

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Popup Sample</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
    
            <asp:Panel ID="Panel2" runat="server" style="display:none;visibility:hidden;" >
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </asp:Panel>
            <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return false;" UseSubmitBehavior="false" />
            <ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" BehaviorID="myPopup"  runat="server" TargetControlID="Button1"
                PopupControlID="Panel2" CommitProperty="value" Position="Bottom"/>
        </form>
    </body>
    </html>
    

    Best regards,

    Jonathan

     

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: HoverMenu rendered by OnClick event

    03-11-2008, 1:40 PM
    • Member
      213 point Member
    • isheahan
    • Member since 05-11-2005, 4:58 AM
    • Posts 130

    Jonathan, 

    After adequate testing it appears that your post WOULD be the correct answer.

    Curious - how did your post get marked as the answer before I was ready to mark it as such? I was under the impression that only the author of the post or an admin/mod could change that.

    Bothersome because I'd like the opportunity to give credit where due and not have that opportunity stolen from me.
     

  • Re: HoverMenu rendered by OnClick event

    07-14-2009, 3:44 PM
    • Member
      56 point Member
    • VeganMan
    • Member since 10-08-2008, 6:27 PM
    • Posts 124

     That has happened to me also, someone being marked as answered when I haven't marked it. Not only so, the one marked answered wasn't even answered, just bad advise.

Page 1 of 1 (5 items)