在GridView中添加CommandField,设置DeleteText为: <span id="de" οnclick="JavaScript:return confirm('确认删除吗?')">删除</span>