<?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>Asp.Net Repeater İçindeki Kontrollere Ulaşmak | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<atom:link href="https://www.sanaldata.com/e/asp-net-repeater-icindeki-kontrollere-ulasmak/feed" rel="self" type="application/rss+xml" />
	<link>https://www.sanaldata.com</link>
	<description>Yazılım ve teknoloji üzerine her türlü makaleye ulaşabileceğiniz site</description>
	<lastBuildDate>Mon, 28 Nov 2022 12:02:43 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.sanaldata.com/wp-content/uploads/2016/11/cropped-logo-32x32.png</url>
	<title>Asp.Net Repeater İçindeki Kontrollere Ulaşmak | SanalData | Yazılım ve Teknoloji Haberleri Sitesi</title>
	<link>https://www.sanaldata.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Asp.net ile Repeater İçindeki Nesneye Erişme</title>
		<link>https://www.sanaldata.com/asp-net-ile-repeater-icindeki-nesneye-erisme</link>
					<comments>https://www.sanaldata.com/asp-net-ile-repeater-icindeki-nesneye-erisme#respond</comments>
		
		<dc:creator><![CDATA[Burak]]></dc:creator>
		<pubDate>Thu, 22 Aug 2019 12:28:27 +0000</pubDate>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[asp.net repeater findcontrol kullanım]]></category>
		<category><![CDATA[Asp.Net Repeater İçindeki Kontrollere Ulaşmak]]></category>
		<category><![CDATA[repeater findcontrol]]></category>
		<category><![CDATA[repeater footer template findcontrol]]></category>
		<category><![CDATA[repeater header template findcontrol]]></category>
		<guid isPermaLink="false">https://www.sanaldata.com/?p=786</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar, bir repeater içindeki nesneye erişmek isterseniz aşağıdaki kod bloklarını kullanabilirsiniz. Header Template için [crayon-69ecf5b08397c341949707/] Footer  Tempalte için [crayon-69ecf5b08398b029971862/] İtem Template için [crayon-69ecf5b08398e717933858/] Eval value değerine erişmek için [crayon-69ecf5b083991468914979/] hepsi bu kadar bir sonraki yazıda görüşünceye kadar bol sorgulu ve debuglu günler 🙂 &#8212;&#8212;&#8212;&#8212; GÜNCELLEME ( 01.04.2020 ) &#8212;&#8212;&#8212;&#8212; Eğer repeaterin içindeki bir bileşene [&#8230;]</p>
The post <a href="https://www.sanaldata.com/asp-net-ile-repeater-icindeki-nesneye-erisme">Asp.net ile Repeater İçindeki Nesneye Erişme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar, bir repeater içindeki nesneye erişmek isterseniz aşağıdaki kod bloklarını kullanabilirsiniz.</p>
<p><strong>Header Template</strong> için</p><pre class="urvanov-syntax-highlighter-plain-tag">lblControl = repeater1.Controls[0].Controls[0].FindControl("lblControl");</pre><p><strong>Footer  Tempalte</strong> için</p><pre class="urvanov-syntax-highlighter-plain-tag">lblControl = repeater1.Controls[repeater1.Controls.Count - 1].Controls[0].FindControl("lblControl");</pre><p><strong>İtem Template</strong> için</p><pre class="urvanov-syntax-highlighter-plain-tag">TextBox txbAd = (TextBox)e.Item.FindControl("txbAd");</pre><p><strong>Eval value</strong> değerine erişmek için</p><pre class="urvanov-syntax-highlighter-plain-tag">object id = DataBinder.Eval(e.Item.DataItem, "database sutün adı");</pre><p>hepsi bu kadar bir sonraki yazıda görüşünceye kadar bol sorgulu ve debuglu günler <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>&#8212;&#8212;&#8212;&#8212; GÜNCELLEME ( 01.04.2020 ) &#8212;&#8212;&#8212;&#8212;</p>
<p>Eğer repeaterin içindeki bir bileşene repeater dışından erişmek isterseniz aşağıdaki kodu kullanabilirsiniz</p><pre class="urvanov-syntax-highlighter-plain-tag">foreach (RepeaterItem item in repeater_adi.Items)
    {
        if ((item.ItemType == ListItemType.Item) || (item.ItemType == ListItemType.AlternatingItem))
        {
          //item daki bileşene erişmek için
            var lblContent = item.FindControl("lblContent") as Label;
        }
        else if (item.ItemType == ListItemType.Header)
        {
            //headerdaki 
            var lblHeader = item.FindControl("lblHeader") as Label;
        }
        else if (item.ItemType == ListItemType.Footer)
        {
            //footerdaki
            var lblFooter = item.FindControl("lblFooter") as Label;
        }   
    }</pre><p>Yukardakine alternatif olarak bu koduda kullanabilirsiniz.</p><pre class="urvanov-syntax-highlighter-plain-tag">TextBox sip_yonetici_not_txt = (TextBox)repeater_adi.Controls[repeater_adi.Controls.Count - 1].Controls[0].FindControl("sip_yonetici_not_txt");</pre><p></p>The post <a href="https://www.sanaldata.com/asp-net-ile-repeater-icindeki-nesneye-erisme">Asp.net ile Repeater İçindeki Nesneye Erişme</a> first appeared on <a href="https://www.sanaldata.com">SanalData | Yazılım ve Teknoloji Haberleri Sitesi</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.sanaldata.com/asp-net-ile-repeater-icindeki-nesneye-erisme/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
