将Excel上载到GridView时出现未指定的错误 [英] Unspecified Error while uploading Excel to GridView

查看:84
本文介绍了将Excel上载到GridView时出现未指定的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中获得一个问题。



将Excel文件通过代码上传到GridView,将错误视为未指定的错误。



相同它几天前在现场服务器上工作,现在它也在测试服务器上工作。



但是,它不是在现场工作。



我只是拉动数据并在gridview中显示。这里没有数据库连接。



可能出现的问题是什么??

解决方案





以下网址包含将excel数据上传到gridview的代码。



< a href => 如何使用c#将excel文件导入到asp.net中的网格视图并保存网格视图到数据库sql server 2005 [ ^ ] < br $>


最好的问候

Muthuraja


当数据连接到óledb连接时,你的错误就会出现..

I am getting one porblem in asp.net.

while uploading Excel file into GridView through code, getting error as "Unspecified Error".

Same it was working in live server few days back and also it''s working in test server now .

But, it''s not working in live.

i am just pulling the data and display in gridview. here there is no database connection.

what is the possible problem could be...?

解决方案

Hi,

The below URL, has the code to upload excel data into gridview.

How to import excel file to grid view in asp.net using c# AND save grid view to database sql server 2005[^]

Best Regards
Muthuraja


your error will come when the data connect to óledb connection..


这篇关于将Excel上载到GridView时出现未指定的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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