Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('请填写内容!');", true);
response.write("");
我只会一个确认的对话框代码:Button1.Attribute.Add("onclick","javascript:return confirm('are you sure?')");