English 中文(简体)
从Excel电子表格复制并粘贴到ASP.NET控件
原标题:Copy and Paste from an Excel Spreadsheet to a ASP.NET Control

我希望能够将Excel电子表格中的一行五列复制到ASP.NET web表单上的类似表格的结构中。其想法是将Excel中的数据保持在精确的行和列中,并保存到ASP.NET web窗体上类似表格的控件中。然后,我希望能够通过点击按钮命令将ASP.NET控件的内容保存到数据库中。什么ASP.NET控件允许我执行此操作?网格视图和数据网格似乎不允许我这样做。谢谢

问题回答

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.

你的要求和我的完全一致,我在这里找到了解决方案。您可以尝试此链接http://blogs.msdn.com/b/jebarson/archive/2010/06/29/copy-and-paste-excel-or-clipboard-data-to-gridview-in-asp-net.aspx如果您需要任何帮助,请随时询问。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签