-
What are the advantages of Cookies over Session Object?
• It informs each page what session the request belongs to when a user accesses during a session. • It retrieves all the session information stored on the server. • Cookies can persist for a much longer period of time than session that has a timeout value usually of 20 minutes and hence can store information even when a user is off the site.
-
What happens when a client submits a form which changes the value of an Application variable?
A. Client actions cannot change Application variables. B. The change is not visible to any client until the application is stopped and started. C. The change is only visible to future requests made by that client during their current session. D. The change is visible to all clients, but only after they complete their current sessions and begin a new session. E. The change is visible to all clients...
-
-
What is ASP (Active Server Pages)?
ASP is a server side-scripting environment for building dynamic and interactive web pages. Since the scripts run on the server side, the web server does all the processing.
-
What are the properties of Session Object?
• SessionID – returns the session identification number for each user. • Timeout – sets the timeout period assigned to the Session object for any application, in minutes. • CodePage – determines the code page that will be used to display content. • LCID – a locale identifier, which determines time zone and language, rules for the system.
-
What are the collections of Session Object?
• Contents collection – contains all the variables established for a session without using the <OBJECT> tag. • Static collection – contains all the objects created with the <OBJECT> tag within session scope.
-
What is a FileSystemObject object?
It provides access to the physical file system of the web server. It gets and manipulates information about all drives in a server, folders and sub-folders on a drive and files inside a folder.
-
What is Request Object?
Gets information from the user. It has five collections by which values can be accessed. They are: Querystring, Form, Cookies, Server Variables & ClientCertificate
-
What are the tasks performed by <FORM> tags?
• <FORM> tags provides space for the user to input values • the form has a button to submit information back to the server • It transfers control to another ASP page • It carries the information in the fields to another ASP page
-
What are the attributes of the <FORM> tags? What are their functions?
The two attributes are ACTION and METHOD The ACTION gives the name of the ASP file that should be opened next by which this file can access the information given in the form The METHOD determines which of the two ways (POST or GET) the browser can send the information to the server
-
-
What are the tags necessary to be present within the <FORM> tag?
<INPUT> tag: Provides input spaces (text boxes, combo boxes, radio button, etc.) on a form called fields. It has three attributes TYPE, NAME and VALUE. TYPE provides the characteristics of the field and the NAME specifies a name to the field by which it can be referred.
-
What is a Form collection?
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.
-
What is the difference between Cookies collection and Form/Querystring collection?
Cookie collection does not have the Count property. Cookies can have multiple values for the same cookie name but each value can be referred using a key whereas in a Form/Querystring cookie each value has to be referred using an index value.
-
What is a TextStream object?
It allows you to access(read/write) the contents of text files stored on the web server.
-
What are the event handlers of Session Object?
• Session _OnStart – This event will be fired when a new user begins a session with the web site. • Session_OnEnd – This event is called whenever a session terminates.
-
What is ClientCertificate collection?
A ClientCertificate is an encrypted number that is stored in a file on the user’s computer. This stores details of any security certificates included with the request.
-
What is Querystring collection?
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
-
What is ServerVariables collection?
The ServerVariables collection holds the entire HTTP headers and also additional items of information about the server.
-
ASP Interview Questions
Ans