ASP Multiple choices


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

In ASP, which command is used to create a cookie?


 

 

 

 



A


Solution:-

Cookies" command is used to create cookies ASP.

Note: The Response. Cookies command must appear BEFORE the <html> tag.

In the following example, we will create a cookie named "slightbookname" and assign the value "HTML" to it:

<%
Response.Cookies("slightbookname")="HTML"
%>
It is also possible to assign properties to a cookie, like setting a date when the cookie should expire:
<%
Response.Cookies("slightbookname")="HTML"
Response.Cookies("slightbookname").Expires=#May 10,202021#
%>

 




Next 5 multiple choice(s)

1

How do you create a FileSystemObject?

2

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?

3

Which of these objects is NOT an ASP component?

4

Global.asa is required for all Web sites

5

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

Comments