Delete picture from Image folder
i am using gridview and in gridview i have a checkbox column and i using delete button to delete the Checked record. i am uploading images through asp.net fileUpload Server Control. and in a DataBase i am just Storing the Image Name with its Extension for ex Image1.jpg and same name i am storing in Images folder in my Application root path.
now problem is when i delete any record then that images should also delete from the Images folder from root path how to do that..?.
how to find perticular id and that file name from d'base and math with image name in Image Folder.
can any one give me a solution...?