<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7712731644405234924.post1720885926133116919..comments</id><updated>2011-08-29T20:02:20.942+10:00</updated><category term='LINQ'/><category term='Remoting'/><category term='Delegate'/><category term='Query'/><category term='WCF'/><category term='Multi tier'/><category term='Reporting Services'/><category term='Design Patterns'/><category term='Ajax'/><title type='text'>Comments on C# Free Training Courses: How to export data to CSV file in ASP.NET</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.csharpcourses.com/feeds/1720885926133116919/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html'/><author><name>Emad Yazdan</name><uri>http://www.blogger.com/profile/09070609059622439370</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://bp3.blogger.com/_ZogK56M8ygE/SEKDidiygjI/AAAAAAAAAIA/ntUuLct0lfU/S220/emad2.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-580777027859182052</id><published>2011-08-16T23:50:03.666+10:00</published><updated>2011-08-16T23:50:03.666+10:00</updated><title type='text'>I don&amp;#39;t usually comment on posts because I&amp;#39...</title><content type='html'>I don&amp;#39;t usually comment on posts because I&amp;#39;m a bit of a lazy bugger. However, after weeks of searching something nice and simple from a list (not a nasty gridview), I found this and it&amp;#39;s perfect.&lt;br /&gt;&lt;br /&gt;Thank you Emad.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/580777027859182052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/580777027859182052'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1313502603666#c580777027859182052' title=''/><author><name>Andy</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1194670957'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-6804841728575634994</id><published>2010-12-20T04:59:08.716+11:00</published><updated>2010-12-20T04:59:08.716+11:00</updated><title type='text'>CSV files allow for values with embedded comments ...</title><content type='html'>CSV files allow for values with embedded comments if you wrap them in double quotes instead of stripping out commas as your code does.&lt;br /&gt;&lt;br /&gt;I write a couple of simple classes for both reading and writing CSV files at &lt;a href="http://www.blackbeltcoder.com/Articles/files/reading-and-writing-csv-files-in-c" rel="nofollow"&gt;http://www.blackbeltcoder.com/Articles/files/reading-and-writing-csv-files-in-c&lt;/a&gt;. Some of your readers may want to see those routines as well.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/6804841728575634994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/6804841728575634994'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1292781548716#c6804841728575634994' title=''/><author><name>Jonathan Wood</name><uri>http://www.blackbeltcoder.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1485240488'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-7259472946821756051</id><published>2010-07-30T04:11:45.302+10:00</published><updated>2010-07-30T04:11:45.302+10:00</updated><title type='text'>I would have replaced the AddComma method with an ...</title><content type='html'>I would have replaced the AddComma method with an AddQuotes method which would do something like this:&lt;br /&gt;&lt;br /&gt;public string AddQuotes(string input)&lt;br /&gt;        {&lt;br /&gt;            return &amp;quot;\&amp;quot;&amp;quot; + input.Remove(&amp;quot;\&amp;quot;&amp;quot;) + &amp;quot;\&amp;quot;&amp;quot;;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;This would allow you to have commas in your datafields (although it would remove doublequotes from the data, so I guess it&amp;#39;s a trade-off).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/7259472946821756051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/7259472946821756051'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1280427105302#c7259472946821756051' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-197374480'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-9134700137360712221</id><published>2010-05-21T12:55:52.093+10:00</published><updated>2010-05-21T12:55:52.093+10:00</updated><title type='text'>hi this is very nice coding. what i espect from li...</title><content type='html'>hi this is very nice coding. what i espect from listview to csv file it work perfectly .&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;by,&lt;br /&gt;SASIDHAR.C</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/9134700137360712221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/9134700137360712221'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1274410552093#c9134700137360712221' title=''/><author><name>sasidhar</name><uri>http://www.blogger.com/profile/10691767303292221095</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1934276805'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-5771774268564624248</id><published>2009-02-19T11:01:00.000+11:00</published><updated>2009-02-19T11:01:00.000+11:00</updated><title type='text'>Hi Mojahid,&lt;br&gt;&lt;br&gt;I appreciate your comment howev...</title><content type='html'>Hi Mojahid,&lt;BR/&gt;&lt;BR/&gt;I appreciate your comment however I strongly believe it is not a good practice. let me give you an example if in a case you need to change the code you have to maintain that code in so many places however now there is a method that you change it. Please search for Coupling and Cohision in programming and you will see what I mean.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/5771774268564624248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/5771774268564624248'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1235001660000#c5771774268564624248' title=''/><author><name>Emad Yazdanpanah</name><uri>http://www.blogger.com/profile/09070609059622439370</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://bp3.blogger.com/_ZogK56M8ygE/SEKDidiygjI/AAAAAAAAAIA/ntUuLct0lfU/S220/emad2.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2336188'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-359821109741708681</id><published>2009-02-19T05:20:00.000+11:00</published><updated>2009-02-19T05:20:00.000+11:00</updated><title type='text'>You could have used double quoted comma delimited ...</title><content type='html'>You could have used double quoted comma delimited string format. &lt;BR/&gt;&lt;BR/&gt;There is no need to call AddComma for each method, you could have just used&lt;BR/&gt;&lt;BR/&gt;String.Format("\"{0}\",\"{1}\",\"{2}\"\n", employee.FirstName, employee.LastName, employee.Age)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/359821109741708681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/359821109741708681'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1234981200000#c359821109741708681' title=''/><author><name>Mujahid Khaleel's Blog</name><uri>http://www.blogger.com/profile/11671914964054320549</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-934669734'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-7862060039175537468</id><published>2008-12-10T13:10:00.000+11:00</published><updated>2008-12-10T13:10:00.000+11:00</updated><title type='text'>How would the code look like if you had to query t...</title><content type='html'>How would the code look like if you had to query the data from a database table? How would it look using linq?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/7862060039175537468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/7862060039175537468'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1228875000000#c7862060039175537468' title=''/><author><name>Eva</name><uri>http://www.blogger.com/profile/01189990514518175539</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1313029766'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-5049442462129808757</id><published>2008-12-10T13:08:00.000+11:00</published><updated>2008-12-10T13:08:00.000+11:00</updated><title type='text'>How would the code look like, if you had to query ...</title><content type='html'>How would the code look like, if you had to query the data out of a table? It would be nice to have an example using Linq.&lt;BR/&gt;&lt;BR/&gt;Thank you!&lt;BR/&gt;E</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/5049442462129808757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/5049442462129808757'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1228874880000#c5049442462129808757' title=''/><author><name>Eva</name><uri>http://www.blogger.com/profile/01189990514518175539</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1313029766'/></entry><entry><id>tag:blogger.com,1999:blog-7712731644405234924.post-4479037664673505573</id><published>2008-10-21T16:54:00.000+11:00</published><updated>2008-10-21T16:54:00.000+11:00</updated><title type='text'>Hi Emad,&lt;br&gt;&lt;br&gt;this is great coding, and we've ac...</title><content type='html'>Hi Emad,&lt;BR/&gt;&lt;BR/&gt;this is great coding, and we've actually done the exactly same thing in vbscript for the company i work for and i was always thinking how it would look like doing it in C#. now i know :).&lt;BR/&gt;&lt;BR/&gt;by far, You are the best persian teacher I have seen to this day. &lt;BR/&gt;&lt;BR/&gt;maybe we bump into eachother at some persian gettogether in sydney. :)&lt;BR/&gt;&lt;BR/&gt;Ehsan</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/4479037664673505573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7712731644405234924/1720885926133116919/comments/default/4479037664673505573'/><link rel='alternate' type='text/html' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html?showComment=1224568440000#c4479037664673505573' title=''/><author><name>EHSAN</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csharpcourses.com/2008/06/how-to-export-data-to-csv-file-in.html' ref='tag:blogger.com,1999:blog-7712731644405234924.post-1720885926133116919' source='http://www.blogger.com/feeds/7712731644405234924/posts/default/1720885926133116919' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-407843943'/></entry></feed>
