试试
http://www.asp.net/ControlGallery/default.aspx?Category=7&tabindex=2

WebCombo.NET 

解决方案 »

  1.   

    找JavaScript吧!那个是要钱的!或者做一个用户控件用TextBox和DropDownList切换,当然有兴趣你可以把它做成自定义控件!
      

  2.   

    需要的话留个E_Mail我给你发一个免费的!(dll类型的)原码不能给!
      

  3.   

    给我发一个吧,谢谢
    [email protected]
      

  4.   

    免费的呀,我也要:
    [email protected]
    THANKS!
      

  5.   

    能给我伐一个吗?谢谢[email protected]
      

  6.   

    可以摆一个textbox和dropdownlist,两个互相切换
      

  7.   

    我也要可以发一个过来吗
    [email protected]
      

  8.   

    其实可以用再增加一个DropDownList或TextBox来实现。
    思路:当需要用TextBox输入时将DropDownList这一列隐藏;
          当需要用DropDownList选择时将TextBox隐藏。
      

  9.   

    其实可以用再增加一个DropDownList或TextBox来实现。
    思路:当需要用TextBox输入时将DropDownList这一列隐藏;
          当需要用DropDownList选择时将TextBox隐藏这个思路就可以‘
      

  10.   

    我说说思路!现在还没有完成(完全),只能实现可以输入的DropDownList和按Text匹配。其实就是JavaScript,我想的家都见过JavaScript的这种控件吧!就是把它包装到自定义控件中就可以了!只是一个简单的包装!下个星期1我给各位发这个控件!不要着急呀!
      

  11.   

    TO:cuike519(cuike)
    怎么还没有发呢
      

  12.   

    #region usingusing System;
    using System.Collections;
    using System.Configuration;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.ComponentModel;using JI0.Common;
    using JI0.Web;#endregion[
    assembly:TagPrefix("JI0.Web.Controls","bigo")
    ]
    namespace JI0.Web.Controls {
    [
    DefaultProperty("Value"), 
    ToolboxData("<{0}:MyComboBox runat=server />")
    ]
    public class MyComboBox : Control, INamingContainer {
     
    ListBox listBox = new ListBox();
    RegularExpressionValidator regexVal = new RegularExpressionValidator();
    TextBox textBox = new TextBox(); ICollection dataSource = new int[] {2322,2,3};
    int width = 132;
    int maxLength = 50;
    string text = "0";
    bool required = false; string errorMessage = "请注意格式。";
    string regularExpression = @".*"; [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue(50),

    public int MaxLength {
    get{

    return maxLength;
    } set{
    maxLength = value;
    }
    } [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue(@".*"), ] 
    public string RegularExpression {
    get{
     
    return regularExpression;
    } set{
    regularExpression = value;
    }
    } [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue(false)

    public bool Required{
    get{
    return required;
    } set{
    required = value;
    }
    }

    [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue("请注意格式。"), ] 
    public ICollection DataSource {
    get{
     
    return dataSource;
    } set{
    dataSource = value;
    }
    }
    [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue("请注意格式。"), ] 
    public string ErrorMessage {
    get{
     
    return errorMessage;
    } set{
    errorMessage = value;
    }
    } [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue(""), ] 
    public string Value {
    get{
     
    return text;
    } set{
    text = value;
    }
    }
     
    [
    Bindable(true), 
    Category("Appearance"), 
    DefaultValue(50),
    Description("样式属性(宽度)width:50")

    public int Width {
    get{
     
    return width;
    } set{
    width = value;
    }
    }
     
    protected override void CreateChildControls() { Controls.Add(new LiteralControl("<div>"));
    Controls.Add(textBox);
    Controls.Add(listBox);

    textBox.ID = "txt";
    textBox.MaxLength = maxLength;
    textBox.Attributes["style"] = "width:" + width; listBox.ID = "slt";
    listBox.Attributes["style"] = "position:absolute; visibility:hidden;width:" + (width + 20);
    listBox.DataSource = dataSource;
    listBox.DataBind();
    listBox.Rows = (listBox.Items.Count > 10 ? 10 : listBox.Items.Count);
    listBox.Attributes["onBlur"] = "this.style.visibility='hidden'";
    listBox.Attributes["onChange"] = "document.all['" + textBox.UniqueID +
    "'].value = this.options[ this.options.selectedIndex ].text;"; string button = "<input  value=▼ type=button onclick=\"___MyComboBox_Click('" 
    + listBox.UniqueID + "')\">";
    Controls.AddAt(2, new LiteralControl(button)); regexVal.ErrorMessage = errorMessage;
    regexVal.ValidationExpression = regularExpression;
    regexVal.ControlToValidate = textBox.ID; if (required) { RequiredFieldValidator reqVal = new RequiredFieldValidator();
    reqVal.ErrorMessage = " **";
    reqVal.IsValid = false;
    // reqVal.ForeColor = System.Drawing.Color.Black;
    reqVal.ControlToValidate = textBox.ID;
    Controls.Add(reqVal);
    }  Controls.Add(regexVal); Controls.Add(new LiteralControl("<br>"));
    Controls.Add(listBox);
    Controls.Add(new LiteralControl("</div>")); string script = Html.TAG_START_SCRIPT + @"
    function ___MyComboBox_Click(selectId) {
    var ___MyCombox_Select = document.all[selectId];
    ___MyCombox_Select.style.visibility = 'visible';
    ___MyCombox_Select.focus();
    }" +
    Html.TAG_END_SCRIPT; if (!this.Page.IsClientScriptBlockRegistered("MyComboBox")) this.Page.RegisterClientScriptBlock("MyComboBox", script);   
    }
    }
    }