开发者

Copy and Paste from an Excel Spreadsheet to a ASP.NET Control

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开发者_StackOverflow中文版 ASP.NET control would allow me to do this? Gridviews and datagrids don't seem to allow me to do this. Thanks.


From what I have seen, you have to parse the content of the clipboard yourself (comma separated) and place that in the cells of the gridView. I would like to know if there is an other way.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜