复制和粘贴从Excel US preadsheet到ASP.NET控件 [英] Copy and Paste from an Excel Spreadsheet to a ASP.NET Control
问题描述
我希望能够从一个Excel US preadsheet一个ASP.NET Web表单上复制一个行五列一个表结构。这个想法是保持数据从Excel确切的行和列在表像的ASP.NET Web表单上的控制。然后,我希望能够通过一个buttoon命令点击到ASP.NET控件中的内容保存到数据库中。什么ASP.NET控件会允许我这样做吗? GridView的和DataGrid中似乎并没有让我这样做。谢谢你。
I would like to be able to copy one row and five columns from an Excel spreadsheet to a table like structure on a ASP.NET web form. The idea is keeping the data in the exact row and column from Excel to the table like control on the ASP.NET web-form. Then I want to be able to save to the contents of the ASP.NET control to a database by a buttoon command click. What ASP.NET control would allow me to do this? Gridviews and datagrids don't seem to allow me to do this. Thanks.
推荐答案
您的要求正好与我的比赛,我发现这里的解决方案。你可以尝试tthis链接<一个href=\"http://blogs.msdn.com/b/jebarson/archive/2010/06/29/copy-and-paste-excel-or-clipboard-data-to-gridview-in-asp-net.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/jebarson/archive/2010/06/29/copy-and-paste-excel-or-clipboard-data-to-gridview-in-asp-net.aspx如果您需要任何帮助随意问。
Your requirement exactly matches with mine and i found solution here. you can try tthis link http://blogs.msdn.com/b/jebarson/archive/2010/06/29/copy-and-paste-excel-or-clipboard-data-to-gridview-in-asp-net.aspx if you need any help feel free to ask.
这篇关于复制和粘贴从Excel US preadsheet到ASP.NET控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!