1)弹出确定和取消对话框
Button1.Attributes.Add("onclick","return confirm('确实要退出吗?');");
2)弹出确定对话框
Button1.Attributes.Add("onclick",alert('确实要退出吗?');");
Button1.Attributes.Add("onclick","return confirm('确实要退出吗?');");
2)弹出确定对话框
Button1.Attributes.Add("onclick",alert('确实要退出吗?');");