hi
i have uploaded the images to my images folder in my project
i have been tried this code
here i am gettting th path name so using lastindexof and substring i will get the imagename only
that is stored in fname1 , Let anyone have idea regarding this....
Dim fname As String =
e.CommandArgument.Substring(e.CommandArgument.LastIndexOf("/"))
Dim fname1 As
String = (fname.Substring(1))
'
System.IO.File.Delete(Request.PhysicalApplicationPath +
fname1)
File.Delete(Server.MapPath("~/siteimage" &
fname1))
loadimage()
message.Text = "Image Deleted Successfully !"
but its doesn't throw any error..? and image has not deleted
...
Go to the complete details ...