I have a list of 1000 clients that I show through a datalist control in asp.net. The list displays one client per page.
The query I use to link the data list is:
static public DataTable GetAllCustomers()
{
string sql = "Select * from [Customers]";
SqlDataAdapter da = new SqlDataAdapter(sql, ConnectionString);
DataTable dt = new DataTable();
da.Fill(dt);
return dt;
}
What I want to do is when the client is browsing, he must return to the bottom of the list so that after the user is logged in a second time, he does not need to start from the very beginning of viewing the same client, clients must go to the bottom of the list of 1000 clients, for example, if one client 1 is viewed, then the next time when client 1 becomes 1000 clients and client 2 becomes client 1, hope that this makes sense.
, db .