M
mark
im having issues in creating a javascript confirm option on pressing a
delete button in a datagrid - ive tried a few things but nothing seems to
work (either crashes or does nothing)
my codebehind is laid out like this :-
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
'edit from datagrid
If e.CommandSource.commandname = "Edit" Then
(edit code)
'delete from datagrid
If e.CommandSource.commandname = "Delete" Then
(check to see if user really wants to delete the record)
(delete code)
End Sub
delete button in a datagrid - ive tried a few things but nothing seems to
work (either crashes or does nothing)
my codebehind is laid out like this :-
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
'edit from datagrid
If e.CommandSource.commandname = "Edit" Then
(edit code)
'delete from datagrid
If e.CommandSource.commandname = "Delete" Then
(check to see if user really wants to delete the record)
(delete code)
End Sub