I have a gridview up and running. And I have a command field which deletes the record from my SQL Server. On my filesystem, I have all these image files.
I can not find (or I don't have a clue on how to search this specifically) any information on how to store the filename from the record itself, into a string in my code behind.
I want to use the command field delete button, and then store the "Filename" in a string at the same time. So I can run a stored procedure and then delete the file from my filesystem.
Any idea on how to store this information in a string?
Thanks in advance.
You can do like this:
or just another example;
Hope this helps.