Hi, thanks for any help here:
SqlCommand cmd = new SqlCommand("SELECT categories FROM catalog"
conn);
rdr = cmd.ExecuteReader();
String temp;
while (rdr.Read())
{
temp = rdr[0];
Response.Write(temp.Split(":"));
}
Doesn't work. I get can't convert object to string, and I'm not real
sure I right here anyway. I think I need another function.
I have a category column in my database that looks like this:
column1
------------
Accessories:Women's Socks:Women's Socks - Athletic
It is a colon delimited list in the column. Now I have to split it
back up. Can anyone tell me how to split that column when I retrieve
that row? Do I send:
Accessories:Women's Socks:Women's Socks - Athletic
to another function where it iterates through each value (to do
whatever it is I need done)? Thanks for any help.