The reason its not working when the method is static is Response is instance object created for every page by asp.net plese refer this link
http://www.dotnetspider.com/tutorials/AspNet-Tutorial-36.aspx[
^]
An instance of this class is created by default in all the pages, so that you can use this object without creating again each time in all the pages. The name of this object is Response.
When you are using the static method in the Page class, Page class won't have an instance object associted with it hence the error..