I have a listbox that gets loaded from a couple of different places on my web form.
I would like to put the code to load the listbox in one place, rather than have two copies of it.
The problem is, I can't figure out how to reference the listbox control successfully from within a procedure.
Would anyone know how to do this?
My code looks like this:
private static bool LoadSubscriptionListBox(System.Web.UI.Page Page)
{
bool bReturn = false;
// Clear the listbox
lbSubscriptionList.Items.Clear();
// Load the listbox
...
}
View Complete Post