Trigger JavaScript event
Public Static Void DG_ItemDatabase (Object Sender, System.Web.ui.WebControls.DataGriditeMeventargs E)
{
LinkButton L = New LinkButton ();
IF (E.Item.ItemType == ListItemType.Item || E.Item.ItemType == ListItemType.alternatingItem)
{
l = (linkbutton) E.Item.cells [0] .findControl ("DEL");
L. attributes.add ("onclick", "return delete ();");
}
}
// DataGrid inside the overlink opens a window: