Active Server Pages or ASP, as it is more commonly known, is a technology that enables you to make dynamic and interactive web pages.
ASP uses server-side scripting to dynamically produce web pages that are not affected by the type of browser the web site visitor is using.
ASP Interviews are getting tough these days as the technology grows faster. To get through the ASP interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed ASP questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on ASP and various other technologies interview preparation.
1. Explain the difference between POST and GET Method.
R: GET requests are string data that is visible to the end user via the URL and a limit of 2kb, POST requests have no limit on total data and the user can?t see the data in a query string.
2. Explain the POST & GET Method or Explain the difference between them?
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.
3. How are scripts executed?
ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the Delimiters.
4. How can you change the primary scripting language for a page?
Specify
5. How can you disable the browser to view the code?
Writing codes within the Tag
6. How can you have different number of cells for each row of a table in HTML?
using colspan and rowspan
7. How do you create a recordset object in VBScript?
Answer1
//First of all declare a variable to hold the Recordset object, ex-
Dim objRs
//Now, Create this varible as a Recordset object, ex-
Set objRs=Server.CreateObject(ADODB.RECORDSET)
Answer2
? rs.MoveNext
wend
end if
%?>
*. Create Recordset object
*. Place form field value in a variable named ?param?
*. Define query by concatenating strings and variable value
*. Open RecordSet Object. Note that the first parameter is the Command Text. The second parameter is the Connection String. The Command Object and Connection Object are created implicitly.
*. Make sure the RecordSet isn?t empty
*. Begin executing a loop which goes through all records in the RecordSet.
*. Write each record?s ?firstname? and ?lastname? fields to the page on a separate line.
*. Move to Next Record.
8. How many global.asa files can an Application have?
Only one global.asa file and it?s placed in the virtual directory?s root.
9. How will you delete a Cookie?
By setting its Expires property to any date prior to today Response.Cookies("cookie name"). Expires = Date 1.
10. Name some of the ASP components?
Ad Rotator component- a way to manage advertisements on the web site.
Content Linker component - a technique to direct users through a set of pages on a web site by creating a list of URLs and description of the next and previous pages.
Browser Capabilities component - allows to customize the page to the ability of the browser viewing it.
Database Access component - allows to access data from the database