Click here to Skip to main content
14,422,174 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am using fileupload control to upload a file.

As all of you know it contain the combination of a textbox and button.

When clicking on the browse button, it will open the "choose file to upload box" but this choose box is not opened on click of textbox part of fileupload.
If we double click on the textbox part then that choose box will be opened.

I need to open it on single click of textbox part of fileupload.
Is it possible?
Posted
Updated 20-Oct-10 22:59pm
v2
Comments
Dalek Dave 21-Oct-10 3:59am
   
Edited for Grammar and Readability.
Rate this:
Please Sign up or sign in to vote.

Solution 3

AFAIK, It is a browser specific feature.
Try in Firefox 3.6.11, it will open in a single click. In IE 8, it takes double click.

There is less you can do with JavaScript when it comes to file upload control.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

By default it's a security feature, otherwise you could be opening and saving files using JavaScript.

If you want this type of functionality I would look towards either Flash or SilverLight options.
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

might this not possible...

wait more answers...
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100