62,268
社区成员
发帖
与我相关
我的任务
分享
ScriptManager.RegisterStartupScript(this.btn_Save, this.btn_Save.GetType(), "唯一标识符1", "alert('" + "添加成功!" + "')", true);
Response.Redirect("~/XXX/AAA.aspx");
Page.PreviousPage.RegisterStartupScript("script", "<script>alert('添加成功!');window.location.href='~/XXX/AAA.aspx'</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "script", "<script>alert('添加成功!');window.location.href='~/XXX/AAA.aspx'</script>",true);
Response.Write("<script>alert('添加成功!');window.location.href='~/XXX/AAA.aspx'</script>");
Response.Write("<script>alert('添加成功!');window.location.href ='Index.aspx'</script>");
Response.Write("<script language='javascript'>");
Response.Write("alert('xxx!');");
Response.Write("document.location.href=xxx.aspx'");
Response.Write("</script>");
Response.Write("<script type='text/javascript'>alert('恭喜,注册成功!');setTimeout(function(){location.href='../Login.aspx'},2000);</script>");可以设置延时跳转