<?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: Creating an PagedList&lt;T&gt; that uses AJAX</title>
	<atom:link href="http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/</link>
	<description>God, Family, Church, Engineering</description>
	<lastBuildDate>Fri, 28 Oct 2011 15:35:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joseph</title>
		<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/comment-page-1/#comment-507</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Sun, 13 Feb 2011 18:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/#comment-507</guid>
		<description>Hey David, that&#039;s a good question.  To be honest I can&#039;t remember why I put it inside an Ajax.BeginForm.  I think I used the Ajax.BeginForm to actually wrap the Ajax functionality so I wouldn&#039;t have to handle the click event manually using jQuery or something.  Otherwise, when the user clicks on the actionlink, it would end up making a regular HTTP POST and it wouldn&#039;t be AJAX.

When I get some more time I&#039;ll throw up an example of how I did this on GitHub so you can take a look at it.  When I do that I&#039;ll probably make a new post about it being there, so be on the lookout.</description>
		<content:encoded><![CDATA[<p>Hey David, that&#8217;s a good question.  To be honest I can&#8217;t remember why I put it inside an Ajax.BeginForm.  I think I used the Ajax.BeginForm to actually wrap the Ajax functionality so I wouldn&#8217;t have to handle the click event manually using jQuery or something.  Otherwise, when the user clicks on the actionlink, it would end up making a regular HTTP POST and it wouldn&#8217;t be AJAX.</p>
<p>When I get some more time I&#8217;ll throw up an example of how I did this on GitHub so you can take a look at it.  When I do that I&#8217;ll probably make a new post about it being there, so be on the lookout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/comment-page-1/#comment-502</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 26 Jan 2011 12:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/#comment-502</guid>
		<description>Hi,

What is the point of having the ajax call in a Ajax.Beginform? When is the form supposed to be submitted? What I can see it is the actionslinks in the pager that calls the controller action...?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What is the point of having the ajax call in a Ajax.Beginform? When is the form supposed to be submitted? What I can see it is the actionslinks in the pager that calls the controller action&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/comment-page-1/#comment-500</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 21 Jan 2011 14:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/#comment-500</guid>
		<description>Thanks for your reply! I see... Thats where I should get the data I want to display from my db. Im rather new to ajax in general so I dont really get the connection how the query object can reference the ToPagedList() method, which is in the PagedListExtensions class...? Perhaps I just need to read more about ajax.
I would be really happy to have a sample/demo source (if possible) to see things more clearly.

Thanks again!
//David</description>
		<content:encoded><![CDATA[<p>Thanks for your reply! I see&#8230; Thats where I should get the data I want to display from my db. Im rather new to ajax in general so I dont really get the connection how the query object can reference the ToPagedList() method, which is in the PagedListExtensions class&#8230;? Perhaps I just need to read more about ajax.<br />
I would be really happy to have a sample/demo source (if possible) to see things more clearly.</p>
<p>Thanks again!<br />
//David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/comment-page-1/#comment-499</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Fri, 21 Jan 2011 13:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/#comment-499</guid>
		<description>In my implementation, DefaultPageSize is just a constant I have, and CachedPage is a property that&#039;s hitting a stored session value.  This is completely up to you, however, which is why I left it out.

Also, the logic from GetSearchQuery is left out as well, because that&#039;s implementation specific.  For the first project I worked on, that returned utilized IQueryable and LINQ 2 SQL, but I&#039;ve had others that use various other things just as NHibernate, Entity Framework, etc.</description>
		<content:encoded><![CDATA[<p>In my implementation, DefaultPageSize is just a constant I have, and CachedPage is a property that&#8217;s hitting a stored session value.  This is completely up to you, however, which is why I left it out.</p>
<p>Also, the logic from GetSearchQuery is left out as well, because that&#8217;s implementation specific.  For the first project I worked on, that returned utilized IQueryable and LINQ 2 SQL, but I&#8217;ve had others that use various other things just as NHibernate, Entity Framework, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/comment-page-1/#comment-498</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 21 Jan 2011 13:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://josephbulger.com/technology/creating-an-pagedlistt-that-uses-ajax/#comment-498</guid>
		<description>hi,

Thanks for the guide, but I think some explanation is missing at the last step. Where is DefaulPagerSize and CachedPage declared (session?)? What/where is the logic of the method GetSearchQuery(); ?

Thanks
//david</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>Thanks for the guide, but I think some explanation is missing at the last step. Where is DefaulPagerSize and CachedPage declared (session?)? What/where is the logic of the method GetSearchQuery(); ?</p>
<p>Thanks<br />
//david</p>
]]></content:encoded>
	</item>
</channel>
</rss>

