C#代码 Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('XXXXXXXXX!');</script>"); Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('XXXXXXXX!');</script>"); 类似于AJAX的效果,页面不刷新!!!