62,025
社区成员
发帖
与我相关
我的任务
分享
ScriptManager.RegisterClientScriptBlock(this.GetType(), "", "alert('登录成功!');window.location.href('default.aspx');", true);
如果你前端页采用微软的uppanel无新页面,然后想要跳转面的话,那么就得用:
ScriptManager.RegisterStartupScript(this.upLogin, this.GetType(), "","alert('登录成功!');window.location.href('default.aspx');", true);进行跳转!
response.write("<script>alert('密码误');window.location.href='default.aspx'</script>")
Response.Redirect("default.aspx");