<?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: Use jQuery and ASP.NET AJAX to build a client side Repeater</title>
	<atom:link href="http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:47:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#124; amazingtippo</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-38094</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#124; amazingtippo</dc:creator>
		<pubDate>Sun, 21 Feb 2010 09:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-38094</guid>
		<description>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</description>
		<content:encoded><![CDATA[<p>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#171; Free PHP Scripts, js framework and ajax</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-38088</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#171; Free PHP Scripts, js framework and ajax</dc:creator>
		<pubDate>Sun, 21 Feb 2010 03:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-38088</guid>
		<description>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</description>
		<content:encoded><![CDATA[<p>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Web Developers, Anyone! &#171; Web Design</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-38020</link>
		<dc:creator>30 AJAX Tutorials For Web Developers, Anyone! &#171; Web Design</dc:creator>
		<pubDate>Thu, 11 Feb 2010 20:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-38020</guid>
		<description>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</description>
		<content:encoded><![CDATA[<p>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#171; qeqnes &#124; Designing. jQuery, Ajax, PHP, MySQL and Templates</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37976</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#171; qeqnes &#124; Designing. jQuery, Ajax, PHP, MySQL and Templates</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37976</guid>
		<description>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</description>
		<content:encoded><![CDATA[<p>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 30 AJAX Tutorials For Smart Web Developers &#124; Afif Fattouh - Web Specialist</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37967</link>
		<dc:creator>30 AJAX Tutorials For Smart Web Developers &#124; Afif Fattouh - Web Specialist</dc:creator>
		<pubDate>Thu, 04 Feb 2010 17:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37967</guid>
		<description>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</description>
		<content:encoded><![CDATA[<p>[...] 21. Use jQuery and ASP.NET AJAX to build a client side Repeater [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Lanneau</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37961</link>
		<dc:creator>Paul Lanneau</dc:creator>
		<pubDate>Wed, 03 Feb 2010 22:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37961</guid>
		<description>wow... this works like a charm. Precise answer with solution lol, thanks alot!</description>
		<content:encoded><![CDATA[<p>wow&#8230; this works like a charm. Precise answer with solution lol, thanks alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37952</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 02 Feb 2010 23:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37952</guid>
		<description>I often embed the IDs into table rows with expando attributes.  In this post&#039;s example, maybe something like this in the template:

&lt;pre lang=&quot;javascript&quot;&gt;{#foreach $T.d as post}
&lt;tr PostID=&quot;{$T.post.ID}&quot;&gt;
  &lt;td&gt;{$T.post.Date}&lt;/td&gt;
  &lt;td&gt;&lt;a href=&quot;{$T.post.Link}&quot;&gt;{$T.post.Title}&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;{$T.post.Description}&lt;/td&gt;
  &lt;td&gt;&lt;a href=&quot;#&quot; class=&quot;deleteCommand&quot;&gt;Delete&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
{#/for}&lt;/pre&gt;

Then an event handler like this could act on those delete links:

&lt;pre lang=&quot;javascript&quot;&gt;$(&#039;a.deleteCommand&#039;).live(&#039;click&#039;, function(evt) {
  evt.preventDefault();

  var PostID = $(this).attr(&#039;PostID&#039;);

  // $.ajax() call to your delete web service, using PostID.
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I often embed the IDs into table rows with expando attributes.  In this post&#8217;s example, maybe something like this in the template:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#123;</span>#foreach $T.<span style="color: #660066;">d</span> <span style="color: #000066; font-weight: bold;">as</span> post<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>tr PostID<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;{$T.post.ID}&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Date</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;{$T.post.Link}&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Title</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Description</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;deleteCommand&quot;</span><span style="color: #339933;">&gt;</span>Delete<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#123;</span>#<span style="color: #339933;">/</span><span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then an event handler like this could act on those delete links:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.deleteCommand'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>evt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  evt.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">var</span> PostID <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'PostID'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #006600; font-style: italic;">// $.ajax() call to your delete web service, using PostID.</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Lanneau</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37950</link>
		<dc:creator>Paul Lanneau</dc:creator>
		<pubDate>Tue, 02 Feb 2010 20:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37950</guid>
		<description>Dave,
thanks for writing this article. I am .Net developer and loving what this article has taught me about JQuery.

Question:
I am trying to implement the following functionality:
With asp.net repeater it will allow me to use a linkbutton like this:

&lt;asp:LinkButton OnClick=&quot;LinkButtonDelete_Clicked&quot; CommandArgument=&#039;&#039; ID=&quot;LinkButtonDelete&quot; runat=&quot;server&quot;&gt;


I could then implement the method LinkButtonDelete_Clicked() event on the server side and capture the Object&#039;s ID from the commandArgument and Delete that particular record from the database.

I need that exact functionality with the client side repeater where i can call a web service to delete a record from the repeater.

Any help is appreciated.</description>
		<content:encoded><![CDATA[<p>Dave,<br />
thanks for writing this article. I am .Net developer and loving what this article has taught me about JQuery.</p>
<p>Question:<br />
I am trying to implement the following functionality:<br />
With asp.net repeater it will allow me to use a linkbutton like this:</p>
<p>&lt;asp:LinkButton OnClick=&quot;LinkButtonDelete_Clicked&quot; CommandArgument=&#039;&#8217; ID=&#8221;LinkButtonDelete&#8221; runat=&#8221;server&#8221;&gt;</p>
<p>I could then implement the method LinkButtonDelete_Clicked() event on the server side and capture the Object&#8217;s ID from the commandArgument and Delete that particular record from the database.</p>
<p>I need that exact functionality with the client side repeater where i can call a web service to delete a record from the repeater.</p>
<p>Any help is appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37893</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 28 Jan 2010 20:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37893</guid>
		<description>That was my fault.  WordPress ate his comment due to the unescaped HTML.  I temporarily escaped it to get the comment through and edited it back.  It should be correct now.</description>
		<content:encoded><![CDATA[<p>That was my fault.  WordPress ate his comment due to the unescaped HTML.  I temporarily escaped it to get the comment through and edited it back.  It should be correct now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Harris</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37892</link>
		<dc:creator>Joel Harris</dc:creator>
		<pubDate>Thu, 28 Jan 2010 20:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37892</guid>
		<description>It looks like your template isn&#039;t being properly expanded at all.  I can&#039;t tell why not from the code you&#039;ve provided, unless the missing closing brace is actually missing in your template...
&lt;pre lang=&quot;javascript&quot;&gt;
{CreateUrl($T.post.ID)} &lt;- is this closing brace missing in your template?
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It looks like your template isn&#8217;t being properly expanded at all.  I can&#8217;t tell why not from the code you&#8217;ve provided, unless the missing closing brace is actually missing in your template&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#123;</span>CreateUrl<span style="color: #009900;">&#40;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;-</span> <span style="color: #000066; font-weight: bold;">is</span> <span style="color: #000066; font-weight: bold;">this</span> closing brace missing <span style="color: #000066; font-weight: bold;">in</span> your template<span style="color: #339933;">?</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Raghav</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37890</link>
		<dc:creator>Raghav</dc:creator>
		<pubDate>Thu, 28 Jan 2010 20:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37890</guid>
		<description>Hello Joel,
Thanks for your reply.

Me Web Method(It is in web service) will be like:

&lt;pre lang=&quot;charp&quot;&gt;[WebMethod]
public IEnumerable GetUserArticles(int param1,param2)
{
  return EntityManager.FindRecords(arg1,arg2..);
}&lt;/pre&gt;

I am returning the collection of Entity Class objects to Client side. I don&#039;t want to apply methods like &#039;GetFormattedDesc&#039; here as My Client side repeater control will be used at many places, so I would not like to impose operations here. I would leave on the user end who will implement the repeater to use server side method on a column say description here. 

According to the your second suggestion I did this:

&lt;pre lang=&quot;html&quot;&gt;{#foreach $T.d as post}
  &lt;li&gt;&lt;a href=&quot;{CreateUrl($T.post.ID)}&quot; rel=&quot;nofollow&quot;&gt;{$T.post.Headline}&lt;/a&gt;
  &lt;/li&gt;
{#/for}

function CreateUrl(id)
{
  //do logic
  return &quot;http://www.ggogle.com&quot;;
}&lt;/pre&gt;

But no success the href is rendering as it is:

{CreateUrl($T.post.ID)

How can I get the URL Bind dynamically for each row as I was doing in my ASP.NET repeater.
In ASP.NET I was able to do like this way:

&lt;pre lang=&quot;html&quot;&gt;&lt;asp:HyperLink ID=&quot;hypTest&quot; runat=&quot;server&quot; NavigateUrl=&#039;&lt;%# CreateUrl(Eval(&quot;ID&quot;)%&gt;&#039;&gt;&lt;%# Eval(&quot;ID&quot;) %&gt;&lt;/asp:HyperLink&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hello Joel,<br />
Thanks for your reply.</p>
<p>Me Web Method(It is in web service) will be like:</p>

<div class="wp_syntax"><div class="code"><pre class="charp" style="font-family:monospace;">[WebMethod]
public IEnumerable GetUserArticles(int param1,param2)
{
  return EntityManager.FindRecords(arg1,arg2..);
}</pre></div></div>

<p>I am returning the collection of Entity Class objects to Client side. I don&#8217;t want to apply methods like &#8216;GetFormattedDesc&#8217; here as My Client side repeater control will be used at many places, so I would not like to impose operations here. I would leave on the user end who will implement the repeater to use server side method on a column say description here. </p>
<p>According to the your second suggestion I did this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">{#foreach $T.d as post}
  <span style="color: #009900;">&lt;li&gt;&lt;a <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;{CreateUrl($T.post.ID)}&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nofollow&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>{$T.post.Headline}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
{#/for}
&nbsp;
function CreateUrl(id)
{
  //do logic
  return &quot;http://www.ggogle.com&quot;;
}</pre></div></div>

<p>But no success the href is rendering as it is:</p>
<p>{CreateUrl($T.post.ID)</p>
<p>How can I get the URL Bind dynamically for each row as I was doing in my ASP.NET repeater.<br />
In ASP.NET I was able to do like this way:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;">&lt;asp:HyperLink <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hypTest&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> NavigateUrl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'&lt;%# CreateUrl(Eval(&quot;ID&quot;)%&gt;</span></span>'&gt;<span style="color: #009900;">&lt;%# Eval<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;ID&quot;</span><span style="color: #66cc66;">&#41;</span> %&gt;&lt;<span style="color: #66cc66;">/</span>asp:HyperLink&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37887</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 28 Jan 2010 19:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37887</guid>
		<description>Unless the formatting significantly increases the size of the data you&#039;re sending, I&#039;d agree with Joel&#039;s first suggestion.  That&#039;s the approach I use most of the time myself.</description>
		<content:encoded><![CDATA[<p>Unless the formatting significantly increases the size of the data you&#8217;re sending, I&#8217;d agree with Joel&#8217;s first suggestion.  That&#8217;s the approach I use most of the time myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Harris</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37885</link>
		<dc:creator>Joel Harris</dc:creator>
		<pubDate>Thu, 28 Jan 2010 18:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37885</guid>
		<description>Raghav,
I see two options for you in this case.
1) Perform your manipulation in your webmethod before the data is returned to the client.  Something like this:

&lt;pre lang=&quot;csharp&quot;&gt;
[WebMethod]
public static IEnumerable GetFeedburnerItems(int Count)
{
  XDocument feedXML = 
    XDocument.Load(&quot;http://feeds.encosia.com/Encosia&quot;);
 
  var feeds = 
    from feed in feedXML.Descendants(&quot;item&quot;)
    select new
    {
      Title = GetFormattedTitle(feed.Element(&quot;title&quot;).Value),
      Description = GetFormattedDesc(feed.Element(&quot;description&quot;).Value)
    };
  return feeds.Take(Count);
}
&lt;/pre&gt;

2)Convert your server-side GetFormattedDesc() method into javascript and call it client-side...

&lt;pre lang=&quot;javascript&quot;&gt;
{#foreach $T.d as post}

{$T.post.Date}
{GetFormattedTitle($T.post.Title)}
{GetFormattedDesc($T.post.Description)}

{#/for}
&lt;/pre&gt;

Calling a method on the server requires a web method and would be inefficient in a repeater-type situation.</description>
		<content:encoded><![CDATA[<p>Raghav,<br />
I see two options for you in this case.<br />
1) Perform your manipulation in your webmethod before the data is returned to the client.  Something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>WebMethod<span style="color: #000000;">&#93;</span>
<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> IEnumerable GetFeedburnerItems<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> Count<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
  XDocument feedXML <span style="color: #008000;">=</span> 
    XDocument.<span style="color: #0000FF;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;http://feeds.encosia.com/Encosia&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
  var feeds <span style="color: #008000;">=</span> 
    from feed <span style="color: #0600FF;">in</span> feedXML.<span style="color: #0000FF;">Descendants</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;item&quot;</span><span style="color: #000000;">&#41;</span>
    select <span style="color: #008000;">new</span>
    <span style="color: #000000;">&#123;</span>
      Title <span style="color: #008000;">=</span> GetFormattedTitle<span style="color: #000000;">&#40;</span>feed.<span style="color: #0000FF;">Element</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;title&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Value</span><span style="color: #000000;">&#41;</span>,
      Description <span style="color: #008000;">=</span> GetFormattedDesc<span style="color: #000000;">&#40;</span>feed.<span style="color: #0000FF;">Element</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;description&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Value</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#125;</span><span style="color: #008000;">;</span>
  <span style="color: #0600FF;">return</span> feeds.<span style="color: #0000FF;">Take</span><span style="color: #000000;">&#40;</span>Count<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>2)Convert your server-side GetFormattedDesc() method into javascript and call it client-side&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#123;</span>#foreach $T.<span style="color: #660066;">d</span> <span style="color: #000066; font-weight: bold;">as</span> post<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#123;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Date</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#123;</span>GetFormattedTitle<span style="color: #009900;">&#40;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Title</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#123;</span>GetFormattedDesc<span style="color: #009900;">&#40;</span>$T.<span style="color: #660066;">post</span>.<span style="color: #660066;">Description</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#123;</span>#<span style="color: #339933;">/</span><span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>Calling a method on the server requires a web method and would be inefficient in a repeater-type situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghav</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37884</link>
		<dc:creator>Raghav</dc:creator>
		<pubDate>Thu, 28 Jan 2010 18:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37884</guid>
		<description>Hello Dave, 
Your code is awesome. I like the idea of implementing the ASP.NET repeater functionality at the client side . But I need to implement one more feature which ASP.NET repeater have -ItemDatabound. 

In your code:

  
    
      Date
      Title
      Excerpt
    
  
  
    {#foreach $T.d as post}
    
      {$T.post.Date}
      &lt;a href=&quot;{$T.post.Link}&quot; rel=&quot;nofollow&quot;&gt;{$T.post.Title}&lt;/a&gt;
      {$T.post.Description}
    
    {#/for}
  
 


I need ItemDatabound feature say :

I need this 

GetFormattedDesc({$T.post.Description})

GetFormattedDesc is server side method which process the the Description and brings the formatted output.
Can it be possible to do ItemDatabound like feature in above example which you have provided.</description>
		<content:encoded><![CDATA[<p>Hello Dave,<br />
Your code is awesome. I like the idea of implementing the ASP.NET repeater functionality at the client side . But I need to implement one more feature which ASP.NET repeater have -ItemDatabound. </p>
<p>In your code:</p>
<p>      Date<br />
      Title<br />
      Excerpt</p>
<p>    {#foreach $T.d as post}</p>
<p>      {$T.post.Date}<br />
      <a href="{$T.post.Link}" rel="nofollow">{$T.post.Title}</a><br />
      {$T.post.Description}</p>
<p>    {#/for}</p>
<p>I need ItemDatabound feature say :</p>
<p>I need this </p>
<p>GetFormattedDesc({$T.post.Description})</p>
<p>GetFormattedDesc is server side method which process the the Description and brings the formatted output.<br />
Can it be possible to do ItemDatabound like feature in above example which you have provided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://encosia.com/2008/06/26/use-jquery-and-aspnet-ajax-to-build-a-client-side-repeater/#comment-37056</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Sun, 15 Nov 2009 22:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=79#comment-37056</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by delicious50: Use jQuery and ASP.NET AJAX to build a client side Repeater &#124; Encosia http://bit.ly/QVeWt JQuery Ajax,...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by delicious50: Use jQuery and ASP.NET AJAX to build a client side Repeater | Encosia <a href="http://bit.ly/QVeWt" rel="nofollow">http://bit.ly/QVeWt</a> JQuery Ajax,&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
