在C#中,asp.net下拉列表控件要求用户输入数据 [英] In C# asp.net dropdownlist control wants provsion for user to enter data

查看:70
本文介绍了在C#中,asp.net下拉列表控件要求用户输入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#asp.net中,我必须允许用户在下拉列表控件中输入数据

In c# asp.net i have to allow user to enter data in dropdownlist control

推荐答案

为此使用ajax工具包控件
use ajax toolkit control for it


或在这里查看:
http://easylistbox.com/demoCombo.aspx [
or look here:
http://easylistbox.com/demoCombo.aspx[^]


扩展先前的解决方案:DropDownList转换为HTML< select>控制.该控件不允许普通Windows应用程序使用"dropedit"组合样式.您将必须使用(或创建)自定义控件.

您可能需要查看自动填充文本框(即,在您键入文字时,上下文相关项的下方会出现一个列表).例如,在CP上创建问题时的标签"字段.这是比拖放编辑组合仿真更常见的Web UI体验,并且可能会让您的用户更加熟悉.
To extend the previous solutions: DropDownList translates to a HTML <select> control. That control does not allow the ''dropedit'' combo style of normal windows apps. You will have to use (or create) a custom control.

You might want to look instead at auto-completing text boxes (i.e. as you type, a list appears below of contextually interesting items) – for example, the Tags field when you are creating a question here on CP. This is a more common web UI experience than a drop-edit combo emulation and is likely to be more familiar to your users.


这篇关于在C#中,asp.net下拉列表控件要求用户输入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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