Hi
I dont't know why I can not call javascript here. There is not popup message. any help appreciated.
Protected Sub grdContacts_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdContacts.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim deleteButton As LinkButton = CType(e.Row.Cells(0).Controls(2), LinkButton)
deleteButton.Visible = True
deleteButton.Attributes.Add("onClick", "javascript:return confirm('Are you sure you want to delete this record?")
I try to get a confirmatin in my VB code and I am using ASP.NET 2.0
End If
End Sub
I dont't know why I can not call javascript here. There is not popup message. any help appreciated.
Protected Sub grdContacts_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdContacts.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim deleteButton As LinkButton = CType(e.Row.Cells(0).Controls(2), LinkButton)
deleteButton.Visible = True
deleteButton.Attributes.Add("onClick", "javascript:return confirm('Are you sure you want to delete this record?")
I try to get a confirmatin in my VB code and I am using ASP.NET 2.0
End If
End Sub