{"id":17,"date":"2010-01-23T22:33:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=17"},"modified":"2010-01-23T22:33:00","modified_gmt":"1970-01-01T00:00:00","slug":"asp-net-gridviewdaki-kayitlari-word-excel-pdf-ve-csv-formatlarina-aktarma","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2010\/01\/23\/asp-net-gridviewdaki-kayitlari-word-excel-pdf-ve-csv-formatlarina-aktarma\/","title":{"rendered":"ASP.NET Gridview&#8217;daki Kayitlari Word, Excel, PDF ve CSV Formatlarina Aktarma"},"content":{"rendered":"<div style=\"text-align: justify; font-family: Verdana; font-size: 12px;\">Bu makalemizde Gridview&#8217;daki kayitlarimizi Word, Excel, PDF ve CSV formatlarina nasil aktaracagimizi &ouml;grenecegiz.<br \/>\nASP.NET ile Word,Excel ve CSV formatlarina 3. parti yazilimlar gerektirmeden kolayca aktarim saglarken , PDF&#8217;e veri aktariminda ise &uuml;cretsiz 3. parti bir yazilim olan iTextSharp tool&#8217;unu kullanacagiz.<br \/>\n&Ouml;ncelikle aktarim i&ccedil;in Gridview i&ccedil;erisinde biraz veri bulunmasi gerekmekte. Bunun i&ccedil;in Northwind Database&#8217;nden Customers kayitlarini Gridview&#8217;e dolduruyorum. Gridview&rsquo;mizin HTML &ccedil;iktisi asagidaki gibidir ;<columns><\/columns><br \/>\n<p><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">gridview<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">id<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;GridView1&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">runat<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;server&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">autogeneratecolumns<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;false&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">font-names<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;Arial&quot;<br \/>\n<\/font><\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">font-size<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;11pt&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">alternatingrowstyle-backcolor<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;#C2D69B&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">headerstyle-backcolor<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;green&quot;<br \/>\n<\/font><\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">allowpaging<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;true&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">onpageindexchanging<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=&quot;OnPaging&quot;&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">Columns<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">BoundField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">ItemStyle-Width<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;150px&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">DataField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;CustomerID&quot;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">HeaderText<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;CustomerID&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">\/&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">BoundField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">ItemStyle-Width<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;150px&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">DataField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;City&quot;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">HeaderText<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;City&quot;\/&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">BoundField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">ItemStyle-Width<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;150px&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">DataField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;Country&quot;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">HeaderText<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;Country&quot;\/&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">BoundField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">ItemStyle-Width<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;150px&quot;<\/font><\/font><font size=\"2\"> <\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">DataField<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;PostalCode&quot;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#ff0000\" size=\"2\"><font color=\"#ff0000\" size=\"2\">HeaderText<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">=<\/font><\/font><font size=\"2\"> <\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&quot;PostalCode&quot;\/&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;\/<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">Columns<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&gt;<\/font><\/font><font size=\"2\"> <br \/>\n<\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&lt;\/<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">asp<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">:<\/font><\/font><font color=\"#a31515\" size=\"2\"><font color=\"#a31515\" size=\"2\">gridview<\/font><\/font><font color=\"#0000ff\" size=\"2\"><font color=\"#0000ff\" size=\"2\">&gt;<\/font><\/font>Gridview&#8217;mizi hazirladiktan sonra altina 4 tane buton ekliyoruz. <br \/>\n&nbsp;&nbsp;1. Export To Word <br \/>\n&nbsp;&nbsp;2. Export To Excel <br \/>\n&nbsp;&nbsp;3. Export To PDF <br \/>\n&nbsp;&nbsp;4. Export To CSV <br \/>\n<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image002.jpg\" alt=\"\" \/> <br \/>\n<br \/>\n<b>Microsoft Word Formatina Veri Aktarimi<\/b><br \/>\n<br \/>\n<b>C# <\/b><\/p>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">protected void btnExportWord_Click(object sender, EventArgs e) { <br \/>\n&nbsp;&nbsp;<font color=\"#ff0000\">\/\/ I&ccedil;erigi y&uuml;klemeden &ouml;nce ekrandaki &ccedil;&ouml;pleri temizliyoruz<\/font> <br \/>\n&nbsp;&nbsp;Response.Clear(); <br \/>\n&nbsp;&nbsp;Response.Buffer = true; <br \/>\n&nbsp;&nbsp;Response.AddHeader(&quot;content-disposition&quot;,&quot;attachment;filename=GridViewExport.doc&quot;); <br \/>\n&nbsp;&nbsp;Response.Charset = &quot;&quot;; <br \/>\n&nbsp;&nbsp;Response.ContentType = &quot;application\/vnd.ms-word &quot;; <br \/>\n&nbsp;&nbsp;StringWriter sw= new StringWriter(); <br \/>\n&nbsp;&nbsp;HtmlTextWriter hw = new HtmlTextWriter(sw); <br \/>\n&nbsp;&nbsp;<font color=\"#ff0000\">\/\/ Gridviewdaki b&uuml;t&uuml;n verileri aktarabilmek i&ccedil;in sayfalama &ouml;zellegini iptal edip , Gridview&rsquo;mizdaki degisikliklerin ge&ccedil;erli olabilmesi i&ccedil;in tekrar dolduruyoruz<\/font> <br \/>\n&nbsp;&nbsp;GridView1.AllowPaging = false; <br \/>\n&nbsp;&nbsp;GridView1.DataBind(); <br \/>\n&nbsp;&nbsp;<font color=\"#ff0000\">\/\/ Gridview&rsquo;daki degerlerimizi html formatina renderliyoruz<\/font> <br \/>\n&nbsp;&nbsp;GridView1.RenderControl(hw); <br \/>\n&nbsp;&nbsp;Response.Output.Write(sw.ToString()); <br \/>\n&nbsp;&nbsp;Response.Flush(); <br \/>\n&nbsp;&nbsp;Response.End(); }<\/div>\n<br \/>\n<b>VB.Net <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">Protected Sub btnExportWord_Click(ByVal sender As Object, ByVal e As EventArgs)<br \/>\n&nbsp;&nbsp;Response.Clear()<br \/>\n&nbsp;&nbsp;Response.Buffer = True <br \/>\n&nbsp;&nbsp;Response.AddHeader(&quot;content-disposition&quot;,&quot;attachment;filename=GridViewExport.doc&quot;) <br \/>\n&nbsp;&nbsp;Response.Charset = &quot;&quot; <br \/>\n&nbsp;&nbsp;Response.ContentType = &quot;application\/vnd.ms-word &quot; <br \/>\n&nbsp;&nbsp;Dim sw As New StringWriter() <br \/>\n&nbsp;&nbsp;Dim hw As New HtmlTextWriter(sw)<br \/>\n&nbsp;&nbsp;GridView1.AllowPaging = False <br \/>\n&nbsp;&nbsp;GridView1.DataBind() <br \/>\n&nbsp;&nbsp;GridView1.RenderControl(hw) <br \/>\n&nbsp;&nbsp;Response.Output.Write(sw.ToString())<br \/>\n&nbsp;&nbsp;Response.Flush() <br \/>\n&nbsp;&nbsp;Response.End() <br \/>\nEnd Sub<\/div>\n<br \/>\nNot : C# i&ccedil;erisinde yazdigim a&ccedil;iklamalar VB.Net tarafi i&ccedil;inde ge&ccedil;erlidir. Eger eksiksiz kodu yazdiysaniz alttaki gibi bir &ccedil;ikti elde edeceksiniz.<br \/>\n<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image004.jpg\" alt=\"\" \/><br \/>\n<br \/>\n<b>Microsoft Excel Formatina Veri Aktarimi<\/b> <br \/>\n<br \/>\n<b>C# <\/b><br \/>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">protected void btnExportExcel_Click(object sender, EventArgs e) { <br \/>\n&nbsp; Response.Clear(); <br \/>\n&nbsp; Response.Buffer = true; <br \/>\n&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.xls&quot;);<br \/>\n&nbsp; Response.Charset = &quot;&quot;; <br \/>\n&nbsp; Response.ContentType = &quot;application\/vnd.ms-excel&quot;; <br \/>\n&nbsp; StringWriter sw = new StringWriter(); <br \/>\n&nbsp; HtmlTextWriter hw = new HtmlTextWriter(sw); <br \/>\n&nbsp; GridView1.AllowPaging = false; <br \/>\n&nbsp; GridView1.DataBind(); <br \/>\n&nbsp; \/\/Baslik rowlarinin arka planini beyaz olarak ayarliyoruz. <br \/>\n&nbsp; GridView1.HeaderRow.Style.Add(&quot;background-color&quot;, &quot;#FFFFFF&quot;); <br \/>\n&nbsp; \/\/Simdide h&uuml;cre basliklarinin arka planini yesil yapiyoruz <br \/>\n&nbsp; GridView1.HeaderRow.Cells[0].Style.Add(&quot;background-color&quot;, &quot;green&quot;); <br \/>\n&nbsp; GridView1.HeaderRow.Cells[1].Style.Add(&quot;background-color&quot;, &quot;green&quot;); <br \/>\n&nbsp; GridView1.HeaderRow.Cells[2].Style.Add(&quot;background-color&quot;, &quot;green&quot;); <br \/>\n&nbsp; GridView1.HeaderRow.Cells[3].Style.Add(&quot;background-color&quot;, &quot;green&quot;); <br \/>\n&nbsp; for (int i = 0; i &lt; GridView1.Rows.Count;i++ ) <br \/>\n&nbsp;{ <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridViewRow row = GridView1.Rows[i]; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; \/\/Arka plan rengini beyaz olarak ayarliyoruz <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; row.BackColor = System.Drawing.Color.White; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; \/\/Her row&rsquo;un text &ouml;zelligine bir class atiyoruz <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; row.Attributes.Add(&quot;class&quot;, &quot;textmode&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; \/\/Biraz daha g&uuml;zellik katmak i&ccedil;in 2. Row&rsquo;larin arka planlarina farkli bir renk veriyoruz <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (i % 2 != 0) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells[0].Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells[1].Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells[2].Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells[3].Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br \/>\n&nbsp; } <br \/>\n&nbsp; GridView1.RenderControl(hw); <br \/>\n&nbsp; \/\/Sayisal formatlarin bozuk &ccedil;ikmamasi i&ccedil;in format belirliyoruz <br \/>\n&nbsp; string style = @&quot; <style type=\"text\/css\">\n                                        .textmode\n                                        {\n                                            mso-number-format: \\@;\n                                        }\n                                    <\/style>&quot;; <br \/>\n&nbsp; Response.Write(style); <br \/>\n&nbsp; Response.Output.Write(sw.ToString()); <br \/>\n&nbsp; Response.Flush(); <br \/>\n&nbsp; Response.End(); <br \/>\n}&nbsp;<\/div>\n<br \/>\n<b>VB.Net <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">PProtected Sub btnExportExcel_Click(ByVal sender As Object, ByVal e As EventArgs) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Buffer = True <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.xls&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Charset = &quot;&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;application\/vnd.ms-excel&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim sw As New StringWriter() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim hw As New HtmlTextWriter(sw) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.AllowPaging = False <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.DataBind() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.HeaderRow.Style.Add(&quot;background-color&quot;, &quot;#FFFFFF&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.HeaderRow.Cells(0).Style.Add(&quot;background-color&quot;, &quot;green&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.HeaderRow.Cells(1).Style.Add(&quot;background-color&quot;, &quot;green&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.HeaderRow.Cells(2).Style.Add(&quot;background-color&quot;, &quot;green&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.HeaderRow.Cells(3).Style.Add(&quot;background-color&quot;, &quot;green&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; For i As Integer = 0 To GridView1.Rows.Count &#8211; 1 <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim row As GridViewRow = GridView1.Rows(i) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.BackColor = System.Drawing.Color.White <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Attributes.Add(&quot;class&quot;, &quot;textmode&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If i Mod 2 &lt;&gt; 0 Then <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells(0).Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells(1).Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells(2).Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells(3).Style.Add(&quot;background-color&quot;, &quot;#C2D69B&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Next <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.RenderControl(hw) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim style As String = &quot; <style type=\"text\/css\">\n                                                                .textmode\n                                                                {\n                                                                    mso-number-format: \\@;\n                                                                }\n                                                            <\/style>&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(style) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Output.Write(sw.ToString()) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Flush() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.End() <br \/>\nEnd Sub br \/&gt;<\/div>\n<br \/>\n<br \/>\nC# i&ccedil;erisinde yazdigim a&ccedil;iklamalar VB.Net tarafi i&ccedil;inde ge&ccedil;erlidir. Eger eksiksiz kodu yazdiysaniz alttaki gibi bir &ccedil;ikti elde edeceksiniz.<br \/>\n<a href='www.yazilimmutfagi.com'>.<\/a><br \/>\n<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image006.jpg\" alt=\"\" \/><br \/>\n<br \/>\n<b>PDF Formatina Veri Aktarimi<\/b><br \/>\nGridview i&ccedil;erisindeki verileri PDF formatina aktarmak i&ccedil;in &uuml;cretsiz bir yazilim olan iTextSharp k&uuml;t&uuml;phanesini kullanacagiz. Bunun i&ccedil;in projenize iTextSharp k&uuml;t&uuml;phanesini projenize ekliyorsunuz ve asagidaki namespace &lsquo;leri sayfaniza ekliyorsunuz.<br \/>\n<br \/>\n<b>C# <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">using iTextSharp.text; <br \/>\nusing iTextSharp.text.pdf; <br \/>\nusing iTextSharp.text.html; <br \/>\nusing iTextSharp.text.html.simpleparser; <br \/>\n&nbsp;<\/div>\n<b><br \/>\nVB.Net <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">Imports iTextSharp.text <br \/>\nImports iTextSharp.text.pdf <br \/>\nImports iTextSharp.text.html <br \/>\nImports iTextSharp.text.html.simpleparser <br \/>\n&nbsp;<\/div>\n<br \/>\n<br \/>\nNot: Eger PDF&rsquo;inizin g&ouml;rselligi ile oynamak isterseniz iTextSharp bunu desteklemez.<br \/>\n<br \/>\n<b>C# <\/b><br \/>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">protected void btnExportPDF_Click(object sender, EventArgs e) <br \/>\n{ <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;application\/pdf&quot;; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.pdf&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Cache.SetCacheability(HttpCacheability.NoCache); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; StringWriter sw = new StringWriter(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; HtmlTextWriter hw = new HtmlTextWriter(sw); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.AllowPaging = false; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.DataBind(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.RenderControl(hw);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; StringReader sr = new StringReader(sw.ToString()); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Document pdfDoc = new Document(PageSize.A4, 10f,10f,10f,0f); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; HTMLWorker htmlparser = new HTMLWorker(pdfDoc); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter.GetInstance(pdfDoc, Response.OutputStream); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; pdfDoc.Open(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; htmlparser.Parse(sr);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; pdfDoc.Close(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(pdfDoc);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.End(); <br \/>\n}<\/div>\n<b><br \/>\nVB.Net<\/b><br \/>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">Protected Sub btnExportPDF_Click(ByVal sender As Object, ByVal e As EventArgs) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;application\/pdf&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.pdf&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Cache.SetCacheability(HttpCacheability.NoCache) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim sw As New StringWriter() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim hw As New HtmlTextWriter(sw) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.AllowPaging = False <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.DataBind() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.RenderControl(hw)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim sr As New StringReader(sw.ToString()) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 10.0F, 0.0F) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim htmlparser As New HTMLWorker(pdfDoc) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; PdfWriter.GetInstance(pdfDoc, Response.OutputStream) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; pdfDoc.Open() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; htmlparser.Parse(sr)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; pdfDoc.Close() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Write(pdfDoc)<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.End() <br \/>\nEnd Sub<\/div>\n<br \/>\nEger eksiksiz kodu yazdiysaniz alttaki gibi bir &ccedil;ikti elde edeceksiniz.<br \/>\n<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image008.jpg\" alt=\"\" \/><br \/>\n<br \/>\n<b>CSV Formatina Veri Aktarimi<\/b><br \/>\n<br \/>\nEn son konumuz olan CSV formatina veri aktarimina geldik. Burada belirleyeceginiz bir karakter ile verilerinizi birbirinden ayirmaniz gerekmektedir. Ben &ldquo;,&rdquo; karakterini kullanacagim.<br \/>\n<b>C# <\/b><br \/>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">protected void btnExportCSV_Click(object sender, EventArgs e) <br \/>\n{ <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Buffer = true; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.csv&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Charset = &quot;&quot;; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;application\/text&quot;; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.AllowPaging = false; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.DataBind(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; StringBuilder sb = new StringBuilder(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; for (int k = 0; k &lt; GridView1.Columns.Count; k++) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; { <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">\/\/Ayira&ccedil; belirliyoruz<\/font> <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(GridView1.Columns[k].HeaderText + &#8216;,&#8217;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; } <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">\/\/Yeni bir satir ekliyoruz<\/font> <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(&quot;\\r\\n&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; GridView1.Rows.Count; i++) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; { <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int k = 0; k &lt; GridView1.Columns.Count; k++) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">\/\/ Ayira&ccedil; belirliyoruz<\/font><br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(GridView1.Rows[i].Cells[k].Text + &#8216;,&#8217;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"#ff0000\">\/\/Yeni bir satir ekliyoruz<\/font> <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(&quot;\\r\\n&quot;); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; } <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Output.Write(sb.ToString()); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Flush(); <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.End(); <br \/>\n}&nbsp;&nbsp;&nbsp;&nbsp;<\/div>\n<br \/>\n<b>VB.Net <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">PProtected Sub btnExportCSV_Click(ByVal sender As Object, ByVal e As EventArgs) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Buffer = True <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(&quot;content-disposition&quot;, &quot;attachment;filename=GridViewExport.csv&quot;) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Charset = &quot;&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = &quot;application\/text&quot; <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.AllowPaging = False <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; GridView1.DataBind() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Dim sb As New StringBuilder() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; For k As Integer = 0 To GridView1.Columns.Count &#8211; 1 <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(GridView1.Columns(k).HeaderText + &quot;,&quot;c) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Next <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(vbCr &amp; vbLf) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; For i As Integer = 0 To GridView1.Rows.Count &#8211; 1 <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; For k As Integer = 0 To GridView1.Columns.Count &#8211; 1 <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(GridView1.Rows(i).Cells(k).Text + &quot;,&quot;c) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Next <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; sb.Append(vbCr &amp; vbLf) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Next <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Output.Write(sb.ToString()) <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.Flush() <br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; Response.End() <br \/>\nEnd Sub<\/div>\n<br \/>\n<br \/>\nEger eksiksiz kodu yazdiysaniz alttaki gibi bir &ccedil;ikti elde edeceksiniz.<br \/>\n<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image010.jpg\" alt=\"\" \/><br \/>\n<br \/>\nProjenizi ilk &ccedil;alistirdiginizda verileri export etmek istediginizde asagidaki gibi bir hata ile karsilacaksiniz.<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"505\" height=\"381\" src=\"http:\/\/www.volkankorkmaz.net\/ArticlesImage\/216_image012.jpg\" alt=\"\" \/><br \/>\n<br \/>\nGridview nesnesinin export isleminden &ouml;nce render edilmemis olmasi. Bunun i&ccedil;in asagidaki kod blogunu projemize ekliyoruz. <br \/>\n<br \/>\n<b>C# <\/b><br \/>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">public override void VerifyRenderingInServerForm(Control control) <br \/>\n{ <br \/>\n\/* Kontrol&uuml;n renderlandigi dogrulaniyor *\/ <br \/>\n}<\/div>\n<br \/>\n<b>VB.Net <\/b>\n<div style=\"border: 1px solid ; background-color: rgb(243, 243, 243);\">Public Overloads Overrides Sub VerifyRenderingInServerForm (ByVal control As Control) <br \/>\n&#8216; Kontrol&uuml;n renderlandigi dogrulaniyor <br \/>\nEnd Sub<\/div>\n<br \/>\n<br \/>\nBir makalemizin daha sonuna geldik. Makale ile ilgili sorularinizi mail adresimden bana ulasarak sorabilirsiniz.<br \/>\n<a href='www.yazilimmutfagi.com'>.<\/a><br \/>\n<br \/>\nVolkan KORKMAZ<br \/>\nMicrosoft Certified Business Management Solutions Specialist<br \/>\nvolkankorkmaz@gmail.com<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/www.volkankorkmaz.net\" target=\"_blank\">http:\/\/www.volkankorkmaz.net<\/a>\n<p>&nbsp;<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Bu makalemizde Gridview&#39;daki kayitlarimizi Word, Excel, PDF ve CSV formatlarina nasil aktaracagimizi &#246;grenecegiz.<br \/>\nASP.NET ile Word,Excel ve CSV formatlarina 3. parti yazilimlar gerektirmeden kolayca aktarim saglarken , PDF&#39;e veri aktariminda ise &#252;cretsiz 3. parti bir yazilim olan iTextSharp tool&#39;unu kullanacagiz. <\/p>\n","protected":false},"author":532,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[407],"tags":[4229,5595,5282,4542,4976,5812,6126,5999],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/17"}],"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\/532"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}