Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>


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
Posted
Updated 5-Sep-14 8:01am
v2
Comments
Nathan Minier 5-Sep-14 14:11pm    
Are you using Web Forms, MVC, services...what framework are you working with?
faizel s 5-Sep-14 14:19pm    
asp.net framework 4

1 solution

 
Share this answer
 
Comments
faizel s 13-Sep-14 4:23am    
thank you chauhan for helping me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900