Hi all![]()
Im trying to assign a value from-------- e.Item.Cells(4).Attributes.Add("onclick", "alert('You click at ID: " & e.Item.Cells(4).Text & "!');")
to a textbox1.text
instead of useing the alert metod how can i then assign textbox1. (text / value) = " & e.Item.Cells(4).Text & "
Sub dgmenukort_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.Cells(4).Style("cursor") = "hand"
e.Item.Cells(4).Attributes.Add("onclick", "alert('You click at ID: " & e.Item.Cells(0).Text & "!');")
End Sub
rgds jens


Reply With Quote
