{"id":107,"date":"2008-12-30T07:52:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=107"},"modified":"2008-12-30T07:52:00","modified_gmt":"1970-01-01T00:00:00","slug":"gridview-icindeki-verileri-excele-aktarmak","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2008\/12\/30\/gridview-icindeki-verileri-excele-aktarmak\/","title":{"rendered":"GridView i\u00e7indeki verileri Excel&#8217;e Aktarmak"},"content":{"rendered":"<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">GridView ASP.Net&rsquo;te sik olarak kullandigimiz ve ger&ccedil;ekten isimizi kolaylastiran bir bilesendir. Eminim &ccedil;ogunuzun grid &uuml;zerindeki verileri bir Excel sayfasina aktarmaya ihtiyaci olmustur. Bu makalemizde grid i&ccedil;erisindeki verileri bir Excel dosyasina nasil aktaracagimizi anlatacagim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><a href=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Sabri\/1_6_GridiExceleAktarma.rar\">aspx ve aspx.cs dosyalarini indirmek i&ccedil;in tiklayin<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt 35.4pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt 35.4pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">GridView den Excel&rsquo;e Veri Aktarma<\/span><\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Aslinda grid den excel&rsquo;e veri aktarma olduk&ccedil;a kolay bir istir. Basit bir &ouml;rnekle bunu nasil ger&ccedil;eklestirecegimize bakacagiz. Makalemizde &ouml;rnek olarak Microsoft tarafindan &uuml;cretsiz olarak sunulan AdventureWorksDW2008 veritabanini kullanacagim.<span style=\"\">&nbsp; <\/span><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Ilk olarak yeni bir solution i&ccedil;inde web sitesi olusturup ExceleAktarForm.aspx adinda bir webform ekleyelim. Daha &ouml;nceki makalelerimizde bir gridviewi nasil bind edecegimizi anlatmistik, bu y&uuml;zden bu konulari bildiginizi varsayarak ge&ccedil;ecegim. Gelelim nasil yapacagimiza<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">ExceleAktarForm .aspx sayfamizi asagidaki gibi d&uuml;zenleyelim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">form<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: red;\">id<\/span><span style=\"color: blue;\">=&quot;form1&quot;<\/span> <span style=\"color: red;\">runat<\/span><span style=\"color: blue;\">=&quot;server&quot;&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">asp<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">:<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">GridView<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: red;\">ID<\/span><span style=\"color: blue;\">=&quot;MusteriGridView&quot;<\/span> <span style=\"color: red;\">runat<\/span><span style=\"color: blue;\">=&quot;server&quot;<\/span> <span style=\"color: red;\">AutoGenerateColumns<\/span><span style=\"color: blue;\">=&quot;False&quot;<\/span> <span style=\"color: red;\">DataSourceID<\/span><span style=\"color: blue;\">=&quot;SqlDataSource1&quot;&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">Columns<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">BoundField<\/span> <span style=\"color: red;\">DataField<\/span><span style=\"color: blue;\">=&quot;FirstName&quot;<\/span> <span style=\"color: red;\">HeaderText<\/span><span style=\"color: blue;\">=&quot;FirstName&quot;<\/span> <span style=\"color: red;\">SortExpression<\/span><span style=\"color: blue;\">=&quot;FirstName&quot;<\/span> <span style=\"color: blue;\">\/&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">BoundField<\/span> <span style=\"color: red;\">DataField<\/span><span style=\"color: blue;\">=&quot;LastName&quot;<\/span> <span style=\"color: red;\">HeaderText<\/span><span style=\"color: blue;\">=&quot;LastName&quot;<\/span> <span style=\"color: red;\">SortExpression<\/span><span style=\"color: blue;\">=&quot;LastName&quot;<\/span> <span style=\"color: blue;\">\/&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">BoundField<\/span> <span style=\"color: red;\">DataField<\/span><span style=\"color: blue;\">=&quot;BirthDate&quot;<\/span> <span style=\"color: red;\">HeaderText<\/span><span style=\"color: blue;\">=&quot;BirthDate&quot;<\/span> <span style=\"color: red;\">SortExpression<\/span><span style=\"color: blue;\">=&quot;BirthDate&quot;<\/span> <span style=\"color: blue;\">\/&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">BoundField<\/span> <span style=\"color: red;\">DataField<\/span><span style=\"color: blue;\">=&quot;EmailAddress&quot;<\/span> <span style=\"color: red;\">HeaderText<\/span><span style=\"color: blue;\">=&quot;EmailAddress&quot;<\/span> <span style=\"color: red;\">SortExpression<\/span><span style=\"color: blue;\">=&quot;EmailAddress&quot;<\/span> <span style=\"color: blue;\">\/&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">BoundField<\/span> <span style=\"color: red;\">DataField<\/span><span style=\"color: blue;\">=&quot;AddressLine1&quot;<\/span> <span style=\"color: red;\">HeaderText<\/span><span style=\"color: blue;\">=&quot;AddressLine1&quot;<\/span> <span style=\"color: red;\">SortExpression<\/span><span style=\"color: blue;\">=&quot;AddressLine1&quot;<\/span> <span style=\"color: blue;\">\/&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: rgb(163, 21, 21);\">Columns<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;\/<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">asp<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">:<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">GridView<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&gt;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">asp<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">:<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">SqlDataSource<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: red;\">ID<\/span><span style=\"color: blue;\">=&quot;SqlDataSource1&quot;<\/span> <span style=\"color: red;\">runat<\/span><span style=\"color: blue;\">=&quot;server&quot;<\/span> <span style=\"color: red;\">ConnectionString<\/span><span style=\"color: blue;\">=&quot;<\/span><span style=\"background: yellow none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\">&lt;%<\/span>$ ConnectionStrings:AdventureWorksDW2008ConnectionString <span style=\"background: yellow none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\">%&gt;<\/span><span style=\"color: blue;\">&quot;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: red;\">SelectCommand<\/span><span style=\"color: blue;\">=&quot;SELECT TOP 20 [FirstName], [LastName], [BirthDate], [EmailAddress], [AddressLine1] FROM [DimCustomer]&quot;&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;\/<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">asp<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">:<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">SqlDataSource<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&gt;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">&lt;<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">asp<\/span><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">:<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); font-family: &quot;Courier New&quot;;\">LinkButton<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: red;\">ID<\/span><span style=\"color: blue;\">=&quot;ExceleAktarLinkButton&quot;<\/span> <span style=\"color: red;\">runat<\/span><span style=\"color: blue;\">=&quot;server&quot;<\/span> <span style=\"color: red;\">OnClick<\/span><span style=\"color: blue;\">=&quot;ExceleAktarLinkButton_Click&quot;&gt;<\/span>Excele Aktar<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: rgb(163, 21, 21);\">asp<\/span><span style=\"color: blue;\">:<\/span><span style=\"color: rgb(163, 21, 21);\">LinkButton<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: &quot;Courier New&quot;;\">&lt;\/<\/span><span style=\"font-size: 10pt; color: rgb(163, 21, 21); line-height: 115%; font-family: &quot;Courier New&quot;;\">form<\/span><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: &quot;Courier New&quot;;\">&gt;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">ExceleAktarForm .aspx.cs i&ccedil;erisinde <\/span><span style=\"font-size: 10pt; color: blue; line-height: 115%; font-family: &quot;Courier New&quot;;\">ExceleAktarLinkButton <\/span><span style=\"font-size: small; font-family: Calibri;\">tiklandigi zaman &ccedil;alisacak olan eventi asagidaki gibi d&uuml;zenleyelim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">protected<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: blue;\">void<\/span> ExceleAktarLinkButton_Click(<span style=\"color: blue;\">object<\/span> sender, <span style=\"color: rgb(43, 145, 175);\">EventArgs<\/span> e)<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.Clear();<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.AddHeader(<span style=\"color: rgb(163, 21, 21);\">&quot;content-disposition&quot;<\/span>, <span style=\"color: rgb(163, 21, 21);\">&quot;attachment;filename=FileName.xls&quot;<\/span>);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.Charset = <span style=\"color: rgb(163, 21, 21);\">&quot;&quot;<\/span>;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.Cache.SetCacheability(<span style=\"color: rgb(43, 145, 175);\">HttpCacheability<\/span>.NoCache);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.ContentType = <span style=\"color: rgb(163, 21, 21);\">&quot;application\/vnd.xls&quot;<\/span>;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>System.IO.<span style=\"color: rgb(43, 145, 175);\">StringWriter<\/span> stringWrite = <span style=\"color: blue;\">new<\/span> System.IO.<span style=\"color: rgb(43, 145, 175);\">StringWriter<\/span>();<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>System.Web.UI.<span style=\"color: rgb(43, 145, 175);\">HtmlTextWriter<\/span> htmlWrite = <span style=\"color: blue;\">new<\/span> <span style=\"color: rgb(43, 145, 175);\">HtmlTextWriter<\/span>(stringWrite);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>form1.Controls.Clear();<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>form1.Controls.Add(MusteriGridView);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>form1.RenderControl(htmlWrite);<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.Write(stringWrite.ToString());<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>Response.End();<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">Yukarida ki koda dikkat ederseniz RenderControl fonksiyonunu gridview i&ccedil;in degil form i&ccedil;in kullandik, bunun sebebine gelince; ASP.NET 1.1 de kullandigimiz DataGrid bileseninde excel&rsquo;e aktarmak i&ccedil;in datagridAdi.RenderControl kullaniyorduk fakat Asp.NET 2.0 dan sonra gelen GridView kontrol&uuml;nde RenderControl &ouml;zelligini kullandigimizda hata aliriz. Bu y&uuml;zden sayfamizda kullandigimiz form nesnesini kullaniyoruz. Gelelim diger kisimlarin a&ccedil;iklamasina;<\/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\"><span style=\"font-size: small; font-family: Calibri;\">Projemizi &ccedil;alistirip Excel&rsquo;e Aktar butonuna bastigimizda Excel dosyasinin olusturuldugunu g&ouml;receksiniz.<\/span><\/p>\n<p align=\"center\" style=\"margin: 0cm 0cm 10pt; text-align: center;\" class=\"MsoNormal\">&nbsp;<\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\"><img decoding=\"async\" loading=\"lazy\" height=\"557\" width=\"666\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/Makale\/Img\/Sabri\/1_6_resim1.jpg\" \/><\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt; text-indent: 35.4pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">G&ouml;rd&uuml;g&uuml;n&uuml;z gibi bir gridview i&ccedil;indeki verileri Excel&rsquo;e aktarmak olduk&ccedil;a basit bir islem. Bir sonraki makalemizde de grid i&ccedil;erisindeki verileri Word ortamina atmaya deginecegiz.<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>GridView ASP.Net\u2019te sik olarak kullandigimiz ve ger&#231;ekten isimizi kolaylastiran bir bilesendir. Eminim &#231;ogunuzun grid &#252;zerindeki verileri bir Excel sayfasina aktarmaya ihtiyaci olmustur. Bu makalemizde grid i&#231;erisindeki verileri bir Excel dosyasina nasil aktaracagimizi anlatacagim.<\/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":[5651,4469,5056,4304,5211],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/107"}],"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=107"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}