G
Guest
Can anyone help in converting the code below to VB.NEt!
Thx
protected void myDataGrid_OnItemDataBound(object sender,
DataGridItemEventArgs e)
{
if(e.Item.FindControl("DeleteLink") != null)
{
((LinkButton)
e.Item.FindControl("DeleteLink")).Attributes.Add("onClick", "return
confirm('Are you sure you wish to delete this item?');");
}
}
Thx
protected void myDataGrid_OnItemDataBound(object sender,
DataGridItemEventArgs e)
{
if(e.Item.FindControl("DeleteLink") != null)
{
((LinkButton)
e.Item.FindControl("DeleteLink")).Attributes.Add("onClick", "return
confirm('Are you sure you wish to delete this item?');");
}
}