I have a function called populateList(). I want it to take a reference to a Checkboxlist or a Dropdownlist, query the DB and fill the referenced list with values.
Is it possible to generalize the function to take a Checkboxlist or a Dropdownlist depending on what you pass?
Or, do I have to write two different functions, one for the Checkboxlist and one for the Dropdownlist?
I guess the my question is if theres a common object that covers both, like populateList(ref GeneralList list)
Thanks in advance!
View Complete Post