Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
httpステータスコード303(SeeOther)を使用して、ASP.NETで現在のリクエストをリダイレクトする方法を知っている人はいますか。
コード スニペットは大歓迎です。
次のようにできるはずです。
HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Status = "303 See Other"; HttpContext.Current.Response.AddHeader("Location", newLocation); HttpContext.Current.Response.End();