Click here to Skip to main content
15,944,390 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to upload files into a particular folder in
Note:That folder present inside my website folder and if i run the program in other system by copying the website,when i click upload files must upload in the same folder

Have a look at these links:
Uploading Files in ASP.NET 2.0[^]
File Uploading in ASP.NET 2.0[^]

If needed, look here for more[^].

About "copying website and must upload thing...", that is about configuration that you can handle once you are able to upload.
Share this answer
Espen Harlinn 19-Feb-11 10:22am    
Good reply :)
Sandeep Mewara 19-Feb-11 10:23am    
Thanks. :)
Hai use the following tocde to upload your file

add a file uploader and a button and write the code into the button click event


FileUpload1.SaveAs(@"C:\Documents and Settings\APU\My Documents\Visual Studio 2008\WebSites\File In ASP.NET\notice\" + FileUpload1.FileName);

you can set your changed name rather than FileUpload1.FileName..
Share this answer
This may be used as the foundation of a nice interactive UI
Silverlight File Manager[^]

There is also this:
Web File Manager[^]

or DevExpress ASP.NET File Manager [^] in case you don't actually want to roll your own :)

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