Currently when i press my previous button it only returns results to my text box. I want it to loop through the results. So the first time the button is clicked it will show the first record, looping through.
protected void btnPrevious_Click1(object sender, EventArgs e)
{
DAL.TicketsDataSetTableAdapters.TicketDetailsTableAdapter eobj = new DAL.TicketsDataSetTableAdapters.TicketDetailsTableAdapter();
DataTable dt = new DataTable();
dt = eobj.GetTicketUpdates(txtSupportRef.Text);
txtNextStep.Text = eobj.GetTicketData(txtSupportRef.Text).Rows[0]["NextStep"].ToString();
}
I would like to know how to return all my records and then loop through each one of them based on each click?
The idea is when you select a ticket it loads the latest details into the form. But then my intention is to have a previous and next button so that i can loop through the various updates that a ticket was on...