Solved

ASP Question Mark (?)

Posted on 1998-12-23
1
216 Views
Last Modified: 2013-12-25
I haven't been able to figure out what the question mark means in ASP.  I have 2 books on ASP and it isn't in either of them.  What I mean is something like this:
http://www.test.org/menu.asp?edit
Or something like that.  Does it call a subroutine in a script file?  Please help.
0
Comment
Question by:thorner
1 Comment
 
LVL 10

Accepted Solution

by:
MasseyM earned 30 total points
ID: 1830263
The ? allows you to pass aparameters to the ASP file. for instance:

http//your.server.com/anaspfile.asp?Value1=Hello

Now, within the anaspfile.asp file you would have:

The value I received was: <%=Request.Querystring("Value1") %>

It will print out this: The value I received was: Hello

----------
As for just a plain anasppage.asp?edit, it will only pass the value... ie.. the value I received was: edit

You can write a loop to get this:

<%
For each item in Request.QueryString
  Response.Write Item
Next
%>
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now