CS0123: No overload for ‘addItems’ matches delegate ‘System.EventHandler’
protected void addItems(System.EventHandler e)
{
DropDownList numDropDown = (DropDownList) Page.FindControl("DropDownNum");
foreach (numOption option in numConfigManager.numConfig.numOptions.Options)
{
numDropDown.Items.Add(option.Value);
}
}
You haven’t shown anything called
printListItemsso it’s not clear where that comes in, but I suspect you just want to change the signature of your method to:… although you should also rename it to
AddItemsto follow .NET naming conventions.