21⟩ What is the command to display characters to the HTML page in ASP?
Command to display characters to the HTML page in ASP is:
Response.Write("www.GlobalGuideLine.com")
“Learn ASP Programming by Interview Questions and Answers.”
Command to display characters to the HTML page in ASP is:
Response.Write("www.GlobalGuideLine.com")
POST METHOD in ASP:
The POST method generates a FORM collection, which is sent as a HTTP request body. All the values typed in the form will be stored in the FORM collection.
GET METHOD in ASP:
The GET method sends information by appending it to the URL (with a question mark) and stored as A Querystring collection. The Querystring collection is passed to the server as name/value pair.
The length of the URL should be less than 255 characters.
Only one global.asa file and it’s placed in the virtual directory’s root in ASP.
Scripting Objects that can enhance the application are known as the Scripting Objects.
Order of precedence for LOGICAL Operators in ASP are as under:
NOT, AND, OR, XOR, EQV, IMP
Virtual directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page.
Up to 60 dimensions
Collection is a set of name/value pairs where the information supplied by the client is stored.
It gets information from the user. It has five collections by which values can be accessed. They are: Query string, Form, Cookies, Server Variables & Client Certificate.
Extranet is an area of a web site available only to a set of registered visitors.
* Contents collection? Contains all variables added via scripts in global.asa.
* Static collection? Contains the names of all objects added via the <OBJECT> tag in global.asa.
VBScript
This collection stores any values that are provided in the URL. This can be generated by three methods:
By clicking on an anchor tag <A>
by sending a form to the server by the GET method
through user-typed HTTP address
Only one global.asa file and it’s placed in the virtual directory’s root.
A. After every request for an application document, since web servers are stateless servers.
B. As soon as there are no open connections to any application document.
C. When the web server is stopped in an orderly fashion. (Answer)
D. Twenty minutes after the last request for a document in the application.
E. When there are no application requests for the amount of time defined by the Session Timeout variable.
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.
POST METHOD:
The POST method generates a FORM collection, which is sent as a HTTP request body. All the values typed in the form will be stored in the FORM collection.
GET METHOD:
The GET method sends information by appending it to the URL (with a question mark) and stored as A Querystring collection. The Querystring collection is passed to the server as name/value pair.
The length of the URL should be less than 255 characters.
The Server Variables collection holds the entire HTTP headers and also additional items of information about the server.
You can include Activex Control using OBJECT tag.
Syntax for including Activex control is...
<OBJECT id="id1" clsid ="give class id here" codebase="path spec for activex ocx"></OBJECT>
The Form collection holds the values of the form elements submitted with the POST method. This is the only way to generate a Form collection.