当我在静态类中编写此代码时,我在下方收到红线响应:
Response.Redirect("ErrorPage.aspx.aspx?Error=" + READERROR);
它询问我是否缺少程序集。我该如何解决这个问题?
最佳答案
命名空间: System.Web
程序集: System.Web
(在 System.Web.dll 中)
但是如果你是在Static类中定义,那么我觉得应该是...
HttpContext.Current.Response.Redirect(....);
关于c# - Response.Redirect 属于哪个命名空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6166462/