Response.Write("javascript:alert('hahahah!')"); ServerControl.Attributes.Add("onclike"," return confirm('are you sure?')"); Page.RegisterStartupScript("","<script> alert('添加数据成功!')</script>"); 相关文章: