4
Answers

Getting Database data into an array

Ask a question

int k = 0;

string[] alloTimeSlotsStr;

while (drr1.Read())

{

alloTimeSlotsStr[k] = drr1.GetValue(0).ToString();

k++;

}

giving me error

i want to get the values from database and put it inside string array how can i do it please help


Answers (4)