469,599 Members | 2,775 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

Change text in the button "browse" from a file field html control

Hi,

I am developing a multi-language application in ASP.NET in c#.

I am using a file field html control to upload an image.

I would like to change the text on the button "browse" that comes with the
control. I need to change the text to have the correct text for the
language chosen.

Anyone can help me?

Thanks,

Olivier
Nov 19 '05 #1
3 2756
Olivier:
the browser will automatically localize the word "browse". That is, if your
users have a french browser installed, it'll automatically say 'naviger' (or
whatever). It isn't an asp.net thing, it's a browser thing

If you want though, using CSS, you can do some neat stuff:
http://www.quirksmode.org/dom/inputfile.html

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Olivier Verdin" <ol************@playcorporate.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

I am developing a multi-language application in ASP.NET in c#.

I am using a file field html control to upload an image.

I would like to change the text on the button "browse" that comes with the
control. I need to change the text to have the correct text for the
language chosen.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #2
Have you looked at adding a string resource file for each culture? Then, in
you page load event, assign the button text from the appropriate language
resource.
--
Direct Email: Michael.Baltic@RemoveCharactersUpTo#NCMC.Com

Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group
"Olivier Verdin" wrote:
Hi,

I am developing a multi-language application in ASP.NET in c#.

I am using a file field html control to upload an image.

I would like to change the text on the button "browse" that comes with the
control. I need to change the text to have the correct text for the
language chosen.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #3
Ben
You can't do anything with the file field such as prepopulate or change the
text of the browse button or style it very much at all. This is for security
reasons because they don't want anyone somehow misleading you and fooling you
into uploading something you don't want to upload... or changing the value to
be c:\myFinancesAndCreditCardInfo.txt and <body onload=form.submit();>

"Olivier Verdin" wrote:
Hi,

I am developing a multi-language application in ASP.NET in c#.

I am using a file field html control to upload an image.

I would like to change the text on the button "browse" that comes with the
control. I need to change the text to have the correct text for the
language chosen.

Anyone can help me?

Thanks,

Olivier

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by laredotornado | last post: by
9 posts views Thread by Roger Withnell | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.