Help! I have a list of records in Excel that I'm copying/pasting into an ASP.NET web page. From there, the C# code parses the records.
This code below works for one of the names, but not another. If, however, I copy/replace the empty space in Excel with a typed space or if I actually backspace and type the name into the webpage with the keyboard, it does work.
It's as if Excel has some odd ghost character in the file I was given for the space on this record. I've pasted in Notepad++ and showed all characters, and I don't see anything special here that's different among the records.
This one works and detects the spaces: Carolyn Bentivegna
This one does not: Allan D. Blake
if (fullName.IndexOf(" ") > -1)