ASP (Classic) Interview Questions 3
Define LOCAL and GLOBAL variables in ASP?
Write few ASP components Names?
Describe Scripting Objects?
Define FileSystemObject object?
Define Dictionary object?
December 13, 2007 | Filed Under ASP
Comments
One Response to “ASP (Classic) Interview Questions 3”
Leave a Reply





FileSystemObject Object in ASP
================================
The FileSystemObject object is used to access the file and folders on the server. This object can manipulate files, folders, and directory paths. We can retrieve file system information with this FileSystemObject object.
Dictionary Object in ASP
================================
The Dictionary object is used to store name/value pairs OR the key and item. The Dictionary object is like an array, but its own built-in functionality that looks after the basic tasks of storing and manipulating the data, and sizing for the required number of elements. Each item in the Dictionary object is associated with a unique key. The key is used to retrieve an individual item. We don’t have to worry about which row or column the data is in, we just access it using a unique key.
Rules when you use the Dictionary object:
1. The key is a unique identifier for the corresponding item
2. A value in a Dictionary object can not be an array
exammple
—————–
Dim oDict
Set oDict = Server.CreateObject(”Scripting.Dictionary”)
‘Adding some key/item items to Dictionary
objDict.Add “key1″,”item1″ ‘Add value item1 with key key1
objDict.Add “key2″,”item2″ ‘Add value item2 with key key2
objDict.Add “key3″,”item3″ ‘Add value item3 with key key3