<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Paging demo upgraded to ASP.NET MVC RC</title>
	<atom:link href="http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/</link>
	<description>New adventures in .NET</description>
	<lastBuildDate>Mon, 26 Apr 2010 13:24:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Robert</title>
		<link>http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/comment-page-1/#comment-58</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sat, 28 Mar 2009 20:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/#comment-58</guid>
		<description>There seems to be a bug in paginator related to the fact that it does not shows proper &quot;...&quot; if, for example, are 122 items in datasource. Corresponding number of pages = 13.

If current page is 1, the paginator will display 1,2,3,4,5,6,7,8,9,10 instead of 1,2,3,4,5,6,7,8...12,13.

The same when current page is last page, the paginator displays 3,4,5,6,7,8,9,10,11,12,13 instead of 1,2...,6,7,8,9,10,11,12,13.</description>
		<content:encoded><![CDATA[<p>There seems to be a bug in paginator related to the fact that it does not shows proper &#8220;&#8230;&#8221; if, for example, are 122 items in datasource. Corresponding number of pages = 13.</p>
<p>If current page is 1, the paginator will display 1,2,3,4,5,6,7,8,9,10 instead of 1,2,3,4,5,6,7,8&#8230;12,13.</p>
<p>The same when current page is last page, the paginator displays 3,4,5,6,7,8,9,10,11,12,13 instead of 1,2&#8230;,6,7,8,9,10,11,12,13.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martijn</title>
		<link>http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/comment-page-1/#comment-28</link>
		<dc:creator>martijn</dc:creator>
		<pubDate>Tue, 17 Feb 2009 07:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/#comment-28</guid>
		<description>@Antonio: yes, you&#039;d be querying the database each time, but you have to make sure that the database only returns the data for a specific page.
With Linq2SQL this happens automatically because the pager supports IQueryable. When using NHibernate or some other custom data access  method, you have to query for the data for the specific page and also query for the total number results (totalCount). The totalCount value can be passed into the PagedList constructor, together with the data of the specific page.</description>
		<content:encoded><![CDATA[<p>@Antonio: yes, you&#8217;d be querying the database each time, but you have to make sure that the database only returns the data for a specific page.<br />
With Linq2SQL this happens automatically because the pager supports IQueryable. When using NHibernate or some other custom data access  method, you have to query for the data for the specific page and also query for the total number results (totalCount). The totalCount value can be passed into the PagedList constructor, together with the data of the specific page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Tirado</title>
		<link>http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/comment-page-1/#comment-27</link>
		<dc:creator>Antonio Tirado</dc:creator>
		<pubDate>Tue, 17 Feb 2009 06:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/#comment-27</guid>
		<description>Hi, I&#039;m looking at your code and it seems that if you&#039;re using an actual database you&#039;d be querying it each time you requested a page. Is this so? How do would you get around this constant hammering using MVC?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m looking at your code and it seems that if you&#8217;re using an actual database you&#8217;d be querying it each time you requested a page. Is this so? How do would you get around this constant hammering using MVC?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Johnson</title>
		<link>http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/comment-page-1/#comment-26</link>
		<dc:creator>Edward Johnson</dc:creator>
		<pubDate>Thu, 12 Feb 2009 20:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.taiga.nl/martijn/2009/02/04/paging-demo-upgraded-to-aspnet-mvc-rc/#comment-26</guid>
		<description>When I click on the button for a page it renders the page but the highlighted (therefore current) page is always one higher than the one I clicked on.

Haven&#039;t traced it down but it seems that if I&#039;m on page 2 and click on page 1 the logic is looking at the current page (currently 2), not the page requested</description>
		<content:encoded><![CDATA[<p>When I click on the button for a page it renders the page but the highlighted (therefore current) page is always one higher than the one I clicked on.</p>
<p>Haven&#8217;t traced it down but it seems that if I&#8217;m on page 2 and click on page 1 the logic is looking at the current page (currently 2), not the page requested</p>
]]></content:encoded>
	</item>
</channel>
</rss>
