Slide show of images in a datalist with next and previoues

Why Dynamic Image Slider not working in Asp Datalist c#a

  • Why My dynamic image slider not working in Datalist
  • Why Image Slider is not working in Datalist
  • Slide show of images in a datalist with next and previoues button how please?

Reason : Hello friends here i am going to tell you why Dynamic Image slider is not working in datalist because when datalist render in browser then its becomes in table and row formate so our slider div goes inside the table.

So image slider not working in data list.

Solution : you have to use <asp:Repeater></asp:Repeater> to create dynamic image slider …

                    <div class="carousel-inner">
                       <asp:Repeater runat="server" ID="dlPropertyDetails" >
                          <ItemTemplate>
                          <div id="first" class="item carousel-item" data-slide-number="0">
                              <asp:Image class="img-fluid" alt="slider-properties" runat="server" ID="imgshow" ImageUrl='<%#"Pictures/"+Eval("imageName")%>' />
                          </div>
                         </ItemTemplate>
                      </asp:Repeater>
                       
                        <a class="carousel-control left" href="#propertiesDetailsSlider" data-slide="prev"><i class="fa fa-angle-left"></i></a>
                        <a class="carousel-control right" href="#propertiesDetailsSlider" data-slide="next"><i class="fa fa-angle-right"></i></a>
                    </div>

Leave a Reply

avatar
  Subscribe  
Notify of