Click to See Complete Forum and Search --> : ASP Problem: Response.Redirect


blink
09-10-2003, 12:08 PM
Hey Guys,

Well..this is my first post here so hello all! I know it is kinda long, but I am a descriptive person. Thanks for bearing with me.

Ok, heres the problem. I have an asp page that is a form that updates a Microsoft Access table. I use Dreamweaver MX for all initial coding and just modfiy it's code as I need. The problem I am having is that after the udate code executes (i.e the record is updated) I put a response.redirect in their to send them back to where they started, which is another update page with more generalized fields. I need to pass a url parameter called autonumber to the next page. I have not had any problems with this in the past and in fact if I hard code an autonumber instead of calling it via Request.QueryString, it works fine (ie. www.pagenamehere.com?AutoNumber=5).

The problems occur when I try making the number dynamic.

If anyone thinks they can help out leave a reply, I'll then post the code in question.

THANKS

pyro
09-10-2003, 12:09 PM
This belongs in the ASP forums, so I'll move it there for you...

blink
09-10-2003, 02:59 PM
Ok, heres the code I would like to get working....


MM_editRedirectUrl = "view1.asp"

(How it is now)^^^


MM_editRedirectUrl = "edit1.asp?AutoNumber=" + Request.QueryString("AutoNumber")

(What I want) ^^^


MM_editRedirectUrl = "edit1.asp?AutoNumber=5"

(What worked) ^^^



If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)

(Where the redirect is called) ^^^

magus
09-10-2003, 11:55 PM
try this:
MM_editRedirectUrl = "edit1.asp?AutoNumber=" & Request.QueryString("AutoNumber")

use (& ) instead of (+)