[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 492
  • Last Modified:

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?
0
Earl Kelly
Asked:
Earl Kelly
1 Solution
 
Roopesh ReddyCommented:
Hi,

You can try the following!

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

Open in new window


Hope it helps u...
0
 
Dave BaldwinFixer 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
 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now