I had seen many solution to export csv file using either StringBuilder and Foreach. but nobody can describe what will happens when following condition will come?
But my question is what happens when contains comma(,) into field value? I want export data with comma(,) value
Before giving answer please read carefully my question. For more help i giving you an example table as given below.
Example table:
Field-1 Field-2 Field-3 Dummy data 27 Oct, 2012 Mark,David,Nancy etc... Dummy data 27 Oct, 2012 Mark,David,Nancy etc... Dummy data 27 Oct, 2012 Mark,David,Nancy etc... Dummy data 27 Oct, 2012 Mark,David,Nancy etc... Dummy data 27 Oct, 2012 Mark,David,Nancy etc... And so on......
I want export above data into .csv file.
Also i want export exact value.
Not with double quote e.g "27 Oct, 2012" NOT VALID