DropDownExtender可点击箭头问题
在我当前的项目中,我将 DropDownExtender (来自 AJAX 工具包)添加到我的 DropDownList 中。我这样做是为了改善下拉菜单的外观。我的代码看起来像这样(列表项在运行时填充):
<asp:DropDownList ID="dropdown1"
runat="server"/>
<act:DropDownExtender TargetControlID="dropdown1"
id="DropDownExtender1"
runat="server"/>
下拉菜单有效;但是,为了访问下拉列表中的列表项,我必须单击下拉列表的实际文本区域/框。单击箭头将不起作用。关于如何使其正常工作有什么想法/建议吗?谢谢。
In my current project I am adding a DropDownExtender (from the AJAX toolkit) to my DropDownList. I am doing this to improve the look of the drop down. My code looks something like this (list items are populated at run time):
<asp:DropDownList ID="dropdown1"
runat="server"/>
<act:DropDownExtender TargetControlID="dropdown1"
id="DropDownExtender1"
runat="server"/>
The drop down works; however, in order to access the list items in the drop down, I have to click the actual text area/box of the drop down. Clicking the arrow will not work. Any ideas/suggestions on how to get this to work correctly? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您需要将下拉扩展器放入面板中。
http://www.dotnetcurry.com/ShowArticle.aspx?ID=167
在这里查看此代码
http://asp-net-example.blogspot.com/2009/12/ajax-dropdownextender-how-to-use.html
I believe you need to put your drop down extender into a panel.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=167
check this code out here
http://asp-net-example.blogspot.com/2009/12/ajax-dropdownextender-how-to-use.html