ASP. NET editable input automatically matched drop-down box,. net drop-down box

Source: Internet
Author: User

ASP. NET editable input automatically matched drop-down box,. net drop-down box

1. Reference dll files

2. Apply this control to the aspx foreground page

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>

Residential Area:

<Telerik: radComboBox RenderMode = "Lightweight" ID = "DropDownList1" AllowCustomText = "true" AutoPostBack = "True" runat = "server" Width = "110px" Height = "400px" EmptyMessage = "please enter the cell name "OnSelectedIndexChanged =" inline "OnItemsRequested =" inline "MarkFirstMatch =" true "inline =" true "HighlightTemplatedItems =" true "DropDownCssClass =" exampleRadComboBox "> </telerik: radComboBox>

3. Bind The aspx. cs file to the drop-down box and select data from the drop-down list.   

this.DropDownList1.DataSource = (new BLL_TArea()).GetAllAreaInfo();   this.DropDownList1.DataTextField = "AREANAME";   this.DropDownList1.DataValueField = "AREAGUID";   this.DropDownList1.DataBind();   DropDownList1.Items.FindItemByValue(BaseClass.Utility.Cookie.GetCookie("AreaGuid")).Selected = true;

Iii. Search Results

Before retrieval:

After retrieval:

The above is a small series of ASP. NET editable input automatic matching drop-down box, hope to help you, if you have any questions, please leave a message, xiaobian will reply to you in a timely manner. Thank you very much for your support for the help House website!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.