.asp?(word)= web pages

  • Thread starter Thread starter SS
  • Start date Start date
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
 
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
 
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
 
Back
Top