Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi All,

My requirement is like this-
User will select excel file in his machine.
I need to copy whole data present in that excel sheet to the database.
For this I have used File upload control to browse the excel.
But I'm getting only the file name not the full path.
So how will I get the Full path.
Posted

No it is not possible. For security reasons browsers do no allow this
QnA 1[^]
QnA 2[^]
 
Share this answer
 
create an instance of OpenFileDialogBox,it will prompt a dialog box for you to select your files and you can get its full path in OpenFileDialogBox properties.
 
Share this answer
 
Comments
Smitha5 22-May-14 7:06am    
But OpenFileDialogBox is for windows application is't it?
I'm working on web application.How can I use that?

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