适用于IE7的Confirm语法

e.Item.Cells[0].Attributes.Add("onclick","javascript:event.returnValue = confirm('Are you sure to delete?')"); 

你可能感兴趣的:(ASP.NET/C#,ie,javascript)