千家信息网

response.redirect 调转到新页面报错

发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,是这样写的代码:Response.Redirect("http://localhost:8080/projectL/allLogin.html");后台直接报错,经查看搜索后如下解决在代码后面添加 r
千家信息网最后更新 2026年11月03日response.redirect 调转到新页面报错

是这样写的代码:

Response.Redirect("http://localhost:8080/projectL/allLogin.html");

后台直接报错,经查看搜索后如下解决


在代码后面添加 return; 后 页面访问到了


0