ASP.NET – Making an Image Slider

  • by
asp-net making image slider 001

Let’s make an Image Slider in ASP.NET. I am using FlexSlider to make it. It is an Open source Image slider and it is widely popular. It has multiple options of viewing Image slides in different styles. You can visits its Official Website for more info on this.

ASP.NET Image Slider :

ASP.NET Image Slider 01

Step 1 :

Download the source files from

Step 2 :

Copy the CSS, Fonts and JS folder from the sources in your solution as shown in the image below :

ASP.NET Image Slider 2

Step 3 :

Make an images folder in your project and copy any four images of your liking for our ASP.NET Image Slider.

These images will be displayed on our Image Slider.

Step 4 : 

Create an ASPX web page with the name “FlexSliderDemo”, you can make your web page with any name. And with it as below :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FlexSliderDemo.aspx.cs" Inherits="FlexSliderDemo" %>

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link href="css/flexslider.css" rel="stylesheet" type="text/css" />
<link href="css/demo.css" rel="stylesheet" />
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" />
<script src="js/modernizr.js"></script>
<script src=""></script>
<script src="js/jquery.flexslider.js"></script>

<script type="text/javascript">
$(document).ready(function () {
function InitializeImageSlider() {
animation: "slide",
controlNav: true,
directionNav: true,
itemWidth: "100%",
itemHeight: 400

<form id="form1" runat="server">
<div id="main" role="main">
<section class="slider">
<div class="flexslider">
<ul class="slides">
<img src="images/marvel1.jpg" />
<img src="images/marvel2.jpg" />
<img src="images/marvel3.jpg" />
<img src="images/marvel4.jpg" />


This will make our ASP.NET Image Slider work like below :


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.