tag:blogger.com,1999:blog-8416807644832025349.post2227613616296196220..comments2016-03-03T11:26:59.889-08:00Comments on Lexical Closures: Paging in ASP.NET using NHiberateUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8416807644832025349.post-66781851415064097572010-08-19T21:31:15.748-07:002010-08-19T21:31:15.748-07:00@sneal- That link looks familiar. :-)
@brian- Wha...@sneal- That link looks familiar. :-)<br /><br />@brian- What sneal suggests is your best option.Ray Vegahttps://www.blogger.com/profile/08881925233876970678noreply@blogger.comtag:blogger.com,1999:blog-8416807644832025349.post-37373119341705088792010-08-18T06:47:43.220-07:002010-08-18T06:47:43.220-07:00Brian, you have to run a separate count query to g...Brian, you have to run a separate count query to get the total number of non-paged rows. http://stackoverflow.com/questions/54754/how-can-you-do-paging-with-nhibernateAnonymoushttps://www.blogger.com/profile/12673546248813988214noreply@blogger.comtag:blogger.com,1999:blog-8416807644832025349.post-61148921576695965322010-08-17T10:47:26.948-07:002010-08-17T10:47:26.948-07:00Yes, but how do you determine the total page numbe...Yes, but how do you determine the total page numbers? Do you divide the total records by records you want to view to get the page amount?Brian Wilkinshttps://www.blogger.com/profile/13600273886071125088noreply@blogger.comtag:blogger.com,1999:blog-8416807644832025349.post-14447219986526998562009-02-02T21:51:00.000-08:002009-02-02T21:51:00.000-08:00Much agreed about using an MVC framework. Things b...Much agreed about using an MVC framework. Things become difficult whenever you try to do something that does not conform to how ASP.NET WebForms normally behaves.Ray Vegahttps://www.blogger.com/profile/08881925233876970678noreply@blogger.comtag:blogger.com,1999:blog-8416807644832025349.post-29043309059343845812009-01-31T08:58:00.000-08:002009-01-31T08:58:00.000-08:00Yeah, it's almost never a good idea to return all ...Yeah, it's almost never a good idea to return all rows without some sort of criteria and/or paging.<BR/><BR/>The whole paging thing would be very easy to create using an MVC framework, but you could also create a reusable component for that like <A HREF="http://ayende.com/Blog/archive/2007/04/08/Building-View-Components-For-MonoRail.aspx" REL="nofollow">this</A><BR/><BR/>The 1:1 DAO to domain object would be better replaced by a few aggregate roots and repositories; It sounds like you essentially have a table row gateway pattern.Anonymoushttps://www.blogger.com/profile/12673546248813988214noreply@blogger.com