Skip to content

Commit c60c0b3

Browse files
Create adrotator xml code
1 parent b5f87b0 commit c60c0b3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

adrotator xml code

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
XMl.xml
2+
<?xml version="1.0" encoding="utf-8" ?>
3+
<Advertisements>
4+
<Ad>
5+
<ImageUrl>ITHEIT_logo_tr-bg.png</ImageUrl>
6+
<NavigateUrl>https://www.google.com/</NavigateUrl>
7+
<AlternateText>Logo</AlternateText>
8+
<Impressions>1</Impressions>
9+
<Keyword>ITheit</Keyword>
10+
</Ad>
11+
12+
<Ad>
13+
<ImageUrl>http://localhost:65424/Harsh Chaudhari-anime.jpg</ImageUrl>
14+
<NavigateUrl>https://www.yahoo.com/</NavigateUrl>
15+
<AlternateText>Anime Image</AlternateText>
16+
<Impressions>10</Impressions>
17+
<Keyword>IThet</Keyword>
18+
</Ad>
19+
</Advertisements>
20+
adro.aspx
21+
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ad.aspx.cs" Inherits="ad" %>
22+
23+
<!DOCTYPE html>
24+
25+
<html xmlns="http://www.w3.org/1999/xhtml">
26+
<head runat="server">
27+
<title></title>
28+
</head>
29+
<body>
30+
<form id="form1" runat="server">
31+
<div>AD Rotator Example</div>
32+
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/XMLFile.xml" />
33+
</form>
34+
</body>
35+
</html>

0 commit comments

Comments
 (0)