Page_Load里面
if(!Page.IsPostBack)
{
  this.ButtonDelete.Attribute.Add("onclick","return confirm('您确认要删除吗?')");
}