AdRotator control in asp.net

ASP.NET-AdRotator control:


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 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 basic syntax of adding an AdRotator is as follows:

<asp:AdRotator runat = "server" AdvertisementFile = "adfile.xml" Target = "_blank" />
Before going into the details of the AdRotator control and its properties, let us look into the
construction of the advertisement file.


The Advertisement File

The advertisement file is an XML file, which contains the information about the advertisements tobe displayed.

Extensible Markup Language XML is a W3C standard for text document markup. It is a text-basedmarkup language that enables you to store data in a structured format by using meaningful tags.

The term 'extensible' implies that you can extend your ability to describe a document by defining meaningful tags for the application.

XML is not a language in itself, like HTML, but a set of rules for creating new markup languages. It is a meta-markup language. It allows developers to create custom tag sets for special uses. It structures, stores, and transports the information.



Following is an example of XML file:

<BOOK>
<NAME> Learn XML </NAME>
<AUTHOR> ayz </AUTHOR>
<PUBLISHER>parijat.blogspot./ </PUBLISHER>
<PRICE> $10.00</PRICE>
</BOOK>



Like all XML files, the advertisement file needs to be a structured text file with well-defined tags
delineating the data. There are the following standard XML elements that are commonly used in
the advertisement file:



Asp.net related other post:

·                     Understanding controllers in Asp.net MVC
·                     Action Method in Asp.net MVC Controller
·                     Controllers and Action Methods in ASP.NET MVC Appl...
·                     Asp.net Step By Step Working with MVC3
·                     Asp.net with c# example - datetime day of week
·                     Asp.net web Development related Important Post Li...
·                     Why the web.cofig file is very important (The Role...
·                     Validate a date using RangeValidator in asp.net c#...
·                     Example of Asp.net PlaceHolder Server Control
·                     Asp.net PlaceHolder Server Control
·                     C# Coding Conventions (C# Programming Guide)
·                     List of Coding Standard guidelines/checklists for ...
·                     What is the best way to create HTML in C# code
·                     Display Data in HTML Table from Database using Asp...
·                     Templates in Asp.net DataList Control
·                     Introduction of Asp.net Datalist Control


·                     How to bind asp datalist control dynamically

Comments

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.
    Thanks for helping me to understand basic concepts. As a beginner in java programming your post help me a lot.Thanks for your informative article.Dot Net training in chennai | Dot Net training institutes in chennai | Dot Net training in velachery


    ReplyDelete

Post a Comment

Popular posts from this blog