ASP.NET删除等操作前的提示解决方案 if(!IsPostBack) Button1.Attributes.Add("onclick","javascript:return confirm('yes or no');");