As I read the question since I have similiar issue about the backslash.
On my webform textbox, I input some thing on like VN\Mary
.
I would like to Split this textbox.Text as 2 words.
the Split worked very well in VB.Net , after I moved to C#, it starts to have problem.
Would anyone give me some advice ?
I even tried textbox.Text.ToCharArray()
but it does not work if I use VN\Thomas
.
I would appreciate your advice.
Thank you.
CodePudding user response:
string[] words = textbox.Text.Split('\\');
EDIT: escape the backslash