views:

62

answers:

3

I know the very similar question was posted here already (http://stackoverflow.com/questions/94316/how-to-change-the-text-of-the-browse-button-in-the-fileupload-control-system-web) and I understand it's not possible to change the description to some custom text, but isn't it at least possible to change it to a different language (e.g. to English)?

I'd like to do it so that my web page is whole in one language (because e.g. "Procházet..." instead of "Browse..." in the middle of English web page looks kind of weird to me).

A: 

No, it's a matter of client's operating system.

František Žiačik
+2  A: 

This is determined at the browser level, unless you moved to something like a flash-based uploader (or <iframe> trickery), you can't customize it. Whatever language/localization the user's browser is in (usually based on the OS setting), that's the language they'll get on the "Browse..." button.

If your page is for consumers likely already in that language, then you're all set, the default behavior works. If people with another language setting come by, well...that's the language they picked, so it should be an intuitive button label, even if it doesn't match.

Nick Craver
A: 

Although there is direct way to change the Caption of InputFile control,but you can always go for alternative way,

1>Add InputFile control to you page let's say "fileUpload" and make it Hidden or invisible.

2>Add new HTMLButton on form with TextWhatever you wanted to give it to your fileupload button (in addition you can also add TextBox too to show uploaded file name when events being gets handle at server side).

3>Oncick even of above button use below javascript

document.getElementById("fileUpload").click();

It will do the same thing without showing up default InputFile control.

Samiksha