ASP Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - ASP

How do you create a FileSystemObject?


 

 

 

 



C


Solution:-

The FileSystemObject Object
The FileSystemObject object is used to access the file system on a server. This object can manipulate directory paths, files, and folders. It is also possible to retrieve file system information with this object.

The following code creates a text file (c:slightbook.txt) and then writes some text to the file:

<%
dim fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile("c:slightbook.txt",true)
fname.WriteLine("Hello Slightbook World!")
fname.Close
set fname=nothing
set fs=nothing
%>

 




Next 5 multiple choice(s)

1

ASP comes with a standard component that displays a different advertisement each time a user enters or refreshes a page, what is the name of this component?

2

Which of these objects is NOT an ASP component?

3

Global.asa is required for all Web sites

4

Which one of these events is a standard Global.asa event?

5

If a user has cookies enabled, a session variable is available to all pages in one application.

Comments