Hi
I have the following code to get confirmation, before deleting a row. My problem is the popup window not always get focus which means it already open but user can not see it (it is going behind the current window). How could I fix this problem? Any help appreciated.
Thanks
Protected Sub grdContacts_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles grdContacts.RowDeleting
Dim result As Integer
result = MsgBox("Are you sure you want to delete tis record?", MsgBoxStyle.OkCancel, "Warning")
If result = 2 Then
e.Cancel = True
End If
End Sub
I have the following code to get confirmation, before deleting a row. My problem is the popup window not always get focus which means it already open but user can not see it (it is going behind the current window). How could I fix this problem? Any help appreciated.
Thanks
Protected Sub grdContacts_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles grdContacts.RowDeleting
Dim result As Integer
result = MsgBox("Are you sure you want to delete tis record?", MsgBoxStyle.OkCancel, "Warning")
If result = 2 Then
e.Cancel = True
End If
End Sub