带进度条的文件上传 [英] file uploads with progress bar
本文介绍了带进度条的文件上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好的,
我知道如何使用< input
type =" file"在asp.net上传文件RUNAT = QUOT;服务器">控制。我不知道
怎么做才能监控上传的进度,这样我就可以向最终用户显示进度条等等。
任何人有任何理想或者可以给我一个样品吗?
谢谢,
托德
解决方案
我认为没有一种简单的方法可以做到这一点。有些公司出售
组件,上传进度条。
我相信SoftArtisans就是其中之一,还有其他一些。
访问 www.asp.net ,也许可以在Google上搜索找到他们。
" Todd Denlinger" <至** @ psiware.com>在消息中写道
news:01 **************************** @ phx.gbl ... < blockquote class =post_quotes>好的,
我知道如何使用< input
type =" file"在asp.net上传文件。 RUNAT = QUOT;服务器">控制。我不知道
怎么做是监控上传的进度,以便我可以向最终用户显示进度条等等。
任何人有任何理想或可以指点我的样品吗?
谢谢,
Todd
我不是认为有一种简单的方法可以做到这一点。有些公司出售
组件,上传进度条。
我相信SoftArtisans就是其中之一,还有其他一些。
访问 www.asp.net ,也许可以在Google上搜索找到他们。
" Todd Denlinger" <至** @ psiware.com>在消息中写道
news:01 **************************** @ phx.gbl ... < blockquote class =post_quotes>好的,
我知道如何使用< input
type =" file"在asp.net上传文件。 RUNAT = QUOT;服务器">控制。我不知道
怎么做是监控上传的进度,以便我可以向最终用户显示进度条等等。
任何人有任何理想或可以指向我的样品吗?
谢谢,
Todd
感谢Marina
您可能是对的,进度条可能相当复杂。
但是,看起来您可以使用
javascript打开另一个窗口和
< form id ="上传"方法= QUOT;交" runat =" server"
onsubmit =" OnUpload()">
然后在上传后使用
< body ms_positioning =" FlowLayout" onunload =" OnUnload()">
它不会是一个进度条,但你会有一个动画
gif至少。
问候,
托德
" Marina" < NOSPAM>在消息中写道
新闻:OJ ************** @ TK2MSFTNGP10.phx.gbl ...我不是认为有一种简单的方法可以做到这一点。有
公司出售带有上传进度条的组件。
我相信SoftArtisans就是其中之一,而且还有一些
其他人。访问 www.asp.net ,也许可以在Google上搜索,找到
吧。
Todd Denlinger <至** @ psiware.com>在消息中写道
新闻:01 **************************** @ phx.gbl ...好的,
我知道如何使用< input
type =" file在asp.net上传文件。 RUNAT = QUOT;服务器">控制。我不知道
怎么做是监控上传的进度,以便
我可以向最终用户显示进度条等等。
任何人有任何理想或者能指出我的样品吗?
谢谢,
Todd
Ok,
I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don''t know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.
Anyone have any ideals or can point me to a sample?
Thanks,
Todd
解决方案
I don''t think there is an easy way to do this. There are companies that sell
components with progress bars for uploads.
I believe SoftArtisans is one of them, and there are a few others as well.
visit www.asp.net, and maybe search on google to find them.
"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...Ok,
I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don''t know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.
Anyone have any ideals or can point me to a sample?
Thanks,
Todd
I don''t think there is an easy way to do this. There are companies that sell
components with progress bars for uploads.
I believe SoftArtisans is one of them, and there are a few others as well.
visit www.asp.net, and maybe search on google to find them.
"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...Ok,
I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don''t know
how to do is monitor the progress of the upload so that I
can show the end-user a progress bar, or something.
Anyone have any ideals or can point me to a sample?
Thanks,
Todd
Thanks Marina
You may be right, a progress bar may be fairly complex.
However, it looks like you can open another window using
javascript and
<form id="Upload" method="post" runat="server"
onsubmit="OnUpload()">
then closing the javascript window after the upload by using
<body ms_positioning="FlowLayout" onunload="OnUnload()">
It wouldn''t be a progress bar, but you''d have an animated
gif at least.
Regards,
Todd
"Marina" <nospam> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...I don''t think there is an easy way to do this. There are companies that sell components with progress bars for uploads.
I believe SoftArtisans is one of them, and there are a few others as well. visit www.asp.net, and maybe search on google to find them.
"Todd Denlinger" <to**@psiware.com> wrote in message
news:01****************************@phx.gbl...Ok,
I know how to upload a file in asp.net using the <input
type="file" runat="server"> control. What I don''t know
how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something.
Anyone have any ideals or can point me to a sample?
Thanks,
Todd
这篇关于带进度条的文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文