project aspx 6: creating and using adrotator...
TRANSCRIPT
Project ASPX 6: Creating and Using AdRotator Controls
1
Describe / Use AdRotator Control Use with Access database
Use with XML
2
3
◦ provides a convenient way to display advertisements on ASP.NET web pages (.aspx)
◦ displays a graphic image …
.gif, .jpg, .png file or similar image
◦ when users click the advertisement … they are redirected to a target URL that is specified
4
◦ reads advertisement information … (such as the graphic file name & the target URL)
◦ from a list of ads in a data source (usually an XML file or database table)
◦ randomly selects ads changes the displayed ad each time the page is
refreshed
◦ advertisements can be weighted makes it possible to have certain ads display more
often than others
5
Using Access 2013 as the Data Source◦ Select a blank database
6
Access 2013◦ Save the database
As .accdb
As .mdb
7
Access 2013◦ Create the
database
8
Access 2013◦ Develop the table
9
Access 2013◦ Enter the
field names
10
Access 2013◦ Drag a data source control
onto the web page
◦ Configure the data source
11
Access 2013◦ Save the database
◦ Select the database for the control
12
Access 2013◦ Configure the data
source
◦ Test the database
13
AdRotator Control◦ Add the control to the page
14
AdRotator Control◦ Add the control to the page
◦ Update the properties
15
XML◦ Create an
XML file
16
XML◦ Save the file
and name it
17
18
XML◦ Add the XML code for the advertisements
19
AdRotator Control◦ Add the control to an .aspx page
20
XML◦ Add the XMLDataSource
control to the page
21
AdRotator Control ◦ Add the control to the page
22
AdRotator Control ◦ Configure the XML Data Source data file location
23
AdRotator Control◦ Add the control to the
page
24
AdRotator◦ Add the control to the page
25
Develop Advertisements◦ Use Access as a data source
◦ Use XML as a data source
26
Project ASPX 6: Creating and Using AdRotator Controls
Completed
27