Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi all,
I have created one panel that can use to show the variable of question. In my panel consists of label (question) & radiobuttonlist (answer) as shown below :

Question 1
How old are you ?
-10 years old
-12 years old
-13 years old
-18 years old


Currently, I can display all question in my database in one panel. My question is how can i create page in my panel that have next/previous button so that i can limit one panel for 3 question or more ?
TO be cleared, when i click button next in first page, the question will appear question 4 - question 6 but the panel still maintain.

Appreciate your advise =(
Posted

Try wizard control instead of paging in panel or add some custom logic to bind one by one question on next previous buttons. i.e. on next button click increment id by one and on click on previous button decrements id by one.
 
Share this answer
 
Why don't you use JQuery plugin available to do pagination for you, have a look at the demo: http://luis-almeida.github.io/jPages/pagination.html[^]

the plugin can be downloaded from https://github.com/luis-almeida/jPages[^]
 
Share this answer
 

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