比如在类中要使用Cache,用HttpContext.Current.Cache
Response,Request等一样.
如果要使用Page则:
Page p=(Page)HttpContext.Current.Handler;
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3