下拉与ASP.NET图片填充列表? [英] Drop-Down List Filled with Images in ASP.NET?

查看:187
本文介绍了下拉与ASP.NET图片填充列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何做一个充满图像项的下拉列表?我希望能够看到图像的列表与文本标题列表,可以选择一个专门​​处理,并有文字标题出现在选择框上名列榜首。有谁知道这是如何实现的?

How do I make a drop-down list that is filled with image items? I want to be able to see a list of images in the list with text titles, be able to select one exclusively, and have the text title appear in the selection box on top of the list. Does anyone know how this can be accomplished?

推荐答案

最简单的方式做到这一点是使用一个第三方库,如Telerik的ASP.NET AJAX库(通常被称为拉德控件)。

The most straightforward way to do this is to use a 3rd party library such as Telerik's ASP.NET AJAX library (commonly referred to as Rad Controls).

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

我有好运气与Telerik的。关于radcombobox控件(其全功能的下拉列表中ASP.NET)的一个好处是,它可以让你覆盖每一个项目的呈现在列表中,如果你的愿望。通过覆盖每个项目的渲染,你可以把任何类型的HTML到下拉列表(包括图片,表格等)。因此,它是pretty强大。

I have had good luck with Telerik. One nice thing about the RadComboBox (their full-featured drop down list for ASP.NET) is that it allows you to override the rendering of every item in the list if you wish. By overriding the rendering of each item, you may put any kind of HTML into the drop down list (including images, tables, etc). So it is pretty powerful.

的下侧的是,它是一种商业产品,并有一个学习曲线。此外,Telerik控制可以是一个有点沉重取决于您的要求。

The down-side is that it is a commercial product and there is a bit of a learning curve. Also, Telerik controls can be a little heavy depending upon your requirements.

我没有与其他第三方库经验,用这个级别的功能,所以可能会有其他的解决方案在那里。

I don't have experience with other 3rd party libraries with this level of functionality, so there may be other solutions out there.

这篇关于下拉与ASP.NET图片填充列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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