View Single Post
  #1 (permalink)  
Old August 27th, 2009, 10:57 AM
Ron Howerton Ron Howerton is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Response.Redirect gets "object required" error

I am having an annoying problem with this simple client side vbscript on a .NET page:

sub ChangedName()
msgbox "Before"
Response.Redirect("http:\\www.google.com")
msgbox "After"
end sub


It displays "Before", but not "After", and returns the error: Object required: Response

The problem is not the URL but the *&^% Response object.

The script couldn't be any simpler so there must be something stupid I've done and keep overlooking. I've wasted over an hour now trying to figure out why it should think Response doesn't exist and it is driving me nuts!!!

Can anybody suggest WTF is wrong?