本地化&LT; ASP:文件上传取代。 IE浏览器问题 [英] localizing <asp:FileUpload>. IE problem
问题描述
我想要做的是本地化&LT; ASP:文件上传&GT;
控制。据我了解它是不可能的,因为输入文件
是由浏览器中呈现,并没有办法从服务器控制。
所以我这样做:我创建&LT; ASP:文件上传&GT;
,使之透明,创建输入文本
和输入按钮
写
what i want to do is localize <asp:FileUpload>
control. as far as i understand it is not possible, because input file
is being rendered by a browser and there is no way to control it from the server.
so i do this: i create <asp:FileUpload>
, make it transparent, create input text
and input button
and write
function browse() {
$('#fileupload').click();
}
在输入按钮
的onclick
事件。
Firefox和Chrome做精,IE8 - 没有:它打开的文件上传
浏览...对话框,写道:它的值输入文本
(通过 $('#文件路径)VAL($('#文件上传)VAL());
),但是当我开始上传,出现这个问题:<一href=\"http://stackoverflow.com/questions/4469036/jquery-function-before-the-postback-for-fileupload-in-asp-net\">jQuery在ASP.NET回发的文件上传功能之前
on input button
onclick
event.
firefox and chrome does fine, IE8 - does not: it opens fileupload
's "Browse..." dialog, writes it's value to input text
(via $('#filepath').val($('#fileupload').val());
), but when i start uploading, there is this problem: jQuery function before the Postback for FileUpload in ASP.NET
所以我的问题是:是否有任何其他(?更好)的方式来覆盖上传控件(自定义宽度,按钮等等本地化的文本),它是每一个浏览器的工作原理
So my question is: is there any other (better?) way to override upload control (custom width, localized texts on button etc...), that works on every browser?
感谢。
推荐答案
你试过 uploadify 这么远?
这篇关于本地化&LT; ASP:文件上传取代。 IE浏览器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!