localizing <asp:FileUpload>. IE problem

蹲街弑〆低调 提交于 2019-12-31 03:55:06

问题


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();
}

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?

Thanks.


回答1:


Have you tried uploadify so far?



来源:https://stackoverflow.com/questions/4489120/localizing-aspfileupload-ie-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!