I have a three texbox and Next and Prevoius BUTTON .
When i click on next, next value with respect to AUTOGENERATED ID should be fetch and when i click on previous ,prevoius value should be fetch.
let suppose, i am displaying current record as 2 ,when i click on next 3 should be display,
but when i click on previous 1 should be display.
But my problem is that each time whenever i click on NEXT or PREVOIUS button i have to get data from the database .I dont want to do this i want to store previous and next record in some object.how will i do so.I dont want to use viewstate or cache or session or application object .Is there any diffenrent logic .please help
If you dont load the page again, use an
asp:HiddenFieldto store that value.Or… use cookies
Then you check if the hidden field or specific cookie has any value assigned
Create a cookie that stores the data you got from database.
Check if cookie is not null, if true get it’s value else go to
database and create the cookie with the value
how to manipulate cookies: