"Response is not available in this context."
However, call it this way and it should work fine:
HttpContext.Current.Response.Write("Hello, World!");
HttpContext.Current.Response.Write("Hello, World!");
//Waits for 10 seconds and then forwards to Google.com
HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "Refresh";
meta.Content = "10; URL=http://www.google.com";
Page.Header.Controls.Add(meta);