|
| |
| PLBlum | Asp.Net User |
| Re: How to create a custom dropdownlist webcontrol in C# | 1/24/2005 7:13:57 PM |
0 | |
|
1. The ASP.NET DropDownList creates the HTML tag <select>. The browser has a specific feature set for <select> and this imposes real limits.
2. The work you will do is client-side code using JavaScript. You will learn how to use DHTML (the document object model of Internet Explorer) and if you want Mozilla/FireFox support, DOM.
3. You will intercept keypress events using the onkeypress event handler available on <select>. Your code will look at event.keyCode to find out what key was pressed. Then you will take whatever action needed to consolidate the keystrokes into a string, search the <select> tag's <option> list to find a match then set its selectedIndex property.
Recommendation: ASP.NET has a rich variety of third party controls that are debugged and enhanced based on user feedback. Some are free. You can find many nice enhancements for your user interface, like menus, datepickers, validators, datagrids, and richtextboxes. There are several improved dropdownlists, usually characterized as "comboboxes". You can find them at this site's Control Gallery, www.123aspx.com, and www.411asp.net. --- Peter Blum Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package www.PeterBlum.com |
|
| |
Free Download:
Books: Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008 Sams teach yourself C# Web programming in 21 days Authors: Phil Syme, Peter Aitken, Pages: 535, Published: 2001 PROFESSIONAL C# 2005 Authors: Christian Nagel, Bill Evjen, Pages: 1540, Published: 2005 Pro ASP.NET 2.0 in VB 2005: special edition. Authors: Laurence Moroney, Matthew MacDonald, Pages: 1360, Published: 2006 C# Web development with ASP.NET Authors: Jose Mojica, Pages: 435, Published: 2003 Web:How to create a custom dropdownlist webcontrol in C# - ASP.NET Forums I want to create a custom dropdownlist with type-ahead functionality embedded in it. So, I need to inherit the DropDownList class from the ... DropDownList.BorderColor Property (System.Web.UI.WebControls) For information about how to use custom server controls, ... < title>Custom DropDownList - BorderColor - C# Example The Code Project AJAX Custom DropdownList Apr 10, 2006 ... Custom DropdownList that utilizes AJAX to populate its content and implements .... Steve C. Orr - Learn how to create a ComboBox web control ... Creating a Custom DropDown Control - ASP.NET - DMXzone.COM Creating a Custom DropDown ControlWhen working with a true OO (Object ... Note: The custom DropDownList component will be implemented in both VB.NET as C#. ... Your custom web control therefore, is simply a class definition which ... Creating a Custom .NET Web Control With Events Freeware Download ... Apr 22, 2009 ... HOW TO: Create a Web Control with an Expandable Property in the ... for creating your own customizable datagrid control using C#.NET. ... The author shows this by adding the server nodes to the dropdown list box control. ... How to create a custom dropdownlist webcontrol in C# - ng.asp-net ... How to create a custom dropdownlist webcontrol in C#, > ROOT > NEWSGROUP > Asp. Net Forum > windows_hosting.hosting_open_forum, ... |
|
|
|