有谁知道如何在 ASP.NET 中使用 http 状态代码 303 重定向当前请求(参见其他)。
非常欢迎代码片段!
最佳答案
你应该可以这样做:
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Status = "303 See Other";
HttpContext.Current.Response.AddHeader("Location", newLocation);
HttpContext.Current.Response.End();
关于c# - 如何在 asp.net 中创建 303 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9497467/