<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UC&#039;s Corner &#187; yussi ariefiyono</title>
	<atom:link href="http://yussi.nl/index.php/author/yussi-ariefiyono/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 25 Jun 2010 12:57:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>modify Visible function in repeater of gridview control</title>
		<link>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html</link>
		<comments>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:18:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[gridview]]></category>
		<category><![CDATA[repeater]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/modify-Visible-function-in-repeater-of-gridview-control.aspx</guid>
		<description><![CDATA[Problem: display label with the text full if the current field equal to zero in repeater or gridview Solution: &#60;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8221;Full&#8221; ForeColor=&#8221;Red&#8221; Visible=&#8217;&#60;%# Convert.ToBoolean(Eval(&#8220;name of your field&#8221;).ToString().Equals(&#8220;0&#8243;)? &#8220;true&#8221;:&#8221;false&#8221;) %&#62;&#8217;&#62;]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
display label with the text full if the current field equal to zero in repeater or gridview</p>
<p><strong>Solution:</strong><br />
&lt;asp:Label ID=&#8221;Label1&#8243; runat=&#8221;server&#8221; Text=&#8221;Full&#8221; ForeColor=&#8221;Red&#8221; Visible=&#8217;&lt;%# Convert.ToBoolean(Eval(&#8220;name of your field&#8221;).ToString().Equals(&#8220;0&#8243;)? &#8220;true&#8221;:&#8221;false&#8221;) %&gt;&#8217;&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/modify-visible-function-in-repeater-of-gridview-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript back button work in IE and FF</title>
		<link>http://yussi.nl/index.php/javascript-back-button-work-in-ie-and-ff.html</link>
		<comments>http://yussi.nl/index.php/javascript-back-button-work-in-ie-and-ff.html#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:14:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">/post/javascript-back-button-work-in-IE-and-FF.aspx</guid>
		<description><![CDATA[Problem: Need javascript back button which work in IE and FF Solution: &#60;a href=&#8221;javascript:void(0);&#8221; onclick=&#8221;history.back(); return false;&#8221;&#62;Back&#60;/a&#62;]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
Need javascript back button which work in IE and FF</p>
<p><strong>Solution:</strong><br />
<span class="Apple-style-span" style="font-size: 12px;">&lt;a href=&#8221;javascript:void(0);&#8221; onclick=&#8221;history.back(); return false;&#8221;&gt;Back&lt;/a&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/javascript-back-button-work-in-ie-and-ff.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Duplicates with SQL</title>
		<link>http://yussi.nl/index.php/finding-duplicates-with-sql.html</link>
		<comments>http://yussi.nl/index.php/finding-duplicates-with-sql.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:39:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/Finding-Duplicates-with-SQL.aspx</guid>
		<description><![CDATA[problem:finding the duplicate within sql solution:provide table named&#160;subscriber, with elements: email SELECT COUNT(DISTINCT email) AS NumberOfEmail, email FROM subscriber GROUP BY email HAVING (COUNT(email) &#62; 1)]]></description>
			<content:encoded><![CDATA[<p><strong>problem:</strong><br />finding the duplicate within sql</p>
<p><strong>solution:</strong><br />provide table named&nbsp;subscriber, with elements: email</p>
<p>SELECT COUNT(DISTINCT email) AS NumberOfEmail, email FROM subscriber GROUP BY email HAVING (COUNT(email) &gt; 1)</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/finding-duplicates-with-sql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>select NOT in top post sql query</title>
		<link>http://yussi.nl/index.php/select-not-in-top-post-sql-query.html</link>
		<comments>http://yussi.nl/index.php/select-not-in-top-post-sql-query.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:26:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/select-NOT-in-top-post-sql-query.aspx</guid>
		<description><![CDATA[problem:make some selection in database OTHER THEN top (10) post solution:&#160;&#160;provide, table named news with element: newsID, newsDate SELECT * FROM News WHERE (newsID NOT IN (SELECT TOP (10) newsID FROM News AS News_1 ORDER BY newsDate DESC)) ORDER BY newsDate DESC&#160; &#160; it will return all post except top&#160;10&#160;post&#160;]]></description>
			<content:encoded><![CDATA[<p><strong>problem:</strong><br />make some selection in database OTHER THEN top (10) post</p>
<p><strong>solution:&nbsp;<span class="Apple-style-span" style="font-weight: normal">&nbsp;<br />provide, table named news with element: newsID, newsDate</p>
<p>SELECT * FROM News WHERE (newsID </span>NOT IN<span class="Apple-style-span" style="font-weight: normal"> (SELECT TOP (10) newsID FROM News AS News_1 ORDER BY newsDate DESC)) ORDER BY newsDate DESC&nbsp;</span></strong></p>
<p>&nbsp;</p>
<p>it will return all post except top&nbsp;10&nbsp;post&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/select-not-in-top-post-sql-query.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>type of requesturl aspx</title>
		<link>http://yussi.nl/index.php/type-of-requesturl-aspx.html</link>
		<comments>http://yussi.nl/index.php/type-of-requesturl-aspx.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:05:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">/post/type-of-requesturl-aspx.aspx</guid>
		<description><![CDATA[Request.Url.Host = asp.net.do Request.Url.ToString = http://asp.net.do/test/requesturl.aspx Request.ApplicationPath.ToString = /test Request.RawUrl.ToString = /test/requesturl.aspx Page.TemplateSourceDirectory = /test Request.Url.AbsoluteUri = http://asp.net.do/test/requesturl.aspx Taken from : http://asp.net.do/test/requesturl.aspx]]></description>
			<content:encoded><![CDATA[<p>
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.Host = asp.net.do</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.ToString = http://asp.net.do/test/requesturl.aspx</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.ApplicationPath.ToString = /test</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.RawUrl.ToString = /test/requesturl.aspx</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Page.TemplateSourceDirectory = /test</span><br />
<span style="display: inline-block; height: 19px; width: 438px">Request.Url.AbsoluteUri = http://asp.net.do/test/requesturl.aspx</span>
</p>
<p>
Taken from : <a href="http://asp.net.do/test/requesturl.aspx" target="_blank">http://asp.net.do/test/requesturl.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/type-of-requesturl-aspx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>z index in IE 6</title>
		<link>http://yussi.nl/index.php/z-index-in-ie-6.html</link>
		<comments>http://yussi.nl/index.php/z-index-in-ie-6.html#comments</comments>
		<pubDate>Tue, 11 Aug 2009 12:24:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">/post/z-index-in-IE-6.aspx</guid>
		<description><![CDATA[problem: overlap div in IE6, z index is not working correctly in IE6 solution: put the relative position in &#34;wrapper&#34; div for the overlaped div, put on absolute positions css code example: #wrapper{ position: relative; } #box1 { position: absolute; top: 150px; left:60px;width: 200px; height: 200px; background-color: yellow; z-index: 20; } #box2 {position: absolute; top:]]></description>
			<content:encoded><![CDATA[<p>
<strong>problem:</strong><br />
overlap div in IE6, z index is not working correctly in IE6
</p>
<p>
<strong>solution:<br />
</strong>
</p>
<ol>
<li>put the relative position in &quot;wrapper&quot; div</li>
<li>for the overlaped div, put on absolute positions </li>
</ol>
<p>
<u>css code example:</u><br />
<em>#wrapper{ position: relative; }<br />
#box1 { position: absolute; top: 150px; left:60px;width: 200px; height: 200px; background-color: yellow; z-index: 20; }<br />
#box2 {position: absolute; top: 100px; left: 0px;width: 200px; height: 200px; background-color: lime; z-index: 10; }</em>
</p>
<p>
<u>html code example:</u><br />
<em>&lt;div id=&quot;wrapper&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div id=&quot;box1&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This box should be on top&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div id=&quot;box2&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; box 2&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/z-index-in-ie-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>calculating age in sql</title>
		<link>http://yussi.nl/index.php/calculating-age-in-sql.html</link>
		<comments>http://yussi.nl/index.php/calculating-age-in-sql.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 17:38:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/calculating-age-in-sql.aspx</guid>
		<description><![CDATA[problem: display age with sql command solution: sql command: SELECT&#160;&#160;&#160;&#160; DATEDIFF(mm, dateOfBirth, GETDATE()) / 12 AS age FROM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; someTable it wil display age ^^V]]></description>
			<content:encoded><![CDATA[<p>
<strong>problem:</strong><br />
display age with sql command
</p>
<p>
<strong>solution:</strong><br />
sql command:<br />
SELECT&nbsp;&nbsp;&nbsp;&nbsp; DATEDIFF(mm, dateOfBirth, GETDATE()) / 12 AS age<br />
FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; someTable</p>
<p>it wil display age ^^V</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/calculating-age-in-sql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>birthday reminder list  asp.net</title>
		<link>http://yussi.nl/index.php/birthday-reminder-list-asp-net.html</link>
		<comments>http://yussi.nl/index.php/birthday-reminder-list-asp-net.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 15:55:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">/post/birthday-reminder-list--aspnet.aspx</guid>
		<description><![CDATA[problem: displaying list of bday boy/girl in next (30/ according to your own choice ) days from the current date. solution: im using the sql to select the date of birth, for displaying, you can use whatever you want, like gridview, datalist etc. hereby the sql command: SELECT&#160;&#160;&#160;&#160; DateOfBirth FROM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; someTablename WHERE&#160;&#160;&#160;&#160; (DateOfBirth &#60; GETDATE())]]></description>
			<content:encoded><![CDATA[<p><strong>problem:</strong></p>
<p>
displaying list of bday boy/girl in next (30/ according to your own choice ) days from the current date.
</p>
<p>
<strong>solution:</strong><br />
im using the sql to select the date of birth, for displaying, you can use whatever you want, like gridview, datalist etc.
</p>
<p>
hereby the sql command:
</p>
<p>
<em>SELECT&nbsp;&nbsp;&nbsp;&nbsp; DateOfBirth<br />
FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; someTablename<br />
WHERE&nbsp;&nbsp;&nbsp;&nbsp; (DateOfBirth &lt; GETDATE()) AND (DATEDIFF(d, GETDATE(), DATEADD(yy, DATEDIFF(yy, DateOfBirth, GETDATE()), DateOfBirth)) BETWEEN<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 AND 30) </em>
</p>
<p>
it will return the list of date of birth from the current date.
</p>
<p>
for reference of the sql command:<br />
<a href="http://msdn.microsoft.com/en-us/library/aa258269%28SQL.80%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/aa258269%28SQL.80%29.aspx</a>
</p>
<p>
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/birthday-reminder-list-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>embedding flash in server control</title>
		<link>http://yussi.nl/index.php/embedding-flash-in-server-control.html</link>
		<comments>http://yussi.nl/index.php/embedding-flash-in-server-control.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 14:10:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">/post/embedding-flash-in-server-control-aspx.aspx</guid>
		<description><![CDATA[Problem: When you got your website (aspx website), especially when you already put url rewriting, you want to embed flash ( doesnt matter if its swf or flv) You need to have relative path, starting with (&#34;~/&#34; ) in the url. Solution: you can put the code in your server control, so it will be]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem:</strong>
</p>
<p>
When you got your website (aspx website), especially when you already put url rewriting, you want to embed flash ( doesnt matter if its swf or flv)<br />
You need to have relative path, starting with (<strong>&quot;~/&quot;</strong> ) in the url.
</p>
<p>
<strong>Solution: </strong><br />
you can put the code in your server control, so it will be easier to integrate</p>
<p><strong>FlashPlayer.ascx</strong><br />
<em>&lt;object&nbsp; classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0&quot; width=&quot;745&quot; height=&quot;181&quot; id=&quot;header&quot; align=&quot;middle&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param name=&quot;allowFullScreen&quot; value=&quot;false&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;param&nbsp; name=&quot;movie&quot; value=&#39;&lt;asp:Literal ID=&quot;Literal1&quot; runat=&quot;server&quot;&gt;&lt;/asp:Literal&gt;&#39; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;embed src=&#39;&lt;asp:Literal ID=&quot;Literal2&quot; runat=&quot;server&quot;&gt;&lt;/asp:Literal&gt;&#39; quality=&quot;high&quot; bgcolor=&quot;#ffffff&quot; width=&quot;745&quot; height=&quot;181&quot; name=&quot;header&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; allowFullScreen=&quot;false&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.adobe.com/go/getflashplayer_nl&quot; /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/object&gt;</em>
</p>
<p>
and in the <strong>FlashPlayer.ascx.cs</strong>
</p>
<p>
&nbsp; protected void Page_Load(object sender, EventArgs e)<br />
&nbsp;&nbsp;&nbsp; {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Literal1.Text = Page.ResolveUrl(&quot;<strong>~/</strong>yourpath&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Literal2.Text = Page.ResolveUrl(&quot;<strong>~/</strong>yourpath&quot;);<br />
&nbsp;&nbsp; }
</p>
<p>
and you will got flash playing! enjoy ^_^
</p>
<p>
================================
</p>
<p>
thank to <a href="http://www.linkedin.com/in/marcneeft" target="_blank">Marc Neeft</a>, hereby his input :
</p>
<p>
<span class="text">it would be even more powerful when you add the movieUrl, width and height as properties of the usercontrol:</p>
<p>private string movieUrl = String.empty;<br />
<br />
private int movieWidth = 0;<br />
<br />
private int movieHeight = 0;</p>
<p>protected void Page_Load(object sender, EventArgs e)<br />
<br />
{<br />
<br />
// todo: check if url, width and height are set, if not, throw exception</p>
<p>Literal1.Text = Page.ResolveUrl(movieUrl);<br />
<br />
Literal2.Text = Page.ResolveUrl(movieUrl);<br />
<br />
Literal3.Text = movieWidth;<br />
<br />
Literal4.Text = movieHeight;<br />
<br />
} </p>
<p>public string MovieUrl<br />
<br />
{<br />
<br />
get { return movieUrl; }<br />
<br />
set { movieUrl = value; }<br />
<br />
}</p>
<p>public string MovieWidth<br />
<br />
{<br />
<br />
get { return movieWidth; }<br />
<br />
set { movieWidth = value; }<br />
<br />
}</p>
<p>public int MovieHeight<br />
<br />
{<br />
<br />
get { return movieHeight; }<br />
<br />
set { movieHeight = value; }<br />
<br />
}</p>
<p>Of course you need to add the 2 extra literals and the errorchecking yourself but you get the general idea.</p>
<p>&lt;uc:FlashPlayer id=&quot;Flashplayer&quot; runat=&quot;server&quot; MovieUrl=&quot;~/flash</span><br />
<span class="text">/movie.flv</span><br />
<span class="text">&quot; MovieWidth=&quot;300&quot; MovieHeight=&quot;150&quot; /&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/embedding-flash-in-server-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repeater inside repeater asp net</title>
		<link>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html</link>
		<comments>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html#comments</comments>
		<pubDate>Tue, 09 Jun 2009 17:28:00 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[repeater]]></category>

		<guid isPermaLink="false">/post/Repeater-inside-repeater-asp-net.aspx</guid>
		<description><![CDATA[Problem : Putting repeater inside repeater and take ID of parent repeater to bind the&#160; datasourse. Solution: hereby the example of code: in .aspx &#60;asp:Repeater ID=&#34;Repeater2&#34; runat=&#34;server&#34; &#160;&#160;&#160; onitemdatabound=&#34;Repeater2_ItemDataBound&#34;&#62; &#160;&#160;&#160; &#60;ItemTemplate&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;asp:Label ID=&#34;Label2&#34; runat=&#34;server&#34; Text=&#39;&#60;%# Eval(&#34;Tag&#34;) %&#62;&#39;&#62;&#60;/asp:Label&#62;&#60;/asp:HyperLink&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;asp:Repeater ID=&#34;Repeater1&#34; runat=&#34;server&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;ItemTemplate&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (&#60;asp:Label ID=&#34;CountID&#34; runat=&#34;server&#34; Text=&#39;&#60;%# Eval(&#34;Expr1&#34;) %&#62;&#39;&#62;&#60;/asp:Label&#62;) &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/ItemTemplate&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/asp:Repeater&#62;]]></description>
			<content:encoded><![CDATA[<p>
<strong>Problem :</strong>
</p>
<p>
Putting repeater inside repeater and take ID of parent repeater to bind the&nbsp; datasourse.
</p>
<p>
<strong>Solution: </strong><br />
hereby the example of code:</p>
<p><strong>in .aspx</strong><br />
&lt;asp:Repeater ID=&quot;<strong>Repeater2</strong>&quot; runat=&quot;server&quot; <br />
&nbsp;&nbsp;&nbsp; onitemdatabound=&quot;Repeater2_ItemDataBound&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text=&#39;&lt;%# Eval(&quot;Tag&quot;) %&gt;&#39;&gt;&lt;/asp:Label&gt;&lt;/asp:HyperLink&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Repeater ID=&quot;<strong>Repeater1</strong>&quot; runat=&quot;server&quot;&gt; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&lt;asp:Label ID=&quot;CountID&quot; runat=&quot;server&quot; Text=&#39;&lt;%# Eval(&quot;Expr1&quot;) %&gt;&#39;&gt;&lt;/asp:Label&gt;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ItemTemplate&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/asp:Repeater&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/ItemTemplate&gt;<br />
&lt;/asp:Repeater&gt;
</p>
<p>
<strong>in .aspx cs </strong>
</p>
<p>
private DataTable getDataTableforRepeater2(int TagID)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlConnection conn = new SqlConnection();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conn.ConnectionString = ConfigurationManager.ConnectionStrings[&quot;yourconnectionName&quot;].ConnectionString;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlCommand command = new SqlCommand();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command.Connection = conn;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command.CommandText = &quot;sql command&quot;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable t = new DataTable();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataAdapter adapter = new SqlDataAdapter();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adapter.SelectCommand = command;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adapter.Fill(t);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return t;<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; protected void Repeater2_ItemDataBound(object sender, RepeaterItemEventArgs e)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater Repeater1 = e.Item.FindControl(&quot;Repeater1&quot;) as Repeater;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int TagID = int.Parse(DataBinder.Eval(e.Item.DataItem, &quot;TagID&quot;).ToString());</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (TagID != null)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable t = getDataTableforRepeater2(TagID);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (t.Rows.Count &gt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater1.DataSource = t;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repeater1.DataBind();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/repeater-inside-repeater-asp-net.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
