So i have this code
sb.AppendLine( "var nameSplit = users[i].split('\');");
The sb.AppendLine is C# and the bit inside is JavaScript, I am trying to split users[i] so that I can strip out the Domain name, unfortunately this does not work I have also tried
sb.AppendLine( "var nameSplit = users[i].split('\\');");
It doesn't make much sense really, I have done an alert of nameSplit and it shoes that it splits the text on every letter as though the \ escapes nothing, the second example doesnt work at all when I would expect that to and as javascript on its own it works fine.
Any help appreciated.
Thanks
Matt