hello to everyone
i want to design an application in which i want to fetch data from database.there would be text boxes as per database columns and 4 buttons
for first,last,next and previous record. i want to show data base data in these text boxes and loop through each database record using. i think now the scenerio is very clear.anybody help me in it

Akash VarshneyRank #1,895 · 780 reputationPosted Oct 6, 2015, 11:25 PM EDT
umair mohsinRank #3,092 · 463 reputationPosted Oct 9, 2015, 10:13 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 9, 2015, 11:36 AM EDT
Akash VarshneyRank #1,895 · 780 reputationPosted Oct 10, 2015, 5:54 AM EDT
As per my understanding you need two show database values to your UI . in your case those are text boxes .
Now suppose you have a table which have some columns like below.
DB table
Id
Col1
Col2
Col3
Col4
1
111
222
333
444
2
Aaa
Ccc
Ddd
3
Xxx
Yyy
Zzz
Ooo
UI text box
txtbox1 111
Txtbox2 222
Txtbox3 333
Txtbox4 444
< last>>
you want to see data in the textboxes on click of those buttons
FIRST CLICK----- Select * from Table Offset 0 Fetch Next 1 Row
Last click-------- Select * from Table Offset (n-1) Fetch Next 1 Row
in the same way you NEED KNOW maintain the OFFSET Value to get the Specific result