在ASP.NET中将CSV文件上传到SQL Server [英] Uploading a csv file to sql server in asp.net
问题描述
亲爱的大家,
我曾使用该代码在项目中上传xls文件.现在我需要一个代码来上传csv文件...谁能给我代码或一些链接...
我已经通过下面的链接d获得了代码,看起来不错.我希望它能起作用.但是我不明白如何使用
UploadButton_click,Plz中使用的CsvDataReader类的名称空间,请查看以下链接:
http://www.csvreader.com/code/cs/upload_csv.php [ ^ ]
我收到错误消息,说:找不到CsvDataReader的类型或名称空间.请帮助我.
谢谢和问候,
Raj
Hi Dear All,
I had used the code to upload an xls file in my project. Now I need a code to upload the csv file... Can any one plz give me the code or some links...
I have got the code through d below link that seems pretty good. I hope it will work. But I am not able to understand how to use the
namespace for CsvDataReader class which is used in UploadButton_click, Plz check out the link below:
http://www.csvreader.com/code/cs/upload_csv.php[^]
I am getting error msg saying : Type or namespace for CsvDataReader could not be found. Plz assist me on this.
Thanks and Regards,
Raj
推荐答案
^ ]
您可以在此处获取解决方案.
http://www.dotnetspider.com/forum/120485-Uploading-csv-file-sql-server-database.aspx[^]
u can get solution here.
这篇关于在ASP.NET中将CSV文件上传到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!