如何使用存储在数据库中的imagepath创建图像滑块 [英] how to make a image slider with imagepath stored in database
问题描述
我创建了一个图像滑块,如下所示
Hi,
I have created a image slider as shown below
<section class="slider">
<div class="flexslider">
<ul class="slides">
<li>
<img src="big/Lighthouse.jpg" />
<div class="myCaption">blah, blah, blah</div>
</li>
<li>
<img src="big/Penguins.jpg" />
<div class="myCaption">blah, blah, blah</div>
</li>
<li>
<img src="big/Tulips.jpg" />
<div class="myCaption">blah, blah, blah</div>
</li>
</ul>
</div>
</section>
但是我想让这个图像滑块从数据库中检索图像路径并显示图像slide.Here我有一个名为image的数据库表
id imagepath
1 image / 1.jpg
2 image / 2.jpg
3 image / 3.jpg
如果sql表图片有3个条目,滑块应该有3个幻灯片或者如果sql表图像有4个条目,滑块应该有4个幻灯片等等。任何人都可以告诉我任何方法让幻灯片自动检索imagepath并将其显示在slider.I是asp.net的新手,请帮帮我。提前谢谢。上帝保佑你
But i want to make this image slider to retrieve imagepath from the database and display image in the slide.Here i have a database table called image
id imagepath
1 image/1.jpg
2 image/2.jpg
3 image/3.jpg
if sql table image has 3 entries, slider should have 3 slides or if sql table image has 4 entries,slider should have 4 slides and so on.Can any one tell me any way to make the slide automatically retrieve imagepath and display it in the slider.I am new to asp.net,please help me .Thanks in advance.God bless you
推荐答案
请试试这个链接
http://aspsnippets.com/Articles/Implement-Image-Slider-using-jQuery-in-ASPNet.aspx [< a href =http://aspsnippets.com/Articles/Implement-Image-Slider-using-jQuery-in-A SPNet.aspxtarget =_ blanktitle =New Window> ^ ]
ASP.NET中的JQuery轮播控件 [ ^ ]
Please try this link
http://aspsnippets.com/Articles/Implement-Image-Slider-using-jQuery-in-ASPNet.aspx[^]
JQuery Carousel Control in ASP.NET[^]
这篇关于如何使用存储在数据库中的imagepath创建图像滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!