If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Response.Redirect raising error in asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-10, 02:42
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Response.Redirect raising error in asp

Good day,

I have a website which has been working fine, no problems, and now suddenly I am getting the following error:

error '8002801d'
/MainPage.asp, line 1

Line 1 is the following:
<% Response.Redirect ("NewPage.asp")

What would cause this and how do I fix it??

Please can someone help?

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-24-10, 04:06
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Have you got a closing ASP identifier (i.e. %>)?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-30-10, 05:19
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Sorry left out the closing identifier.
Line of code reads:
<% Response.Redirect ("NewPage.asp")%>
Reply With Quote
  #4 (permalink)  
Old 06-30-10, 05:50
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Added any ASP extensions recently to the web server?
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 06-30-10, 08:39
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Such as?? Sorry, now I am a little lost.

I even tried it with a straight forward asp page, TestPage1.asp where the only code was:
<%Response.Redirect("TestPage2.asp")%>

And in TestPage2.asp the only code is:
<%Response.Write("HELLO")%>

If I run TestPage2.asp by itself it works fine and shows: HELLO
But if I run the other page, TestPage1.asp that redirects to TestPage2.asp it doesn't work, gives me the error:
error '8002801d'
/TestPage1.asp, line 1
Reply With Quote
  #6 (permalink)  
Old 07-15-10, 05:23
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Picked up that one of the paths was incorrect, rectified that and all sorted now.
Reply With Quote
  #7 (permalink)  
Old 07-15-10, 06:33
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #8 (permalink)  
Old 08-06-10, 03:39
cherryflock0510 cherryflock0510 is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
Great forum!!! Lots of useful information. Thanks for sharing this with us.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On