|
-
May 26th, 2005, 12:22 AM
#1
Thread Starter
New Member
onclick event/assign value
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|