后台弹窗,弹窗跳转页面

来源:互联网 发布:ubuntu 搜索应用程序 编辑:程序博客网 时间:2024/04/29 01:54

弹窗:

1、Response.Write("<script>alert(‘无可导出项!');</script>");           //弹出窗口点击确定,原页面的格式改变

2、Page.ClientScript.RegisterStartupScript(this.GetType(), "Success", "alert('帐号密码错误或未启用,请联系信息处!');", true);

3、ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('添加失败!')", true);


跳转:

 Response.Redirect("/Backstage/index.aspx");


弹窗点击确定后跳转:

Response.Write("<script language=javascript>alert('温馨提示:提交成功!');window.location='ReAll.aspx'</script>");

0 0
原创粉丝点击