G
Guest
Hi,
I have the following server code that attaches a client side script to the
Update command of the data grid.
Private Sub clientExc_ItemCreated(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
Handles clientExc.ItemCreated
If e.Item.ItemType = ListItemType.EditItem Then
CType(e.Item.Cells(4).Controls(0),
LinkButton).Attributes.Add("onclick", "buttonClick(this);")
End If
End Sub
The javascript is in an external js file.
What happens is when the page is loading in Edit mode after clicking the
edit button, but before clicking the update button, I see the following
script error:
'undefined' is null or not an object.
I have no idea what it is complaining about. If you have any ideas or
suggestions please feel free to post them.
Thank You!
I have the following server code that attaches a client side script to the
Update command of the data grid.
Private Sub clientExc_ItemCreated(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
Handles clientExc.ItemCreated
If e.Item.ItemType = ListItemType.EditItem Then
CType(e.Item.Cells(4).Controls(0),
LinkButton).Attributes.Add("onclick", "buttonClick(this);")
End If
End Sub
The javascript is in an external js file.
What happens is when the page is loading in Edit mode after clicking the
edit button, but before clicking the update button, I see the following
script error:
'undefined' is null or not an object.
I have no idea what it is complaining about. If you have any ideas or
suggestions please feel free to post them.
Thank You!