给按钮添加 Attributes属性
可写在Page_Load里面
描述:点击Button1的时候,页面会先弹出供选择“确定/取消”的对话框,如果点是,才会执行按钮后台代码,如果点否,则终止操作。
Button1.Attributes.add( "Onclick ", "return confirm( '是否确定继续此操作? '); ")
可写在Page_Load里面
描述:点击Button1的时候,页面会先弹出供选择“确定/取消”的对话框,如果点是,才会执行按钮后台代码,如果点否,则终止操作。