Asp.net下拉框问题 [英] Asp.net Drop down box issue

查看:76
本文介绍了Asp.net下拉框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有一个下拉列表,其中包含50多个项目,当我选择下拉列表项目时,它会显示所有项目并占据整个页面.我想要的是一次显示10个项目,并在滚动时显示下一个项目.

我不知道它是否简单.请问这个问题有没有帮助,或者是否需要为下拉列表设置任何属性或样式.

预先感谢您在这个问题上能提供帮助的人.

M.Manikandan

Hi All

I have a dropdown list which contains more than 50 items, when i am selecting the dropdowlist item its displaying all the items and occupying the entire page. what i want is display 10 items at a time and display next items on scrolling.

I have no idea whether it is simple or not. Please help in this issue whether ther is any alternative or do i need to set any property or style for dropdown list .

Thanks in advance if anybody can help in this issue.

M.Manikandan

推荐答案

有很多jQuery插件可以做到这一点. [
There are a lot of jQuery plugins that will do that. Start here.[^]


为什么不使用aspnet ListBox代替?当项目大于List的大小时,ListBox提供自动滚动条
或访问此帖子

http://blogs.msdn.com/b/rakkimk/archive/2011/05/02/dropdownlist-html-select-vertical-scrollbar-number-of-items.aspx [
Why not use aspnet ListBox instead? ListBox provides an auto scrollbars when the item is larger than the size of the List
Or visit this post

http://blogs.msdn.com/b/rakkimk/archive/2011/05/02/dropdownlist-html-select-vertical-scrollbar-number-of-items.aspx[^]


.NET或任何其他平台都是不可能的,因为下拉呈现是由浏览器控制的.

但是,您可以使用ListBox或类似的替代方法

http://blogs.msdn.com/b/rakkimk/archive/2011/05/02/dropdownlist-html-select-vertical-scrollbar-number-of-items.aspx [
It is not possible is .NET or any other platform since the dropdown rendering is controlled by the browser.

However, you can use ListBox or some workaround like this

http://blogs.msdn.com/b/rakkimk/archive/2011/05/02/dropdownlist-html-select-vertical-scrollbar-number-of-items.aspx[^]


这篇关于Asp.net下拉框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆