What is the difference between HttpContext.Current.Response and Page.Response?
问题 I'm troubleshooting a caching issue on a set of secured pages and have realized that the Header needs to be modified for all Responses. As I put together a solution, I want to know the difference between HttpContext.Current.Response and Page.Response and when each object should be used in an app. Thanks. 回答1: Page.Response is simply a mapping to the HTTPContext when you are within the context of an HTML page. HttpContext.Current.Response simply allows you to get to the current context, when