Reputation: 321
I want to make a website and in the Home Page Home.aspx
I want to have an ImageSlider.
I want the ImageSlider to get his URLs from my database. I made a function which connects to my database and returns my images Array.
This is my Home.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Home.aspx.cs" Inherits="Pages_Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Image ID="sliderImageNews" runat="server" style="height:400px; width:100%; "/>
</asp:Content>
I wanted to put a timer and in each interval to change the ImageUrl but it calls Page_Load
every time..
I would like something like this slider from Microsoft Website : https://www.microsoft.com/en-us
How should i start ? Or what pieces of advice can you tell me?
Thank you !
Upvotes: 0
Views: 540
Reputation: 94
Use Jquery Sliders instead of creating your own, And bind the image urls as per the slider type
http://designscrazed.org/free-responsive-jquery-image-sliders/
Upvotes: 1