Application_Start 事件中使用 Response.Redirect

在 Application_Start 中使用 Response.Redirect 就会出现“响应在此上下文中不可用”的错误。

解决方法:将 Response.Redirect 改成 Context.Response.Redirect 即可。

posted on 2010-09-17 09:39  大豆男生  阅读(591)  评论(0编辑  收藏  举报

导航