if (ctrl is DropDownList) { items.Add(Convert.ToInt32(((DropDownList)ctrl).SelectedValue)); }