Click here to Skip to main content
15,896,606 members
Articles / Web Development / ASP.NET

Flash ASP.NET AdRotator using Database

Rate me:
Please Sign up or sign in to vote.
3.52/5 (14 votes)
5 Apr 2008CPOL3 min read 185K   3.9K   53  
Implement a Flash ASP.NET AdRotator to fetch ads from a database.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Flash.aspx.cs" Inherits="Flash" %>

<%@ Register Assembly="AdRotator" Namespace="AdRotator" TagPrefix="cc1" %>


<!DOCTYPE html PUBLIC "-//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">
    <title>Untitled Page</title>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;&nbsp;
        
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
   
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                &nbsp; &nbsp;
                <table style="width: 457px">
                    <tr>
                        <td style="height: 305px">
                            <asp:ImageButton ID="PrevBtn" runat="server" ImageUrl="~/Previous.JPG" OnClick="PrevBtn_Click" /></td>
                        <td style="height: 305px">
               <cc1:FlashAdRotator ID="FlashAdRotator1" runat="server" Height="320px" Width="540px" /> 
                        </td>
                        <td style="height: 305px">
                            <asp:ImageButton ID="NextBtn" runat="server" ImageUrl="~/Next.JPG" OnClick="NextBtn_Click" /></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                &nbsp;&nbsp;
            </ContentTemplate>
        </asp:UpdatePanel>
        &nbsp;&nbsp;
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) NYCEDC
United States United States
Pramod has been a software developer for more than 6 years now mostly working on Ajax ASP.NET web applications.

Comments and Discussions