BtnDel.Attributes.Add("onclick",@"return confirm('是否确认删除该数据?')"); 等同于在html页面写js 转载于:https://www.cnblogs.com/umain/archive/2008/08/25/1275947.html