473,395 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to use adrotator with database

hi
any one use adrotator with database
how to bind adrotator with sqlserver and how to trace no. of hits on a particular ad and how to save visitor information.
Jul 29 '07 #1
2 2517
kenobewan
4,871 Expert 4TB
Here is an article that may help:
Display Ads From a Database Using the AdRotator Web Server Control
Jul 29 '07 #2
Kosal
68
hi
any one use adrotator with database
how to bind adrotator with sqlserver and how to trace no. of hits on a particular ad and how to save visitor information.
Hi
As below code for using AdRotator with Database



<%@ Page Language="VB" %>
<!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 id="Head1" runat="server">
<title>AdRotator Database</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:AdRotator
id="AdRotator1"
DataSourceID="srcAds"
Runat="server" />

<asp:SqlDataSource
id="srcAds"
ConnectionString="Server=.\SQLExpress;Integrated Security=True;
AttachDbFileName=|DataDirectory|Books\AspNet2Unlea shed\Chapter4\AdListDB.mdf;User Instance=True"
SelectCommand="SELECT ImageUrl, Width, Height, NavigateUrl, AlternateText, Keyword, Impressions
FROM AdList"
Runat="server" />

</div>
</form>
</body>
</html>
Feb 29 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Erica | last post by:
My images in Adrotator are not displaying. The ALT tag only displays. My text file looks like this: redirect redirect.asp border 0 height 115 width 215 * /images/awards.swf...
0
by: Erica | last post by:
Hopefully someone can offer me a workaround to this problem: I am using adRotator to rotate some reminders on my intranet site. I have a redirect page name redirect.asp that recieves the...
1
by: clintonG | last post by:
After months of stable operation the AdRotator has become unstable. Maybe its the Themes or the MasterPage who knows? The AdRotator is showing the images from Theme 1 when Theme 2 is selected...
5
by: Dan | last post by:
Hi, I created an AdRotator control with this code: <asp:AdRotator id="AdRotator1" Runat="Server" AdvertisementFile="adrotator.xml"> </asp:AdRotator> The xml file contains: <Advertisements>...
1
by: Aussie Rules | last post by:
Hi, I have a few adrotators on a page, each bound to a sql dataset from my database The function works fine, but as we are going to charge for the advertising impression and click throughs I...
5
by: MC | last post by:
I've been using the ASP.NET ad rotator for some time and have been asked to track the hits and click thrus, The solution that seemed obvious to me was to extend the existing control to record the...
0
by: MC | last post by:
I have coded an AdRotator to use a Database for it's data source. If I use a SqlDataSource control it functions as expected, however if I manually retreive the data using an OleDBDataReader It...
1
by: ~V~ | last post by:
Hi I m new biew to asp.net. I wanna use Adrotator in my page which shows the images from database (Means the url of image is stored in database and images is saved in a folder) For it i simply...
0
Kosal
by: Kosal | last post by:
Hi Please help me to create AdRotator using Database Access in ASP.NET if everyone can because I don't know how to create table AdList in access and how to contect to access and get data from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.