Learn to use controls-comboxbox in Asp.net-from simple start (V)

Source: Internet
Author: User

Presumably, the ComboBox in winform makes it easy for friends who often use the drop-down list. It has many simple functions. It not only displays data items in the drop-down box, but also can be input like textbox, the most advanced feature may be the auto-matching feature. However, in webform, only one dropdownlist can display the drop-down data items. However, if you want to input some content, it will be suspended, let alone automatically match the data items based on the input content. I searched for it in Google. Some of my friends added a ListBox through a textbox and wrote some JavaScript code to simulate ComboBox through layer control. The function was implemented, but the goal was not very good, if this is not done, it will be misplaced. As a beginner, I can try to write more and learn more. I am relatively lazy, so I always like to use controls developed by others. Finally, let's get back to the topic. Today, we will introduce metabuilders to our friends. In a few simple steps, we can get the desired ComboBox. the following is a simple example. I hope to give some help to my friends who have never used other Widgets. I also take this opportunity to put my essays on the homepage for the first time, if you have any suggestions, I will immediately withdraw from my hometown.

The procedure is as follows:

1. Download The metabuilders control (including BLL files, data files, instructions for use, etc.) http://www.codeplex.com/metabuilderswebto decompress the file;

2. open your vs (my version is 2005 and I don't know if there is any problem with other versions, I guess there is no problem with other versions), open the toolbar, right-click the blank area and select "add tab" (a new one is recommended) and name it "metabuilder". Under this option, right-click "select items" and select "Browse" under the pop-up window. Select metabuilders In the downloaded file. webcontrols. DLL file.

3. Select the ComboBox in the toolbar and drag it to the desired position. OK, just like the control that comes with vs. The rest of the work depends on you.

 

There are also some good controls in this control group, waiting for more friends to discover the mysteries. The following lists more control names and brief descriptions: (copied from the official homepage)

 

  • Adsense ads-Controls to show your Google Adsense ads.
  • Checkedlistbox-A ListBox with checkboxes for selection
  • ComboBox-The classic type-or-Choose Control.
  • Datacontrolfields-Three fields for the gridview,BooleanfieldFor Boolean values (better than the checkboxfield ),LookupfieldFor ID/key data to a child datasource, andSelectorfieldFor row selection using checkboxes or radiobuttons.
  • Dialogwindow-A set of controls which make creating dialog windows a lot easier
  • Duallist-Move items back and forth between two listboxes to select the items
  • Dynamiclistbox-A base control which stores changes to its list of items
  • Expandingbuttons-Hide and show a target control
  • Expandingpanel-Hide and show the content of the Panel
  • Fileupload-A nicer wrapper than the builtin for basic file uploading
  • Globalradiobutton-A radiobutton which has a page-wide, cross-namingcontainer group property
  • Grouped listsAKA groupedlistbox and groupeddropdownlist enabled support of the HTML option grouping in extensions of the standard data controls.
  • Listlink-A non-visual control which helps you create parent/child relationships between list controls
  • MultifileuploadIs a nice compact UI that lets the user select more than one file to upload to the server.
  • MultiviewbarIs now free and supported ded in the library, source and all.
  • Oneclick-Non-visual control that helps the page developer avoid the dreaded double-button-click
  • Polling-Controls and framework for showing users simple web polls. uses a provider framework, with built-in providers for access and SQL Server.
  • Parsingcontainer-Control which parses a string of Server Control Markup at runtime
  • Querycall-Component which maps querystring parameters to methods in the codebehind
  • Remotewindow-Easy popup windows
  • Resizemonitor-Causes a PostBack on browser-resize, if you need to keep track of dimensions in your app
  • Roloverlink-The old mouse-over-out effect on images, made dead-easy
  • Runtimetemplate-Makes it easier to create templates for controls at runtime in code
  • Updown-The classic windows up/down control for numeric entry.

In addition, the instructions are in English. Good English friends can show their skills.

 

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.