于是上网查了下。。。
应该使用
System.Web.UI.ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "Button6_Click", "alert('请输入aaa!')", true);