调用Fileupload单击事件以在asp.net中上传文件 [英] Call Fileupload click event to upload a file in asp.net

查看:390
本文介绍了调用Fileupload单击事件以在asp.net中上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,
我有一个可以上传多个文件的文件上传控件.我在文件上传控件旁边加了一个加号按钮,以便用户可以单击按钮并打开文件对话框,意味着单击te按钮应调用fileupload click事件以打开文件filedialog.

预先感谢.

Hello Friends,
I am having a fileupload control which can attach multiple files.I am giving a plus button aside of the fileupload control so that user can click on button and a filedialog should open,means click of te button should call the fileupload click event to open the filedialog.

Thanks in advance.

推荐答案

步骤:
1.在加号"上单击,引发一个Javascript事件
2.在JS事件中,创建一个新的文件上传控件,并将其添加到您希望其出现的container/panel/div中
3.可见新控件后,用户可以浏览该项目

试试吧!
Steps:
1. On ''plus'' click, raise a Javascript event
2. In JS event, create a new file upload control and add that to the container/panel/div where you want it to appear
3. Once a new control is visible, user can go and browse the item

Try!


这篇关于调用Fileupload单击事件以在asp.net中上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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