I am trying to set a variable to the value in a dataset column/row
here is the code that i have
string delimStr = ",.:";
char  delimiter = delimStr.ToCharArray();
int x = 10;
string locations = dsLogins1.Tables.Columns["locations"].ToSring();
string  splitlocations = locations.Split(delimiter , x);
foreach (string s in splitlocations)
The locations value that is held in the table is something like 23,100,241,221
When I do a debug and view the variable value of locations, it just is a string "locations"
How do I set the value of this to the variable?