无需任何按钮即可自动上传文件 [英] Upload file automatically once browse without any button

查看:244
本文介绍了无需任何按钮即可自动上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我要求浏览并上传文件。这里我们放一个fileupload控件并上传一个按钮,点击按钮就应该上传文件。



现在任务是一旦浏览就自动上传文件没有任何按钮点击事件的文件。



请给我一些输入来做同样的事情。



谢谢

Hi,

I have requirement to browse and upload the file. Here we put a fileupload control and to upload put one button, on button click the file should be uploaded.

Now the task is to upload the file automatically once browse the file without any button click events.

Please give me some inputs to do the same.

thanks

推荐答案

你可以试试

http:/ /www.uploadify.com/demos/ [ ^ ]


Hi,

I have solved this myself, modified the code as below


(document).on('change','#span class =code-pagedirective><% = FileUpload1.ClientID %> ',function(){
(document).on('change', '#<%= FileUpload1.ClientID %>', function () {


这篇关于无需任何按钮即可自动上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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