Hi people,

Does anybody know of any code, or know how, to create a CSV file from a DataTable?

Basically I just want to pass a DataTable to a common function, with a file name, and then than function spit out a csv file (named as per the parameter) for download.

Hope you can help. Thanks in advance for your replies.

Regards,
Chris