Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hellow every one


i have table name (news) and have 4 fields(news_title,news_body,news_picture_path)

the question is how to bind top 5 recored in slideshow using jquery on my page

such as yahoo slide show

please i have answer with example

please help me quickly ^_^
Posted

1 solution

SELECT TOP 5 news_title,news_body,news_picture_path FROM news



This is the sql statement which will fetch what you want................

have doubt refer this.................

http://www.w3schools.com/sql/sql_top.asp[^]

using asp.net, c# put a gridview write the dataset or datatable and make that gridview diplay none.

now your page having your five news record in table but display property is in none stage.

now using j-query get the value of five records from the table id and do your slideshow ......
 
Share this answer
 
v3
Comments
odai_dahmos 28-Nov-11 17:08pm    
thank you very much vino but i have a complete example and source code
vino2012 2-Dec-11 7:42am    
post your code ,so that able to see the scenario and able to know exactly what you want?

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