I'd like to allow a user to be able to enter a list of IDs into a textarea and allow the IDs to be seperated by whitespace such as a new line as well as by commas.
Then I'd like to convert that into an int[] or throw an error if the string is bad: contains letters, decimals, etc.
But I'm having trouble working it out.
Can anyone give an example of how to do this?
I'd apprecuate any help.