I have this string here:
String FileNameOrginal = "lighthouse-126.jpg";
and I am trying to split the string into 2, seperating it with "-"
I have tried the following, but I get a syntax error on the Spilt:
String FileNameOrginal = drProduct["productHTML"].ToString();
string[] strDataArray = FileNameOrginal.Split("-");
Please Help, I do not understand what I am doing wrong.