使用带有进度栏的Ajax选项卡容器上载文件 [英] File Upload using Ajax tab Container with Progress Bar

查看:86
本文介绍了使用带有进度栏的Ajax选项卡容器上载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



目前,我在上传文件时遇到问题,并且需要您的专家意见或代码(如果可能的话).

我的问题是
我想使用Ajax从网页上载文件到数据库.
我当前在tabcontainer中有3个tabpanel,在一个使用update Progress和Update面板尝试上载文件的tabpanel中(使用FileUpload控件).但是FileUpload.hasFile返回"false",因此无法上载文件.

我真正需要做的是单击加载按钮(也在UI上),将文件上传到数据库中,在此期间,进度条应出现在屏幕上,同时应该发生Ajax回发."

Hi ,

Currently i am facing an issue while uploading a file and need ur expert comments or code(if possible) for the same.

My Problem is that
"I want to upload a file into the database from a webpage using Ajax.
I am having 3 tabpanels currently in the tabcontainer and in one tabpanel using the update Progress and Update panel trying to upload the file(using FileUpload control).But FileUpload.hasFile is returning ''false'',So unable to upload the file.

What i exactly need to do is " to upload the file into database on clicking the load button(Also on UI) and during that time the Progress Bar should come on the screen while a Ajax Postback should occur."

推荐答案

看看下面的链接.

http://forums.asp.net/p/1105208/1689084.aspx
Have a look at below link.

http://forums.asp.net/p/1105208/1689084.aspx


感谢您的答复.但这不能解决我的问题.
由于我需要在tabcontainer中的文件上传过程中使用进度条.
Thanx for ur reply.But this does not solve my problem.
As i required the progess bar working during the file upload in the tabcontainer.


对于您的解决方案,如果您使用Ajax更新面板,则请将文件上传控件放在更新面板之外... .

它将解决您的问题...
For your solution if you use Ajax Update Panel then please put your file upload control out side that update panel....

it will solve your problem...


这篇关于使用带有进度栏的Ajax选项卡容器上载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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