Passing a stored variable with response.redirect....

M

Mike

I have a database driven web site.

On our company intranet, I set up a section for
our customer service to update customer records.

After they fill out a form it passes all of the fields
to an update.asp page that then updates the MS
Access dbase.

I then need the update.asp page to redirect back
to the customer detail page.

I need the update.asp page to pass the CustomerID
back to the detail page so it will show the correct
record. I have the following code on the update.asp
page and I cannot get the response.redirect
statement to work. If I put an actual customer id
in like ...?CustomerID=4253, then it works fine.
But, I need it to pass the current id.

<%
Dim CustomerID
CustomerID = request.form("CustomerID")
%>

<%
response.redirect "wb_P_client_detail.asp?CustomerID=<%=CustomerID%>"
%>

Any help is appreciated.

Mike
 
M

Mike

I figured it out.

<%
response.redirect "wb_P_client_detail.asp?CustomerID=" & CustomerID
%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top