Good Day Dotnetfundakumar
I will not Allow people to Post the Same Question twice. Its not allowed here. After you have Posted something, please be patient until someone comes and reply to your post.
To load Pictures like Winners you can use a Add Rotator Control like this
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Timer ID="Timer_RightSecond" runat="server" OnTick="Timer_RightSecond_Tick">
</asp:Timer>
<asp:AdRotator ID="AdRotator_RightSecond" runat="server" DataSourceID="XmlDataSourceRightSecond" />
<br />
<asp:XmlDataSource ID="XmlDataSourceRightSecond" runat="server" DataFile="~/RightSecond_Home.xml">
</asp:XmlDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
Now what i did here i have placed an Add Rotator Control inside an Update Panel and after that i have put a timer Control and after Certain Intervals the Images will Change. Now let me show you how my XML looks like
<Advertisements>
<Ad>
<ImageUrl>~/images/Home/Banner Flat_Second_2/Office_Reliance.gif</ImageUrl>
<NavigateUrl>http://affiliates.trafficsynergy.com/z/1023127/CD8311/</NavigateUrl>
<AlternateText>Office Reliance</AlternateText>
<Impressions>50</Impressions>
<Keyword>Office Reliance</Keyword>
</Ad>
<Ad>
<ImageUrl>~/images/Home/Banner Flat_Second_2/HealthSpa.gif</ImageUrl>
<NavigateUrl>http://affiliates.trafficsynergy.com/z/1012170/CD8311/</NavigateUrl>
<AlternateText>Health Spa</AlternateText>
<Impressions>75</Impressions>
<Keyword>Health Spa</Keyword>
</Ad>
</Advertisements>
Now in the Timer Tick event you must Update the UpdatePanel so that it can do the partial update and add the Following code
protected void Timer_RightSecond_Tick(object sender, EventArgs e)
{
UpdatePanel1.Update();
}
Now after Certain intervals this will Display images Randonly. As you can see i have added the <NavigateUrl> tag , now this means if the image gets click , it will redirect the user to that url.
Thank you For Posting at Dotnetfunda. Please To cross post again.
Vuyiswa Maseko
Thank you for posting at Dotnetfunda
[Administrator]
Dotnetfundakumar, if this helps please login to Mark As Answer. | Alert Moderator