在asp.net中的excel应用程序中需要帮助 [英] need help in excel application in asp.net

查看:85
本文介绍了在asp.net中的excel应用程序中需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须创建这样的应用程序。



我需要将excel文件作为输入并将其数据存储在sql db中。



如果我在excel文件中修复了来自用户的列,我可以这样做。如果我们从excel表中获取动态列,如何管理这个。



假设我们第一次获得带有id和名称的excel文件,

next时间用户发送ID,姓名,电话,地址等..





plzz建议方式..

I have to create a application like this.

I need to take excel file as input and store its data in sql db.

I am able to do this if i have fixed no of column coming from user in excel file. How to manage this if we get dynamic column from excel sheet.

Suppose 1st time we get excel file with id and name,
next time user send id , name , phone , address etc..


plzz suggest the way..

推荐答案

请先阅读我的评论。



看看这里:如何使用ADO.NET使用Visual Basic .NET在Excel工作簿中检索和修改记录 [ ^ ]。不是C#,但上面的文章显示了一个想法;)



更多:

使用ADO.NET处理Excel文件 [ ^ ]

ADO.NET托管提供商和DataSet ... [ ^ ]

演练:使用Excel中的脱机SQL Server数据 [ ^ ]



示例代码:

在ASP.NET中导入/导出Excel工作表(CSASPNETExcelImportExport) [ ^ ]
Please, read my comment first.

Have a look here: How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook With Visual Basic .NET[^]. Not C#, but above article show an idea ;)

More:
Using ADO.NET to work with Excel files[^]
ADO.NET Managed Providers and DataSet...[^]
Walkthrough: Working with Offline SQL Server Data in Excel[^]

Example code:
Import/export Excel worksheet in ASP.NET (CSASPNETExcelImportExport)[^]


这篇关于在asp.net中的excel应用程序中需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆