---
title: "How to use adrotator in ASP.net"  
description: "//create Advertmnt.xml~/Images/g.jpghttp://www.1800flowers.com      Order flowers, roses, gifts and moreflowers~/Images/gg.jpghttp://www.1800flowers.c"  
author: "gautam sen"  
published: 2014-03-06  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/650/how-to-use-adrotator-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to use adrotator in ASP.net

//create Advertmnt.xml<?xml [version](https://www.mindstick.com/articles/12845/things-to-remember-while-migrating-odoo-to-a-better-version)="1.0" [encoding](https://www.mindstick.com/interview/752/how-is-encoding-handled-in-ajax)="utf-8" ?><Advertisements> <Ad> <ImageUrl>~/[Images](https://www.mindstick.com/interview/1067/what-is-the-php-predefined-variable-that-tells-the-what-type-of-images-that-php-support)/g.jpg</ImageUrl> <NavigateUrl>http://www.1800flowers.com</NavigateUrl> <AlternateText> Order flowers, roses, gifts and more </AlternateText> <[Keyword](https://www.mindstick.com/forum/33572/sql-inner-join-keyword)>flowers</Keyword> </Ad> <Ad> <ImageUrl>~/Images/gg.jpg</ImageUrl> <NavigateUrl>http://www.1800flowers.com</NavigateUrl> <AlternateText> Order flowers, roses, gifts and more </AlternateText> <Keyword>flowers</Keyword> </Ad> <Ad> <ImageUrl>~/Images/ggg.jpg</ImageUrl> <NavigateUrl>http://www.1800flowers.com</NavigateUrl> <AlternateText> Order flowers, roses, gifts and more </AlternateText> <Keyword>flowers</Keyword> </Ad></Advertisements>\
\
\
//Banner.Aspx\
<%@ Page [Language](https://www.mindstick.com/startup/28/preply-the-fast-growing-platform-transforming-language-learning)="C#" AutoEventWireup="true" CodeFile="Banner.aspx.cs" Inherits="Banner" %>\
<![DOCTYPE](https://www.mindstick.com/interview/23388/what-is-the-importance-of-the-html-doctype) html [PUBLIC](https://www.mindstick.com/blog/11097/java-access-modifiers-the-public-and-the-private-modifiers) "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="[server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over)"> <title></title></head><body> <form id="form1" runat="server"> <div style="height: 221px"> <asp:[UpdatePanel](https://www.mindstick.com/articles/151/asp-dot-net-ajax-server-control-updateprogress-updatepanel) ID="UpdatePanel1" runat="server"> <[Triggers](https://www.mindstick.com/articles/337000/what-are-sql-triggers-and-ways-of-using-them-effectively)> <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /> </Triggers> <ContentTemplate> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <br /> <br /> <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/AdvertsmntFile.xml" KeywordFilter="flowers" Target="_blank" /> </ContentTemplate> </asp:UpdatePanel> <asp:Timer ID="Timer1" runat="server" Interval="2000"> </asp:Timer> </div> </form></body></html>\

---

Original Source: https://www.mindstick.com/blog/650/how-to-use-adrotator-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
