使用文件上传控件时出现问题 [英] Problem using file upload control

查看:127
本文介绍了使用文件上传控件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用fileupload控件上传文件.

众所周知,它包含文本框和按钮的组合.

当单击浏览按钮时,它将打开选择要上传的文件"框,但是在单击文件上传的文本框部分时未打开此选择框.
如果我们双击文本框部分,则将打开该选择框.

我需要在fileupload的文本框部分上单击打开它.

I am using fileupload control to upload a file.

As all of you know it contain the combination of a textbox and button.

When clicking on the browse button, it will open the "choose file to upload box" but this choose box is not opened on click of textbox part of fileupload.
If we double click on the textbox part then that choose box will be opened.

I need to open it on single click of textbox part of fileupload.
Is it possible?

推荐答案

AFAIK,这是浏览器特定的功能.
尝试在Firefox 3.6.11中运行,只需单击即可将其打开.在IE 8中,需要双击.

在文件上传控制方面,使用JavaScript的工作量很少.
AFAIK, It is a browser specific feature.
Try in Firefox 3.6.11, it will open in a single click. In IE 8, it takes double click.

There is less you can do with JavaScript when it comes to file upload control.


默认情况下,这是一项安全功能,否则您可以使用JavaScript打开和保存文件.

如果您想要这种类型的功能,我会考虑使用Flash或SilverLight选项.
By default it''s a security feature, otherwise you could be opening and saving files using JavaScript.

If you want this type of functionality I would look towards either Flash or SilverLight options.


可能无法实现...

等待更多答案...
might this not possible...

wait more answers...


这篇关于使用文件上传控件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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