• +91 9971497814
  • info@interviewmaterial.com

ASP Interview Questions Answers

Question 1 : Explain the difference between POST and GET Method ?

Answer 1 : 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.

Question 2 : Explain the POST & GET Method or Explain the difference between them?

Answer 2 : 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.

Question 3 : Give the comment Tags for the following?

Answer 3 : VBScript : REM & ‘(apostrophe) JavaScript : // (single line comment) /* */ (Multi-line comments)

Question 4 : How are scripts executed?

Answer 4 : ASP provides scripting engines that execute the corresponding scripting languages on the server side. Scripts should be encoded within the Delimiters.

Question 5 : How can you change the primary scripting language for a page?

Answer 5 : Specify

Question 6 : How can you disable the browser to view the code?

Answer 6 : Writing codes within the Tag

Question 7 : How can you have different number of cells for each row of a table in HTML?

Answer 7 : using colspan and rowspan

Question 8 : How do you create a recordset object in VBScript?

Answer 8 : //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) ============= ” 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.

Question 9 : How do you get the value of a combo box in Javascript?

Answer 9 : 1. document.forms[’formName’].elements[’comboName’].options[i].value 2. document.form_name.element_name.value  

Question 10 : How do you write an SQL insert statement?

Answer 10 : insert into tablename (fieldA, fieldB, fieldC)Values(’dataA’, ‘dataB’, ‘dataC’);

ASP Contributors


Share your email for latest updates


Our partners