Click here to Skip to main content
15,919,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
now, I have a grid view with picture from data base which setted on next, prev,final, first.
I want to know how I can make automatic slide show without clicking on next link. for example each 4 seconds the next picture appear automatically.
now my gridview shows one row per page.
do you have any idea? is grid view a correct thing for using this?
Thanks,
Posted
Comments
fjdiewornncalwe 17-Nov-10 8:50am    
Is this a WinForms or Web App for starters?

You can have ajax time control for that.

after specific amount of time load (currentpage + 1) in gridview by loading gridview again.

Check for the Edge values if page is first then prohibit previous and if page is last then prohibit next.
 
Share this answer
 
Thanks for your reply Hiren. can you give me an example about it?
 
Share this answer
 
Comments
Henry Minute 17-Nov-10 11:35am    
If you want to attract the attention of someone who has answered your question, then add a comment to their answer, just as I am doing to yours. However you would probably save some time by using a search engine to search for 'ajax time control'. I'm sure that you'll find lots of samples.
Sam Zargham 21-Nov-10 20:39pm    
mate I know how Timer works or how I have to use the update panel. my problem is finding the event which controls page number of gridview. in each iteration I need to have access somehow to the counter element due to adding 1 into that. btw, I asked whether using GridView for this scenario is suitable or not?

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