hello friends,
can u please tell the event for delete, when using hyperlink as a link to delete
please tell me with code

Thank u
Rakesh Nagekar

hi r u using datagrid /gridview.
If u have declared commandargument as delete in hyperlink,u can use ondelete command to delete the row.

Protected Sub Announcement_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Announcement.DeleteCommand
        Dim strid As String
        Dim i As Integer
        strid = Announcement.Items(e.Item.ItemIndex).Cells(4).Text
        i = Integer.Parse(strid)
        str = "Delete from anns where id=" & i & " "
        con.ExeNQ(str)
        displaygrid()
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.