I have a stored procedure that returns a set of integers. I need help populating an ArrayList of these results in a C# (VS 2005) web application.
I realize this is probably a very simple process, but I don't have the skills to it, nor the vocabulary to research it, apparently.
My assumptions are this DataTable is being populated properly:
public static DataTable GetAllVendors()
{
OleDbCommand cmd = Data.GetCommand(Configuration.DatabaseOwnerPrefix + ".GetAllInformationAndHelpVendorIds", Connections.MyDbConnection);
return Data.RunCommand(cmd).Tables[0];
}
What I don't know is how to get the results back into an ArrayList or another datatype that may be evaluated with the Contains() method.
Edit: ArrayList is an older technology, and I'll take the advice of not using it. Thanks.