Link to home
Start Free TrialLog in
Avatar of chicabow
chicabow

asked on

C# web application using an array instead of a database table

I have an application that I have built and my code behind is generating an interface and part of that interface there is a number location. I want to display about 20 different instances of this interface and each instance to have a specific number. There is no pattern with these numbers they are random numbers. I know I could store these numbers in a one column table and loop through each record and display the interface with the number for each record. but I don't ahve access to a database for this application so I figure I would use an array (this is a temporary project).
So how do I implement an single column array in C#. Below is a sample of the array I would like to use.
How in my code would I loop through each 'record' in the array while looping and displaying an instance of the interface with the 'number' from the array

2
4
5
7
8
22
33
34
66
77
99
120
ASKER CERTIFIED SOLUTION
Avatar of photowhiz
photowhiz
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial