DataGrid triggers JavaScript event

xiaoxiao2021-03-06  114

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:

>>>

转载请注明原文地址:https://www.9cbs.com/read-102568.html

New Post(0)