{"id":137,"date":"2012-09-08T09:52:54","date_gmt":"2012-09-08T09:52:54","guid":{"rendered":"http:\/\/www.mahmuttalhakoz.com\/blog\/?p=137"},"modified":"2012-09-08T09:52:54","modified_gmt":"2012-09-08T09:52:54","slug":"repeater-icinde-nesne-kullanimi-ve-ic-ice-repeater-kullanimi","status":"publish","type":"post","link":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2012\/09\/08\/repeater-icinde-nesne-kullanimi-ve-ic-ice-repeater-kullanimi\/","title":{"rendered":"Repeater icinde nesne kullanimi ve ic ice Repeater kullanimi"},"content":{"rendered":"<p>Repeater icinde kullanilan nesneye ulasabilmek icin Repeater&#8217;in ItemDataBound olayina gelin ve kod sayfasinda (code behind) kodlarimizi yazacagiz.<\/p>\n<p>Kullanim Sekli;<br \/>\nNesneTuru DegiskenAdi = (NesneTuru)e.Item.FindControl(&#8220;RepeaterIcindekiNesneId&#8221;);<br \/>\nDegiskenAdi.Text=&#8221;Nesneye ulastim&#8221;;<\/p>\n<p>Label nesnesi uzerinden ornek vermem gerekirse;<\/p>\n<p>Label LblNewMessage = (Label)e.Item.FindControl(&#8220;LblMessage&#8221;);<br \/>\nLblNewMessage.Text= &#8220;Mesajim&#8221;;<br \/>\nLblNewMessage.Visible=true;<\/p>\n<p>Seklinde kullanabiliriz.<\/p>\n<p>Ayni sey Repeater icin de gecerlidir;<\/p>\n<p>Repeater RptNewData = (Repeater)e.Item.FindControl(&#8220;OldRpt&#8221;);<\/p>\n<p>Dogrudan Bind kismina geciyorum, bu aradaya yazilanlarda herhangi bir farklilik yok. \ud83d\ude42<\/p>\n<p>RptNewData.DataBind();<\/p>\n<p>kodu ile de verinin Icteki Repeater nesnemizce gosterilmesini sagliyoruz.<\/p>\n<p>Bu kodlarda kullandigimiz &#8220;e&#8221; degiskeni; ItemDataBound ile birlikte gelen &#8220;RepeaterItemEventArgs&#8221; turundeki degiskenimizdir.<\/p>\n<p>protected void RptNewMessage__ItemDataBound(object sender, RepeaterItemEventArgs <span style=\"color: red;\">e<\/span>)<br \/>\n{<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Repeater icinde kullanilan nesneye ulasabilmek icin Repeater&#8217;in ItemDataBound olayina gelin<span class=\"more-dots\"><a href=\"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2012\/09\/08\/repeater-icinde-nesne-kullanimi-ve-ic-ice-repeater-kullanimi\/\">[ &#8230; ]<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[51,48,50,47,52,49],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-findcontrol","tag-ic-ice-repeater","tag-itemdatabound","tag-repeater","tag-repeater-findcontrol","tag-repeater-icinde-nesne"],"_links":{"self":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":2,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}