Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

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

 
Thread Tools Search this Thread
Old 07-12-2005, 04:57 PM   #1
Default 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




Olivier Verdin
  Reply With Quote
Old 07-12-2005, 05:09 PM   #2
Karl Seguin
 
Posts: n/a
Default Re: Change text in the button "browse" from a file field html control

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" <> wrote in message
news:%...
> 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
>



  Reply With Quote
Old 07-12-2005, 05:16 PM   #3
=?Utf-8?B?TWljaGFlbCBCYWx0aWM=?=
 
Posts: n/a
Default RE: Change text in the button "browse" from a file field html control

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
>
>
>

  Reply With Quote
Old 07-14-2005, 09:04 PM   #4
=?Utf-8?B?QmVu?=
 
Posts: n/a
Default RE: Change text in the button "browse" from a file field html control

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
>
>
>

  Reply With Quote
Old 12-30-2008, 11:14 AM   #5
htl
Junior Member
 
Join Date: Dec 2008
Posts: 1
Default here is a greate example http://www.mo8.co.il/WebControls.aspx

look here

[mo8.co.il/WebControls.aspx]

it supports multi lenguage and it is fully customable
htl is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump