目前,我可以在一个面板中显示我数据库中的所有问题。我的问题是我如何在我的面板中创建具有下一个/上一个按钮的页面,以便我可以限制一个面板为3个问题或更多? 要清除,当我点击第一页旁边的按钮时,问题将出现问题4 - 问题6,但小组仍然保持。 感谢你的建议=(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 1How old are you ?-10 years old-12 years old-13 years old-18 years oldCurrently, 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 =(推荐答案 在面板中尝试向导控制而不是分页,或者添加一些自定义逻辑以在下一个上一个按钮上逐个绑定问题。即在下一个按钮上单击增加id一个,然后单击上一个按钮将id减一。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. 为什么不使用JQuery插件为你做分页,看看演示: http://luis-almeida.github.io/jPages/pagination.html [ ^ ] 插件可以下载来自 https://github.com/luis-almeida/jPages [ ^ ] 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[^] 这篇关于如何使用aspx.cs在面板中创建分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-30 05:33