Function: After entering the data in the control, press the space bar or the Enter key to retrieve the data items related to the current input data. (Similar to the index function of Jinshan Words) There are three shortcomings (no solution to a good solution) 1. You must add a HTMLINPUTHIDEN control named "Butname" to the control before calling the control, and add a write .js file. 2. When you select the data item in the data list, you can only select the keyboard by clicking. 3. The top, Left of the list box of the display data must be manually set. If these three problems can accommodate, you are very welcome to use. The source code is as follows: coustom.vb ------------------------------------------------------------------------------------------------------- -------------------------------------------------- ------------------------- Imports SystemImports System.Webimports System.collections.Specialized
Namespace Good_hy public class coustom inherits control imports ipostbackdatahandler, iPostbackeventhandler, InamingContainer
Private _Text As String Private _top as integer private _datasource as dataatable private _datafield as string
Public property text () AS string 'Access, returning or sets control of the TEXT content GET DIM VAL AS STRING VAL = Page.Rext = Val Return_Text End Get Set (byval) Value as string) _text = value page.registerStartupScript (CSTR (RND () * 100), "