Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Putting Sharepoint List data with comma in to csv file

$
0
0

I have a Sharepoint list which has some coulmns, 3 of which are columns related to address (eg Add1, Add2 and Add3). I am pulling this data from Sharepoint list and putting it in CSV (through C# code). And now I face an issue:

These address columns have comma values in them, like

Add1: House no1, street1

Add2: Near stop1, City1

Add3; State, Country

Now once csv is generated, it splits the Add1's data in to 2 - House no1 comes under Add1 and street1 goes under Add2. Similarly for address 2 and 3's values gets shifted. and data is topsy turvy.

How do I handle this issue?


Viewing all articles
Browse latest Browse all 11508


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>