Hi all:
I have agridview whose first column is
<asp:CommandField HeaderText="Edición" ShowEditButton="true" EditText="Editar" ShowCancelButton="true" CancelText="Cancelar" ShowDeleteButton="true" DeleteText="Borrar" />
When it shows borrar linkbutton I want to display a confirm message in javascript. To do so I do in rowdatabound
If DirectCast(e.Row.Cells(0).Controls(2), LinkButton).Text = "Borrar" Then
Dim lb As LinkButton
lb = e.Row.Cells(0).Controls(2)
lb.OnClientClick = "return confirm('¿Estás seguro de quitar este fichero?')"
End If
It shows me well the message when it is borrar
But it shows again the message when it is cancelar of actualizar and cancelar
Thank in advanced
P ...
Go to the complete details ...