?
Solved

ASP Question Mark (?)

Posted on 1998-12-23
1
Medium Priority
?
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
MasseyM earned 120 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

801 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