Hi folks,
The problem I have is this:
I have a DataGrid named dgResults with a Select Button Colunm. The Command name is cmdEditVisit, and the button type is a LinkButton. The below code catches when this button is click as simply redirects them off to a different page. :)
Code:
Private Sub dgResults_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgResults.ItemCommand
If e.CommandName = "cmdEditVisit" Then
Response.Redirect("EditVisit.aspx?MR=" & strMSMROL)
End If
End Sub
As soon as I change the ButtonType to a PushButton the above code does not catch when the button it clicked on, and I cannot figure out why this is the case.
If anyone has any ideas why, please let me know.
Thanks:)