ASP Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - ASP

Page 1 has this link:
<a href="page2.asp?color=green">Go</a>
How can page2.asp get the "color" parameter?


 

 

 

 



B


Solution:-

The QueryString collection is used to retrieve the variable values in the HTTP query string. The HTTP query string is specified by the values following the question mark (?), like follows:

<a href="slightbookpage2.asp?backgroundcolor=red">Submit</a>

Query strings are also generated by form submission, or by a user typing a query into the address bar of the browser. Note: If you want to send large amounts of data (beyond 100 kb) the Request.QueryString cannot be used.

Syntax:

Request.QueryString(variable)[(index)|.Count]

variable: Required. The name of the variable in the HTTP query string to retrieve
index: Optional. Specifies one of the multiple values for a variable. From 1 to Request.QueryString(variable).Count

Example:

Request.QueryString("backgroundcolor")

 




Next 5 multiple choice(s)

1

How do you get information from a form that is submitted using the "post" method?

2

How can you script your ASP code in JavaScript?

3

What is the default scripting language in ASP?

4

<%= is the same as:

5

How do you write "Hello World" in ASP

Comments