Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.redirect not totally redirecting??

Status
Not open for further replies.

DebbieDavis

Programmer
Jun 7, 2002
146
US
Hi there, here's a good one. I have a development server and a production server. Dev is winnt and prod is win2003. I have a delete link and after it deletes the records it redirects like this:

response.redirect "?select=81"
which returns in the address line: default.asp?select=81

simple enough, works fine on dev. On prod, however, it redirects but keeps some of the querystring from the previous link, so in the address line, it looks like this:

default.asp?select=81?deletethis=

why is it doing this and how can I fix this? Thanks a million for your thoughts!!
 
check the code and ensure that there is no extra line that adds the additional parts to the url...

or post code


Bastien

Cat, the other other white meat
 
Bastien, after the redirect code I put response.end and it's working the same on both servers now.

But here's my code anyway:
Code:
response.write "<a href="?select=81&delthis=" & request.querystring("estno") & ">DELETE</a>"
which would produce: ?select=81&delthis=142
Code:
objConn.execute("delete from estimates where estno=" & request.querystring("delthis"))
response.redirect "?select=81"
response.end

Maybe you have a better idea. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top