4
Answers

Getting Database data into an array

sachi vasishta

sachi vasishta

15y
3.6k
1

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)