.asp?(word)= web pages

S

SS

Hi

I'm looking at some scripting and one of the many links end in as an example

..asp?Lang=en

How is the created?

I know how to create asp pages and I'm assuming this means it's linked to a
database somehow?

Cheers
 
J

Jon Spivey

Hi,
That indicates a page that is accepting a parameter through the query
string - it can be used with a database but doesn't have to be. Params are
passed as name/value pairs - ie ?ParamName =
ParamValue&Param2Name=Param2Value.

You can retrieve the value on the .asp page like this
<p>The value of Lang is <%=request.querystring("Lang") %>
which would produce
<p>The value of Lang is en

Once you have value on the page you can do whatever you want with it -
display it, use it to query a database, do a calculation on it etc

Cheers,
Jon
 
S

SS

OK thanks I don't suppose you know of any where on the web that there might
be a tutuorial on how to do this do you?

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top