when I am creating a new form, I am inserting "RequestId" of particular form in Textbox as well as uploading multiple file (that comes in Gridview)
and on save button click, those gridview multiple files with "RequestId" are saved in Database as below:
Id
|
Request Id
|
File Name
|
1
|
12
|
Abc.jpg
|
2
|
12
|
Xyz.doc
|
3
|
12
|
Pqr.png
|
4
|
11
|
Abc.xls
|
5
|
11
|
aa.jpg
|
NOTE: Auto increment of "Id" is true.
Now, I want that If I delete any file from the Gridview(which has all uploaded files), I want that file to be deleted from database table also.
Currently on Deleting file from Gridview, files from "Folder" are deleted not from Database.
Its is trciky issue for me.
Please help me to solve.