Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am developing a web application, in which user is uploading all material stock in csv file, but i dont know how to get the local machine file path,

what should i use for that

please help me

thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 29-Feb-12 23:35pm    
You don't use this file path on server-side; as to the client side, you normally specify it when you fill in the form. This is all you need. Are you sure you know what client and server part do to work together, in general?
Please see my answer.
--SA

Please learn about file uploading in ASP.NET:
http://msdn.microsoft.com/en-us/library/aa479405.aspx[^].

This is a simple step-by-step article:
http://asp.net-tutorials.com/controls/file-upload-control/[^].

These CodeProject articles could be useful:
File Upload with ASP.NET[^],
ASP.NET File Upload with Progress Bar[^].

—SA
 
Share this answer
 
You can use Server.MapPath to get the local file.
 
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