473,581 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2938
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******** ********@TK2MSF TNGP12.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@ RemoveCharacter sUpTo#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:\myFinancesAn dCreditCardInfo .txt and <body onload=form.sub mit();>

"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
3521
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
1610
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 (since you have to select a file for a value to register). Is there any alternative? Thanks!
9
24741
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 or a workaround? I'm testing on IE Thanks! <html> <head></head> <body> <form name="test_form" method="post" action="test.jsp">
9
16987
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 Newsgroup Services
1
1418
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 list box contains the selected folder. Thanks.
1
2795
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 i am exporting the movie. so, please kindly send me the solution asap.
6
3104
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
40863
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 because the files can be any number of formats. I've come across a couple of so-called "simple" solutions, but for the life of me, I either cant...
1
6250
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. The VB to browse for the file is as follows Private Sub CmdBuildingAdd_Click() Me!txtSelectedFile = BrowseFiles()
0
7857
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8137
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8299
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7890
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6545
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5355
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.