I have two set of Images named as Div1 and Div2 that has to be called in the Slideshow. The condition is like that,
For the first Seven days, I want the first set of Div's of images to be shown in the slideshow, as soon as the seven days are completed the next set of Div's images should be shown. I know it is possible through the Timer Control. But I haven't used till now.
No code till now to share, as I have called the Images in slideshow from the table. Do let me know if you want anything else.
Please help. So that I can use it
Any help would be appreciable
My code for the slideshow is here:-
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["DefaultSQLConnectionString"].ConnectionString);
SqlDataAdapter da = new SqlDataAdapter("SELECT Name FROM tblImages", conn);
DataTable dt = new DataTable();
da.Fill(dt);
rptImages.DataSource = dt;
rptImages.DataBind();
Page.Header.DataBind();
}
aspx code:-
<div class="imgbanner-login" style="margin-bottom: 10px;">
<div class="img-login-ca">
<div class="index-img-banner">
<div id="slider" class="nivoSlider">
<asp:Repeater ID="rptImages" runat="server">
<ItemTemplate>
<li style="list-style: none;">
<img alt="" src='<%# Eval("Name") %>' />
</li>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
<div class="login">
<uc1:indexrightpanel runat="server" id="indexRightPanel" />
</div>
</div>
</div>
Also see the db strucutre:-
ID int Unchecked
Name nvarchar(MAX) Checked
[Order] int Checked
Name column consist the Image path