I’m making a table with data, and the last column needs to be have a recycle-bin icon for each row, allowing me to delete that row. Problem is, I can’t find this icon or how to add it.
This is an <asp:Table> Web Control and I’m adding rows and cells via the C# file behind it.
I’m thinking of using something like:
TableCell cell = new TableCell();
cell.
And that’s where I’m stuck. I need to have the cell contain that clickable recycle-bin icon, but I don’t know how to add it.
Unless i’m missing something, can you not just add an Image to the cell?
Or you can set the HTML of the TableCell directly via the Text property:
OR
Then if you want to “delete” something, just add the “onclick” attribute: