Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Can any one help me
In asp.net page i have a data , query string data(pulled from Previous page) and below that i have a data grid view and below that images regarding of that particular ticket-id.till now everything works so good
now i would like to put two link button named as Previous and Next.
if i click on Next Link button i have to get next ticket-id information and image of the particular ticket-id. and vice-verse to Previous lnkbutton.next information should be display on the same page only.
i hope so ,u guys understood by problem.
Posted
Comments
Parwej Ahamad 8-Jun-11 15:44pm    
On the basis of previous page parameter:
Are you pulling the multiple records from the database and displaying first record then do you want to implement the next and previous functionality?
OR
Pulling single record from the database then trying to implement Next and Previous functionality?

Note: Are you maintaining any sequence order for your ticket-id? please mention.

Thanks

Yes the order seems to be the key. If you have an order, you can just query the database for the next and previous ticket-ids (if existant) and put those in the link button (on Page_load)
 
Share this answer
 
If you have the next ticket id when you click on next or previous button (from query string or from some viewstate), you can get that particular ticket details on next or previous link button click event and load the page details for the same.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900