ASP. NET editable, enter the drop-down box of the automatic Match option, and the. net drop-down box

Source: Internet
Author: User

ASP. NET editable, enter the drop-down box of the automatic Match option, and the. 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 = "enter the cell name" OnSelectedIndexChanged = "dropdownlist+selectedindexchanged" OnItemsRequested = "dropdownlist+itemsrequested" MarkFirstMatch = "true" EnableLoadOnDemand = "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;

 

Iv. Search Results

Before retrieval:

After retrieval:

 

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.