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 VarshneyPosted Oct 10, 2015, 9:54 AM
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
Priyaranjan K SPosted Oct 9, 2015, 3:36 PM
umair mohsinPosted Oct 9, 2015, 2:13 PM
Akash VarshneyPosted Oct 7, 2015, 3:25 AM