ASP Programming

  Home  Microsoft .Net Technologies  ASP Programming


“Learn ASP Programming by Interview Questions and Answers.”



194 ASP Programming Questions And Answers

101⟩ What is the difference between ASP and HTML? Or Why ASP is better than HTML?

- ASP executes code on the server side whereas the browser interprets HTML.

- ASP can use any scripting languages

- Gets feedback from the user and return information to the user

- Create pages that will be customized to display only things that will be of interest to a particular user

- Can edit contents of a web page by updating a text file or a database rather than the HTML code itself

 178 views

103⟩ 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

 169 views

104⟩ What are the tasks performed by <> tags?

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

 179 views

105⟩ What are the tags necessary to be present within the tag ?

-----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.

 170 views

106⟩ 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 variable 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.

 212 views

108⟩ Why do we use Option Explicit?

Answer1

to avoid multiple variables of the same name.

Answer2:

Correct answer is - This statement forces the declaration of variables in VB before using them.

 171 views

114⟩ What is a class in CSS?

Answer1

A class allows you to define different style characteristics to the same HTML element.

Answer2

class is a child to the id, id should be used only once, a css class can be used multiple times:

div id=”banner”

p class=”alert”

 182 views

116⟩ Difference between SAP R/2 and R/3

1)R/2 runs on a mainframe, R/3 runs on Client / Server

2) R/3 has a GIU (thanks to windows) where as R/2 looks more like DOS

3)R/3 has more functionality than R/2 making it the preferable choice

4) SAP will support R/3 after 2004!

 171 views

117⟩ What are the stored procedure and why they are needed?

Stored Procedure is the Concept.Lot of Related sql Queries are Stored inside the Server Database.

The Queries are executed by the user explicitly. The Stored Procedure is used to make the sequence Transactions

File System Object is used to Create, delete, copy, move folders and files in web applications. To use this file system object we have to create object by using Server.CreateObject ("File System Object") command.

 170 views

120⟩ What methods are fired during the page load?

Init() - when the page is instantiated

Load() - when the page is loaded into server memory

PreRender() - the brief moment before the page is displayed to the user as HTML

Unload() - when page finishes loading.

 169 views