Home >Backend Development >C#.Net Tutorial >.NET compound control input drop-down control
Use System;
Use System.Collections.Generic;
Use System.ComponentModel;
Use System.Text;
Use System.Web;
Use System.Web.UI program;
Use System.Web.UI.WebControls; Used in
System.Collections;
namespace QC_Control
{
///
///Customized input drop-down box class
///
[ToolboxData("< ;{0}:CustomInputDropdownControl RUNAT=Server> DropDownList(); // Dropdown box
Private TextBox TxtBox = new TextBox();
_values of private Hashtable = new Hashtable(); //The value used to bind the drop-down box
///
Value reference variable setting/getting encapsulated method ///
Items that expose Hashtable ViewState of {
Value"] = new Hashtable();
. ”] = value; }
}
Public CustomInputDropdownControl ()
///Rewrite the control class Rendering method body
///
. ID = "DDL" + base.ID;
TxtBox.ID = "TXT" using use with use with use using using using through using ‐ ‐ ‐ --- in print, in, " ='0'>