日期:2014-05-18 浏览次数:20462 次
ScriptManager.RegisterStartupScript(this.btn_Save, this.btn_Save.GetType(), "唯一标识符1", "alert('" + "添加成功!" + "')", true); Response.Redirect("~/XXX/AAA.aspx");
Response.Write("<script language='javascript'>"); Response.Write("alert('xxx!');"); Response.Write("document.location.href=xxx.aspx'"); Response.Write("</script>");
------解决方案--------------------
ScriptManager.RegisterStartupScript(this.btn_Save, this.btn_Save.GetType(), "唯一标识符1", "alert('" + "添加成功!" + "')", true);
不是可以在这里跳用一个js函数么...然后做跳转操作
------解决方案--------------------
ScriptManager.RegisterStartupScript(this.btn_Save, this.btn_Save.GetType(), "唯一标识符1", "alert('添加成功!');window.open('/XXX/AAA.aspx');", true);
------解决方案--------------------
Response.Write("<script>alert('添加成功!');window.location.href ='Index.aspx'</script>");
------解决方案--------------------
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 type='text/javascript'>alert('恭喜,注册成功!');setTimeout(function(){location.href='../Login.aspx'},2000);</script>");