From reason which I don't see from your code the control does not access Response
object. Try
System.Web.HttpContext.Current.Response
intead of just Response
.
Public Sub Redirect()
System.Web.HttpContext.Current.Response.Redirect("http://www.google.com")
End Sub
In web project System.Web.HttpContext.Current
should never be nothing.