Introduction
In this article we will learn how to use the ASP.Net Ajax Hover Menu Extender control. In this article we will show the various uses of this hover menu extender control. Normally all of you are aware of the concept of a hover menu in which we can show some extended values of the short form. E.g. we have one linkbutton and when the user moves the mouse over the linkbutton we need to show some description about it on our web page.
Consider one more case e.g. we have our GridView in which we are showing Articles but in GridView we can not show the description of an article because in GridView so long text showing is not good; instead of that in a GridView we can show the title and author names only but whenever the user moves the mouse over the title we need to show the description of the article so we can do that very easily. In this article we will see this example only how to show hover menu when the mouse moves over titles in a GridView. So let's get started from the basics of the hover menu extender.
Hover Menu Extender
The Hover Menu Extender is an Ajax control which popups when the mouse moves over the control. This popup is nothing some another container control with visibility as hidden and contains some another controls to display in popups. So first we will create one simple Hover Menu on LinkButton on mouse over we will show one hyperlink in popup.
First start your website and add the reference to AjaxControlToolkit and register the tagprefix to ajaxcontroltoolkit like below.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
Now keep one scriptManager on the page, one linkbutton, one HoverMenuExtender and one Panel containing hyperlink like below.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div id="contents">
This <asp:LinkButton ID="article" runat="server" Text="Article" PostBackUrl="http://www.c-sharpcorner.com"></asp:LinkButton> Will explain How to use
<asp:Panel ID="Panel1" runat="server" style="visibility:hidden">
<a href="http://www.c-sharpcorner.com">Click Here</a>
</asp:Panel>
</div>
<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" TargetControlID="article" PopupControlID="Panel1" PopupPosition="Top">
</cc1:HoverMenuExtender>
</div>
In the above code there is nothing special to discuss except the HoverMenuExtender. The Hover Menu has some properties which we can set like:
TargetControlId="The Id Of Control on which we have to show Hover Menu when mouse over on it".
PopupControlId="The control id which we want show as a popup".
PopupPosition="Position where you want to show the popup on Target Control".
By setting these simple properties we can use the Hover Menu Extender Control in our ASP.Net web page. Next we will see how to use this Hover Menu extender in GridView. So let's start it step by step.
Step 1:
Keep one GridView on your ASP.Net page and create your own columns instead of autogenerated columns like below. In this case we are using the article title and description to show in the hover menu popup control.

Santosh YadavPosted Apr 14, 2013, 5:25 AM
nice one...
Stephen JohnsonPosted Jan 26, 2012, 11:21 PM
Its a very useful article for those who wants to use asp.Net Ajax Hover Menu Extender control.