【发布时间】:2010-12-03 09:33:06
【问题描述】:
出于许可原因,我想以编程方式禁用网站,并且我想在 httpmodule 中执行此操作。
我试图重定向上下文:
public void Init(HttpApplication context)
{
context.Response.Redirect("http://vls.pete.videolibraryserver.com");
}
但我得到了错误:
Response is not available in this context.
任何人都知道我可以如何有效地禁用该网站并最好将它们发送到自定义页面。
【问题讨论】:
标签: c# asp.net httpmodule