I am not following how to initialize a class constructor which accepts the names of DropDowns in an array as below:
public FillDropDowns(DropDownList[] DropDownNameArray)
{
PopulateDropDown(DropDownNameArray);
}
I have a class named FillDropDowns with a method PopulateDropDown.
From my Web Form, I want to create an instance of this class and pass the names of DropDowns.
1 Answer