Convert CSV string in ASP.NET

1143065 pts.
Tags:
ASP.NET
CSV
For ASP.NET - can I convert a CSV string into a string[] or possibly a list? In the data - there are no commas if that makes it easier. Thank you!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    So, it is a CSV string, but doesn't have commas?

    I'm lost...
    84,745 pointsBadges:
    report
  • carlosdl
    Well, assuming that you mean no commas inside the data for each column, the easiest way would probably be using the split function.

    Otherwise, you might need to use regular expressions, or some third party library for handling CSV.
    84,745 pointsBadges:
    report
  • ToddN2000
    Same here.. a CSV with no commas?

    It might help if you can post a sample of your code and format the data is in and what you are expecting the results to look like.
    132,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: