OnClick="btnDelete_OnClick" CommandArgument='<%# Eval("Id") %>' />
2:添加对应的脚本 代码如下:
function ShowMessage() { return confirm("要删除该项吗?"); } script>