{"id":114,"date":"2008-12-31T07:15:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=114"},"modified":"2008-12-31T07:15:00","modified_gmt":"1970-01-01T00:00:00","slug":"state-management-ve-view-state","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2008\/12\/31\/state-management-ve-view-state\/","title":{"rendered":"State Management ve View State"},"content":{"rendered":"<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Bu makalemizde state management (durum y&ouml;netimi) ve view state hakkinda bilgi verecegim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">State Management<\/span><\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Web ortami stateless&rsquo;dir. Bunun anlami bir web sayfasi sinifi her &ccedil;agirildigi zaman yeniden olusturulur. Ayni seklide http protokolide stateless&rsquo;dir, sayfa &uuml;zerinde istemci bilgilerini tutmaz. &Ouml;rnegin bir textbox i&ccedil;ine metin yazip g&ouml;nder butonuna basarsaniz bu metin postback olayindan sonra g&ouml;r&uuml;nmez &ccedil;&uuml;nk&uuml; sayfa her postbackte yeninde olusturulur.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt; line-height: normal; text-align: center;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"190\" width=\"599\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Sabri\/1_7_resim1.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; line-height: normal; text-align: center;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">Yukarda g&ouml;r&uuml;ld&uuml;g&uuml; gibi sayfa istemciye g&ouml;nderilmeden &ouml;nce tekrar olusturulur. Bu islem her istek i&ccedil;in ger&ccedil;eklesir. <span style=\"\">&nbsp;<\/span>ASP.NET bu problemi &ccedil;&ouml;zmek i&ccedil;in View State, Cookies, Session, Application Object gibi &ouml;zellikler sunar. Bunlardan &ccedil;erezlere (cookie) daha &ouml;nceki makalelerimizde deginmistik.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 18pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">Bu &ccedil;&ouml;z&uuml;mlerden hangisini kullanacagimiza karar vermek i&ccedil;in bazi kriterler kullaniriz.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Ne kadar bilgi saklamak istiyorsunuz?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Istemci kalicimi yoksa ge&ccedil;ici &ccedil;erezlerimi kabul ediyor?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Bilgileri istemcide mi yoksa sunucuda mi saklamak istiyorsunuz?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Bilgileriniz &ouml;nemlimi?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Uygulamaniz i&ccedil;in bant genisligi ve performans kriterleriniz nedir?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Bilgileri kullanici bazlimi kaydetmek istiyorsunuz?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Bilgileri ne kadar s&uuml;reyle saklamak istiyorsunuz?<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Uygulamaniz bir Web Farm (birden fazla sunucu) , Web Garden (&Ccedil;ok islemcili sunucu) yoksa tek islemcili bir sunucuda mi &ccedil;alisiyor.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Yukaridaki kriterleri bilmek uygulamaniz i&ccedil;in en uygun state management y&ouml;ntemini kullanmanizi saglayacaktir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\"><strong>State Management T&uuml;rleri<\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 18pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Iki t&uuml;rl&uuml; state management vardir:<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">1.<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Istemci Tarafli State Management<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">View State<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Hidden Field<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Cookies (&Ccedil;erezler)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Control State<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">2.<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Sunucu Tarafli State Management<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Session <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Application Object <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Caching <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 71.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Database <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Istemci tarafli olanlar herhangi bir sunucu kaynagini kullanmazlar. Bilgileri istemci tarafinda tutarlar. Sunucu tarafli olanlar ise bilgileri sucunu kaynaklarinda tutarlar. Istemci tarafli mi yoksa sunucu tarafli mi state management kullanacaginizi se&ccedil;mek ihtiya&ccedil;lariniza ve yukarda verilen kriterlere baglidir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">View State<\/span><\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">View State en &ouml;nemli istemci tarafli state management y&ouml;ntemlerindendir. Sayfanizda bulunan bilgileri postback esnasinda sayfa i&ccedil;erisinde saklar. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">&Ouml;rnegin bir degiskeni view state i&ccedil;ine atmak isterseniz,<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; text-indent: 35.4pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: 10pt; color: blue; font-family: 'Courier New';\">string<\/span><\/span><span style=\"\"><span style=\"font-size: 10pt; font-family: 'Courier New';\"> KullaniciAdi = <span style=\"color: rgb(163, 21, 21);\">&quot;Mehmet Sabri KUNT&quot;<\/span>;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\">ViewState[<span style=\"color: rgb(163, 21, 21);\">&quot;Kullanici&quot;<\/span>] = KullaniciAdi;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">View State i&ccedil;indeki bir veriyi geri almak i&ccedil;in ise<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: 'Courier New';\">string<\/span><\/span><span style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: 'Courier New';\"> KullaniciAdi = ViewState[<span style=\"color: rgb(163, 21, 21);\">&quot;Kullanici&quot;<\/span>].ToString();<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">kodlarini kullanirsiniz. View state i&ccedil;inde bilgileri object t&uuml;r&uuml;nde saklandigi i&ccedil;in sakladiginiz veriyi yeniden y&uuml;klerden tip &ccedil;evrimlerine dikkat etmeniz gerekir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 18pt; padding-left: 30px;\" class=\"MsoNormal\"><span style=\"\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">View State in avantajlari<\/span><\/span><\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 54pt; padding-left: 30px; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Kullanimi kolaydir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 54pt; padding-left: 30px; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Sunucu kaynaklarina ihtiya&ccedil; duymaz.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 54pt; padding-left: 30px; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Sakladigi verileri kodlama yaparak daha g&uuml;venli hale getirir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 18pt; padding-left: 30px;\" class=\"MsoNormal\"><span style=\"\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">View State in dezavantajlari<\/span><\/span><\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 54pt; padding-left: 30px; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Asiri b&uuml;y&uuml;kl&uuml;kteki veriler i&ccedil;in kullanildiginda performans kaybina sebep olur.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 54pt; padding-left: 30px; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Bilgileri kodlayarak gizli alanlarda tutar. Kodlamasini &ccedil;&ouml;zerek bilgilere ulasmak kolaydir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Ne zaman View State kullanmaliyiz<\/span><\/span><\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">State managementlarin kullanim yerleri ile ilgili yukarda bilgi vermistim. View state kullanilmasi ile ilgili birka&ccedil; noktaya tekrar deginmek istiyorum.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Veriler k&uuml;&ccedil;&uuml;k boyutlu olduklari zaman &ccedil;&uuml;nk&uuml; g&ouml;nderilen veriler sayfa i&ccedil;erisinde g&ouml;nderilirler buda b&uuml;y&uuml;k boyutlu verilerde performans kaybina sebep olur.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">G&uuml;venligin &ouml;nemli oldugu datalari View State i&ccedil;ine koymayin.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 18pt;\" class=\"MsoNormal\"><span style=\"\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Ne Zaman View State Kullanmamaliyiz<\/span><\/span><\/strong><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Kullandiginiz kontrol i&ccedil;erigi&nbsp;asla degismiyorsa<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 53.4pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"\"><span style=\"font-family: Symbol;\"><span style=\"\"><span style=\"font-size: small;\">&middot;<\/span><span style=\"font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: small; font-family: Calibri;\">Kullanilan kontrol her postbackde yeniden dolduruluyorsa<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">View Stateler verileri sayfa i&ccedil;erisinde bazi hash ve kodlama algoritmalarina g&ouml;re kodlayarak gizli alanlada string olarak tutarlar. Asagida bir sayfa i&ccedil;erisinde bulunan view statelerin kaynak kodlarda nasil saklandigi g&ouml;r&uuml;nmektedir.<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\">&nbsp;<a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"165\" width=\"678\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Sabri\/1_7_resim2.jpg\" \/><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt; text-align: left;\" class=\"MsoNormal\">&nbsp;<\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt; text-align: left;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">Sonraki makalelerimizde view stateleri sikistirarak sayfa boyutlarini nasil k&uuml;&ccedil;&uuml;ltebilecegimize bakacagim. <\/span><\/span><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">Bir baska makalede g&ouml;r&uuml;smek &uuml;zere&#8230;<\/span><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Bu makalemizde state management (durum y&#246;netimi) ve view state hakkinda bilgi verecegim. View Statelerin kullanildigi yerler ve nasil kullanilacaklari konusunda bilgi vermeye &#231;alisacagim.<\/p>\n","protected":false},"author":517,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[407],"tags":[6234,4311,5063,5205,4315,6031,6103,5766,6272,5656],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/114"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/517"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}