本文介绍了将数据从数据集导出到csv格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个aspx页面,我将数据库中的数据加载到数据集中。
我也有一个用户下载单击超链接时加载的数据的选项。
我需要将数据集中存储的数据导出为CSV格式。
当用户点击超链接时,我应该向他显示csv文件所在的文件。你们中的任何人都可以给我C#所需的代码吗?
提前谢谢。
Hi all,
I hav an aspx page where I load the data from database into a dataset.
Also I have an option for the user to download the data loaded when he clicks on a hyperlink.
The thing is I have a requirement where I need to Export the data stored in dataset to CSV format.
And when user clicks on the hyperlink I should show him the file where the csv file is present.Can anyone of you give me the code required in C#?
Thanks in advance.
推荐答案
这篇关于将数据从数据集导出到csv格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!