How to make Datalist responsive for Mobile
I am using Datalist for displaying product, it is working fine on desktop but when i see datalist on mobile device, then it is not getting responsive according to mobile images getting overlaps and zoom image is not working and image click query is also not working on mobile.
below is my html
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="productdetails.aspx.cs" Inherits="WebApplication21.View.User.productdetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<link href="../../css/bootstrap.css" rel="stylesheet" />
<link href="../../css/bootstrap.min.css" rel="stylesheet" />
<div class="row">
<div class="col-sm-4" style="height:500px; ">
<asp:Image ID="Image1" runat="server" CssClass=" img-rounded img-responsive" Style="width:300px;height:300px;margin-top:20px"/>
</div>
<div class="col-sm-8" style="height:500px; ">
<h1> Name : <asp:Label ID="Label1" runat="server" Text="Product Name"></asp:Label></h1>
<h2> Date : <asp:Label ID="Label2" runat="server" Text="Price"></asp:Label> </h2>
<h2>Price : <asp:Label ID="Label3" runat="server" Text="Phone"></asp:Label> </h2>
<h2> Email : <asp:Label ID="Label4" runat="server" Text="Posted By:"></asp:Label> </h2>
<h2>Contact: <asp:Label ID="Label5" runat="server" Text="Posted By:"></asp:Label> </h2>
</div>
</div>
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" >
<ItemTemplate>
<asp:Image ID="Data" runat="server" CssClass="img-rounded img-responsive" Width="120px"
Height="100px" ImageUrl='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("Data")) %>'
alt="" data-zoom-image='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("Data"))%>' />
<br /><br />
</ItemTemplate>
</asp:DataList>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/elevateweb/elevatezoom/master/jquery.elevateZoom-3.0.8.min.js"></script>
<script type="text/javascript">
$(function () {
$("[id*=DataList1] img").elevateZoom({
cursor: 'pointer',
imageCrossfade: true,
loadingIcon: 'loading.gif'
});
$("[id*=DataList1] img").on('click', function () {
$('[id*=Image1]').attr('src', $(this).attr('src'));
});
});
</script>
</asp:Content>