So we have all had to clear out a drop down list but what I would like to do is pass the name of a control to a method that would then clear out the items in the drop down list.
For example...
private void ClearDDLS(string nameOfControl)
{
[nameOfControl].Items.Clear();
}
How can I make this method generic. I suppose using Reflection but does anyone have an example?
...
Go to the complete details ...