473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2913
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: laredotornado | last post by:
Hello, Is it possible, instead of having the button "Browse" for the HTML <input type="file"> element, to have a graphic in its place? How would this be done? Thanks, - Dave
3
by: Rico | last post by:
Hello, Is there any kind of Browse dialog available? I currently use an Open File dialog which is great for selecting files, but sucks (it's confusing) when you're trying to set a directory...
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
9
by: Roger Withnell | last post by:
I am building a website in Russian. What options do I have to make the "Browse" button display in other languages? Thanking you in anticipation. Posted Via Usenet.com Premium Usenet...
1
by: vishwa Ram | last post by:
Hello VB Developers.... I like to select a folder, by clicking a button. I am using common dialog box for this. But it selects only file. Also I need code to list of xml file to list into...
1
by: aby004 | last post by:
Hello Sir, I want to know that how to create a "Browse" button to upload file to server ? i have already creating a attachfile button and applying a script, but there is no respone when...
6
by: skyy | last post by:
Hi.. i am doing file upload using CGI perl scripts... I want to allow the user to select the files using the "Browse" button only instead of typing the path name. How i do it? Thanks.....
79
truthlover
by: truthlover | last post by:
I need some help. I need a button on an Access form that allows the user to browse for a file on our network, and insert it in a field (rather than having to type a path). I dont need any filters...
1
by: alnino | last post by:
Hi, On a form I have a command button that allows a user to browse for a file (PDF, Word, etc…). This command button then stores a hyperlink to the file within an associated txtfield in the table....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.