I'm trying to delete a item from the listview.
I can delete the item from the database ok, but the listview item does not get removed, I could do a Response.Redirect to redisply the page but this is overkill?
Below is my code:
Private Sub ListView1_ItemDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewDeleteEventArgs) Handles ListView1.ItemDeleting
Dim key As String = Me.ListView1.DataKeys(e.ItemIndex).Value.ToString()
'Dim mDbase As New SQL40.Database.SQL.SQL(<Sever>, <Database>, "", "", True)
' mDbase.Record.Delete("DELETE FROM TBLResults WHERE ID=" & key)
View Complete Post