I'm using ASP.NET 2005 with SQL Server. I need to create an array to store 2 values which are StartDate and EndDate. The dates will be used as stored procedure parameters to pass to SQL Server. I need to store the StartDate and EndDate into the array. I created an ArrayList, but was not sure how to go about getting the EndDate value. Do I concatenate the StartDate and EndDate and then retrieve the values? Could someone show me an example of creating the ArrayList and then retrieving both values using an iteration because I could have more than one StartDate and EndDate values? My code so far is as follows:
‘Assumption: The ArrayList gets its data by an ADO.NET DataTable.
Dim DateRange As String
DateRange = rdrStartDate + " " + rdrEndDate