troubleshooting Question

delete files based on datagrid delete

Avatar of alivemedia
alivemedia asked on
Visual Basic.NET
2 Comments1 Solution300 ViewsLast Modified:
I need to fire an extra function when someone deletes a row from my datagrid that deletes a file named the same as the productid of the deleted row.

I know I need to use something like this in my code behind:

Private Sub DeleteImage(productId)


End Sub

And if I wanted to make this a class I reference from a bunch of different pages?

Thanks for any help!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros