How to Display items in PopUp from DataList Button Click in Asp.net:
How to Display Particular detail in PopUp from DataList Button Click in Asp.net:
You need to add the attribute during the DataList's ItemDataBound event.
Sub Item_Bound(sender As Object, e As DataListItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem Then
Dim ImageButton As imgBtn = _
CType(e.Item.FindControl("imgbtn_Zoom"), ImageButton)
imgBtn.Attributes.Add("onclick", "popWin()")
End If
Other Related Post :
Comments
Post a Comment