Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a application where I need to open a file dialog box when clicked on the button. This is a "WEB APPLICATION".


What should I do. I don't want to use the regular asp:fileupload control.
Posted
Comments
Sunasara Imdadhusen 23-May-14 5:50am    
This is not possible. can you please let us know what your requirement exactly.

You can't. There is no OpenFileDialog Control for ASP.NET. Why don't you use asp:fileupload control?
 
Share this answer
 

Solution


You can hide the FileUpload Control and on Button Click, just trigger the click() Event.

Demo


[Demo] Open File Selection Box on Button Click[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900