Asp.Net网站中的文件上传问题 [英] File Upload Problem in Asp.Net Website

查看:83
本文介绍了Asp.Net网站中的文件上传问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ajax fileupload和persist file = true.fileupload控件上载任何文件大小,并且当我在本地主机上运行项目时数据库会更新.

但是,当我将相同的项目部署到在线服务器时,fileupload控件会显示该文件,但数据库不会更新并显示先前的文件.


请帮助

I am using ajax fileupload with persist file=true.The fileupload control uploads any file size and the database gets updated when i run the project on my localhost.

But when the same project i deployed to online server the fileupload controls shows that file but the database doesn''t gets updated and shows the previous file.


Pls help

推荐答案

听起来像您的数据库连接字符串可能存在问题.确保部署中的连接字符串与生产数据库正确.
Sounds like a possible issue with your connection string to your database. Make sure that your connection string in your deployment is correct for your production database.


这篇关于Asp.Net网站中的文件上传问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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