Solved

ASP Question Mark (?)

Posted on 1998-12-23
1
212 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
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 look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

17 Experts available now in Live!

Get 1:1 Help Now