Link to home
Start Free TrialLog in
Avatar of Earl Kelly
Earl KellyFlag for United States of America

asked on

Problem with ASP Script

Hey guys I have a simple project that I think should be easy but I seem to be banging my head on the wall.    I have a page called page1.asp that is sending a variable to page two like this:

page2.asp?ID=3723

I have page 2 capturing that string in a variable called ID1 using a request.querystring"ID"

What I want to do is open page3 using a link and passing the same variable from page two like this:

page3.asp?ID=Request.Write(ID1)

But that doesn't seem like it working.   Am I doing something wrong?   What should I be using?
Avatar of Roopesh Reddy
Roopesh Reddy
Flag of India image

Hi,

You can try the following!

page3.asp?ID=Request.QueryString("ID")

Open in new window


Hope it helps u...
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also

<%
' get the query into a variable
Dim id1
id1=Request.QueryString("ID1")

' then you can use it in a Response.Write
%>
page3.asp?ID=<%=id1%>