Solved

ASP Question Mark (?)

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
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 …

821 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