How to write code on Next and Prev. Buttons
-
Hi, I am feching the records from arraylist using datarow. One by One record fetch and stored it into the varibles. Now I have 2 buttons one is Next and other is Prev. I want to circulate the records by using the Next and Prev buttons. on the Next button when click Next record will be display on the form and on the Prev button Previous record will be display. I have 10 records in the arraylist. It is like online exam paper. Thanks, sjs4u
-
Hi, I am feching the records from arraylist using datarow. One by One record fetch and stored it into the varibles. Now I have 2 buttons one is Next and other is Prev. I want to circulate the records by using the Next and Prev buttons. on the Next button when click Next record will be display on the form and on the Prev button Previous record will be display. I have 10 records in the arraylist. It is like online exam paper. Thanks, sjs4u
Are you using any control to show the records like repeater,Gridview ? If no then just create a session varaible, store the index of the reacord that you are showing when you click next increment that index by one and when say Prev decrement that record by one and fetch the record from your arraylist.Also check lower and upper bound of your arraylist
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
Hi, I am feching the records from arraylist using datarow. One by One record fetch and stored it into the varibles. Now I have 2 buttons one is Next and other is Prev. I want to circulate the records by using the Next and Prev buttons. on the Next button when click Next record will be display on the form and on the Prev button Previous record will be display. I have 10 records in the arraylist. It is like online exam paper. Thanks, sjs4u
-
Are you using any control to show the records like repeater,Gridview ? If no then just create a session varaible, store the index of the reacord that you are showing when you click next increment that index by one and when say Prev decrement that record by one and fetch the record from your arraylist.Also check lower and upper bound of your arraylist
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "