In your aspx page declare a dropdownlist as bellow.
<asp:DropDownList ID="MyDropDown" runat="server">
In code behind add the option to the fropdownlist like bellow.
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { MyDropDown.Items.Add(new ListItem("Your item name","Your item value")); } }
Question and answer is powered by AnsPress.io