using System.Web.UI.WebControls; var options = new List{ "Option 1", "Option 2", "Option 3" }; DropDownList2.DataSource = options; DropDownList2.DataBind();
using System.Web.UI.WebControls; var selectedValue = DropDownList2.SelectedValue;
using System.Web.UI.WebControls; if (showDropDownList2) { DropDownList2.Visible = true; }The DropDownList2 control is a part of the System.Web.UI.WebControls namespace in C#.