The AJAX Dropdown Menu extender control works like a context menu that can be attached to any type of ASP.Net 2.0 server control. AJAX Dropdown Control uses two controls, one control works as a target control and other as a Dropdown menu. When user clicks on Target control it produces a dropdown menu at the specified position.
In the sample of AJAX Dropdown extender control you will learn how to use the ASP.Net repeater control for generating the dynamic Link Buttons as menu items for Dropdown extender. You can place the repeater control inside a Panel control that can be attached to AJAX Dropdown Extender control.
TargetControlID: ID of the control to attach the dropdown menu extender with it.
DropdownControlID: ID of the Control that will appear as the dropdown menu.
DropArrowBackColor: Sets the background color of the arrow that appears on mouse over on Target Control.
DropArrowImageUrl: image path of drop arrow.
DropArrowWidth: To set width of drop arrow image.
HighlightBackColor: Background color of the Target control for on mouse over action.
HighlightBorderColor: Border color of the Target Control for on mouse over action.
HTML code:
In sample code Northwind database is used to bind the categories with repeater control to generate dropdown menu items.
You can download the sample code for AJAX Dropdown Menu extender control here...
ajax dropdown menu.zip (3.24 kb)
Be the first to rate this post
Tags: asp.net 2.0, ajax dropdown menu, ajax dropdown control, asp.net ajax control toolkit, dropdown extender, accordion extender, collapsiblepanel extender
8/23/2008 8:53:41 PM