在何种命名空间的Response.Redirect不属于?不属于、空间、Response、Redirect

2023-09-04 23:45:41 作者:就此别过

在我写这篇文章的一个静态类,我得到的红线波纹管响应:

When i write this in a static class i get red line bellow Response:

  Response.Redirect("ErrorPage.aspx.aspx?Error=" + READERROR);

这问我是否我有一个程序集缺失。我要如何解决这个问题?

It asks me whether i have got a missing assembly. How do i fix this?

推荐答案

命名空间: 的System.Web

大会: 的System.Web (在System.Web.dll中)

Assembly: System.Web (in System.Web.dll)

但如果你定义在静态类的话,我想应该是...

But if you are defining in Static class, then I think it should be...

HttpContext.Current.Response.Redirect(....);