Author: akanetsamson | Posted on: 6/8/2009 11:10:41 AM | Views : 424

Hi, i've been trying to write codes that will delete a file from my databae and also the real file from the server. I can success fully delete the URL from the database but i also want to delete the real file. I used the File upload control to allow users upload a file. I want to also give them a chance to delete it using a button. this is my code: dim userPhoto = ???? File.Delete(MapPath("~/UploadedImages/") & "\" & userPhoto) I need a value to set to the userPhoto variable which is supposed to be the title or name of the file. can any1 help please? thanx.
...

Go to the complete details ...