ASP Multiple choices


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

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?


 

 

 

 



C


Solution:-

The AdRotator control randomly selects banner graphics from a list, which is specified in an external XML schedule file. This external XML schedule file is called the advertisement file.

The AdRotator control permits or allows you to specify the advertisement file and the type of window that the link should follow in the AdvertisementFile and the Target property respectively.

The following code depicts the basic syntax of adding an AdRotator control:
<asp:AdRotator  runat = "server" AdvertisementFile = "adfile.xml"  Target =  "_blank" />

The following example shows using AdRotator Control Create a new web page and place an AdRotator control on it.

<form id="form1" runat="server">
<div>
 <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile ="~/ads.xml" onadcreated="AdRotator1_AdCreated" />
</div>
</form>

The ads.xml file and the image files should be located in the root directory of the web site.

Try to execute the above application and observe that each time the page is reloaded, the ad is changed.




Next 5 multiple choice(s)

1

Which of these objects is NOT an ASP component?

2

Global.asa is required for all Web sites

3

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

4

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

5

All users of the same application share ONE Application object.

Comments