I find links are really good for this. Set up your webpage so that the record is determined by a variable in the querystring, e.g. Your dynamic webpage has a link that looks like this "http://www.domain.com/path/to/file.aspx?page=5". In the code behind, you can retrieve the page using...
string pageIndex = HttpContext.Current.Request["page"];
Then you simply create the links for the for the paging...
string pageUrl = "http://www.domain.com/path/to/file.aspx";
string previousLink = "<a href=\"" + pageUrl + "?page=" + (pageIndex - 1) + "\"><< Previous Article</a>";
string nextLink = "<a href=\"" + pageUrl + "?page=" + (pageIndex + 1) + "\">Next Article >></a>";
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|