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?
LVL 1
Earl KellyAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
No, you have to put it in ASP tags <% %>.

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

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

Open in new window

0
 
Roopesh ReddyIT AnalystCommented:
Hi,

You can try the following!

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

Open in new window


Hope it helps u...
0
 
Manuel Marienne-DuchêneITMCommented:
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%>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.