localizing . IE problem

2020-04-18 08:28发布

问题:

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?