For handling support queries, i am trying to create a small interface that picks a newline delimited string of text from an ASP multiline textbox and gives the output with single quotes and comma adjusted to the text For Example
A1234
A1235
A1236
Would become something that can go into a 'SQL In Clause'
'A1234',
'A1235',
'A1236'
How can I improve the below code to achieve the same?
string[] arr = txtBox.Text.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
I am aware of the excel formula (="'"&A1&"',") for the same but excel is not available on few machines.