The self-edged procedure is as follows
Using System; Using System.Web; Using System.Web.ui; Namespace Hnwl.config {///
The compilation process does not prompt the error, but System.Web.httpException appears after running: Response is not available in this context; revice.cookies [name] and response.cookies.add (cook) are changed to httpContext.current.Request.Cookies [ Name] and httpContext.current.response.cookies.add (cook) will return to normal.
Explanation: The response in Page can only be used in the page file (although the above definition is cookdef: page, but only as a common class), HTTPContext can use to use the current context data in any case.