DropDown Demonstration

本文介绍ASP.NET AJAX控件DropDownExtender的使用方法,此控件可以为几乎任何ASP.NET控件提供类似SharePoint的下拉菜单功能。通过示例展示了如何初始化该控件并设置其关键属性。
 
DropDown Demonstration
Hover over the text below and click to select an option:
 
Select your favorite exotic ice-cream flavor Mocha Blast
 
You selected Java Cyclone.
 
DropDown Description
DropDown is an ASP.NET AJAX extender that can be attached to almost any ASP.NET control to provide a SharePoint-style drop-down menu. The displayed menu is merely another panel or control. In the above sample the drop-down is a Panel which contains LinkButtons. The drop-down is activated by left- or right-clicking the attached control. If the behavior is attached to a Hyperlink or LinkButton, clicking on the link itself will operate normally.
 
 DropDown Properties
The control above is initialized with this code. The italic properties are optional:
 
<ajaxToolkit:DropDownExtender runat="server" ID="DDE"
    TargetControlID="TextLabel"
DropDownControlID="DropPanel" />
 
 
l         TargetControlID - The ID of the control which needs a drop-down.
l         DropDownControlID - The ID of the control which will be displayed as the dropdown.
l         Animations - Generic animations for the DropDown extender. See the Using Animations walkthrough and Animation Reference for more details.
OnShow - The OnShow animation will be played each time the dropdown is displayed. The dropdown will be positioned correctly but hidden. The animation can use <HideAction Visible="true" /> to display the dropdown along with any other visual effects.
OnHide - The OnHide animation will be played each time the dropdown is hidden.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值