mike
Posts: 7
|
Posted: 11/01/2004, 3:44 AM |
|
I am using ASP.NET C# , and I use the FileUpload Component to upload the files to the folder (.\myfiles \doc) , I notice that the file name only saved to the database with out the path , when I create the grid containing ImagLink the the file name its give me (http://ServerName/AppDir/FileName.ext) But i need this (http://ServerName/AppDir/myfiles/doc/FileName.ext)
Please How To Solve this Problem
|
|
|
Heitor Miguel
|
Posted: 11/01/2004, 8:22 AM |
|
hi
Use this code and replace the path with your path
Private Sub btnUpload_serverClick()....
filsouce.postedFile.saveas("c:\Temp\"&FileName.ext)
Regards
Heitor Miguel
|
|
|
peterr
Posts: 5971
|
Posted: 11/01/2004, 10:42 AM |
|
You shouldn't replace the path, since then you may not be able to delete those files.
Instead, modify the HTML that displays the URL, so that your HTML includes the path, then the file name would be appended to it.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
mike
Posts: 7
|
Posted: 11/01/2004, 12:31 PM |
|
Thanks peterr
Its Work .
|
|
|
|