<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Runtime Debugger</title>
	<atom:link href="http://appsettings.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://appsettings.wordpress.com</link>
	<description>technology can do little for people who have nothing to say</description>
	<lastBuildDate>Wed, 19 Mar 2008 06:30:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='appsettings.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Runtime Debugger</title>
		<link>http://appsettings.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://appsettings.wordpress.com/osd.xml" title="Runtime Debugger" />
	<atom:link rel='hub' href='http://appsettings.wordpress.com/?pushpress=hub'/>
		<item>
		<title>how to improve Asp.Net application performance ?</title>
		<link>http://appsettings.wordpress.com/2008/03/19/11/</link>
		<comments>http://appsettings.wordpress.com/2008/03/19/11/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 06:11:02 +0000</pubDate>
		<dc:creator>kannan Ambadi</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[code performance]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://appsettings.wordpress.com/2008/03/19/11/</guid>
		<description><![CDATA[I&#8217;ve found a very gud blog on how to improve Asp.Net application performance. The article reminds you some important tips that u usually forget at the time of coding. please have a look on this. 20 Tips to Improve ASP.net Application Performance Kannan M ambadi<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=11&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Trebuchet MS" size="2"><br />
I&#8217;ve found a very gud blog on how to improve Asp.Net application performance. The article reminds you some important tips that u usually forget at the time of coding.  please have a look on this.<br />
<a href="http://www.realsoftwaredevelopment.com/2007/08/20-tips-to-impr.html" target="_blank">20 Tips to Improve ASP.net Application Performance</a><br />
</font></p>
<pre><font><b><font color="#000000" face="Tahoma" size="2"><b>Kannan M ambadi</b></font></b></font></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appsettings.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appsettings.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appsettings.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appsettings.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appsettings.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=11&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appsettings.wordpress.com/2008/03/19/11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18b9566c28054c7c1e3f9a12abe7cbab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">kannan.ambadi</media:title>
		</media:content>
	</item>
		<item>
		<title>Heroes(Never) Happen Here&#8230;&#8230;&#8230;..!!!!!!!!</title>
		<link>http://appsettings.wordpress.com/2008/03/18/heroesnever-happen-here/</link>
		<comments>http://appsettings.wordpress.com/2008/03/18/heroesnever-happen-here/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 08:37:11 +0000</pubDate>
		<dc:creator>kannan Ambadi</dc:creator>
				<category><![CDATA[microsoft]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://appsettings.wordpress.com/?p=10</guid>
		<description><![CDATA[Hi, I got a chance to attend the Microsoft First Look Clinic event held at trivandrum on March 15th. I did the registration a week before and eagerly waited for the event. But what happened on the day is something that u would never expect from Redmondians. I&#8217;ve reached event center on time, waited around [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=10&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Trebuchet MS" size="2">Hi,</font></p>
<p><font face="Trebuchet MS" size="2">I got a chance to attend the Microsoft <a href="http://www.heroeshappenhere.co.in/FirstLookClinic.aspx">First Look Clinic event</a>  held at trivandrum on March 15th. I did the registration a week before and eagerly waited for the event. But what happened on the day is something that u would never expect from Redmondians. I&#8217;ve reached event center on time, waited around 45 mins. There were no sense of microsoft&#8217;s event goin on as people were moving as usual. Atlast, a lady came and confirmed our registration and later asked to sit in a computer lab, which has a seating capacity of 12-15. After 15mins, they slowly started the event by presenting a PPT(just reading the slides) by <b>someone </b>whom sitting <b>somewhere</b> in the building. We could hear only voice and ppt slides, no explanations, no doubts nothin.We felt like watching a comic show. As u know, 95% of .Net developers aware about visual studio 2008 and its features, then y did they gone for reading slides without any explanation ? they could have atleast show the demo of visual studio 2008. Did anyone expect such a poor show from world&#8217;s biggest software compnay, even google wont expect..sure&#8230;anyways leave it for the sake of  At the end of the <b>SHOW</b>, they apologised for unavailabilty of the technical expert since they&#8217;ve got the information about the event <b>TWO DAYS BACK</b>..so they couldnt prepare well bla bla bla&#8230;.<b> </b>I was wondering why microsoft gone for such a flop marketing strategy for their MOST IMPORTANT products. It seems like microsoft promoting <b><i>Heroes Never Happen Here</i></b>.I took the videos of the fun movie (sorry event!!)  n u can see it from here  </font></p>
<p><b><a href="http://video.msn.com/video.aspx?vid=e125bd78-7b19-4c74-aa7b-24eff2f6ec41" target="_new" title="Heroes Happen Here!!!!!!!!">Video: Heroes Happen Here!!!!!!!!</a></b></p>
<pre><font><b><font color="#000000" face="Tahoma" size="2"><b>Kannan M ambadi</b></font></b></font></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appsettings.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appsettings.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appsettings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appsettings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appsettings.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=10&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appsettings.wordpress.com/2008/03/18/heroesnever-happen-here/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18b9566c28054c7c1e3f9a12abe7cbab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">kannan.ambadi</media:title>
		</media:content>
	</item>
		<item>
		<title>ORM Technology</title>
		<link>http://appsettings.wordpress.com/2008/03/12/orm-technology/</link>
		<comments>http://appsettings.wordpress.com/2008/03/12/orm-technology/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 09:54:49 +0000</pubDate>
		<dc:creator>kannan Ambadi</dc:creator>
				<category><![CDATA[Ado.Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[nHIbernate]]></category>
		<category><![CDATA[ORM Technology]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[linq-to-sql]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[nhiberante]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[vsts]]></category>

		<guid isPermaLink="false">http://appsettings.wordpress.com/?p=8</guid>
		<description><![CDATA[Hi, Last week i&#8217;ve attended a microsoft seminar on Visual Studio 2008 &#38; VSTS. It was a nice presentation and we have had a delicious lunch too;)&#8230;Presentation on VSTS was amazing. The presenter, Tejsvi Kumar(Technology specialist from microsoft) , who provided clear idea on how we can handle a big project by Only using VSTS.Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=8&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Trebuchet MS" size="2"> Hi,</font>  <font face="Trebuchet MS" size="2">Last week i&#8217;ve attended a microsoft seminar on Visual Studio 2008 &amp; <a href="http://msdn2.microsoft.com/en-us/teamsystem/default.aspx" title="Visual Studio Team System" target="_blank">VSTS</a>. It was a nice presentation and we have had a delicious lunch too;)&#8230;Presentation on VSTS was amazing. The presenter, Tejsvi Kumar(Technology specialist from microsoft) , who provided clear idea on how we can handle a big project by <b>Only </b>using VSTS.Then he had shown demo on VSTS how Project manager can assign tasks, view status or create test cases on the fly etc. In between he also mentioned on visual studio 2008 features. i would to like express my appreciation to them for sharing their exp with us. And more than that, they&#8217;ve come up with more knowledge by replying our queries. Me too sent a mail regarding some queries on LINQ. I got a very detailed reply on this. I would like to share their reply with everyone since it provides a neat explaination on LINQ n other technologies.</font></p>
<p><font face="Trebuchet MS" size="2"><b>Q :</b> <i>Can u differentiate between Ado.Net and LINQ</i><br />
<b> A :</b> ADO.NET is a mechanism to connect to the data source (like ODBC) whereas LINQ is a query mechanism to query *any* kind of data not necessarily data from a database. As an example try the following simple LINQ program:</font></p>
<div style="margin-left:40px;"><font face="Trebuchet MS" size="2">        static void Main(string[] args)<br />
{<br />
int[] numbers = { 3, 5, 6, 1 };</font><font face="Trebuchet MS" size="2"></font></div>
<div style="margin-left:40px;"><font face="Trebuchet MS" size="2">var exp = from n in numbers</font></div>
<div style="margin-left:40px;"><font face="Trebuchet MS" size="2">                                  where n &lt; 5<br />
orderby n ascending<br />
select n;</font><font face="Trebuchet MS" size="2">foreach(var e in exp )<br />
{<br />
Console.WriteLine(e);<br />
}<br />
}</font></div>
<p><font face="Trebuchet MS" size="2">This program demonstrates the following:</font></p>
<p><font face="Trebuchet MS" size="2">	- LINQ is a language concept (integrating queries in the programming language)<br />
- LINQ queries can be quite expressive including joins, where clauses, grouping etc.<br />
- LINQ has nothing to do with databases in particular – however you can build LINQ based extensions that enable you to to query any kind of database using LINQ queries (e.g. LINQ to XML, LINQ to SQL, LINQ to datasets, LINQ to Entities, LINQ to Objects) </font></p>
<p><font face="Trebuchet MS" size="2"><b>Q : </b><i>Is LINQ is nothing but a copy if nHiberante ?</i><br />
<b> A :</b> I disagree &#8211; LINQ is NOT copied from nHiberbate. The example in point 1 will explain that nHibernate has nothing similar. However you can definitely compare LINQ-to-SQL with nHibernate. Now nHibernate itself is no new technology – both nHibernate and LINQ-to-SQL are products that make use of the Object Relational Mapping (ORM) Technology. There are pro and cons of ORM technology and they are very widely discussed in the technology circles. You can get an insight into them on the net. The important thing to remember is that there are definitely some very important benefits (inspite of some disadvantages) of ORMs and if as an architect your analysis proves that ORM wil benefit your project you should go for it. Generally every technology has its pros and cons (like any other thing in life) and as a smart Architect you need to understand your requirements in nicely and then choose the technology that suits you best. </font></p>
<p><font face="Trebuchet MS" size="2"><b>Q :</b><i> LINQ(nHiberante) causes difficulty while debugging the code. Its very difficult to find which line throws exception.</i><br />
<b> A :</b> This statement confirms my comment in point 3. Pro of LINQ-to-SQL(nHibernate) – faster code development; Con of LINQ-to-SQL (nHibernate) – possibly more extensive debugging. However, if you make you of some best practices for debugging you can reduce the time. </font></p>
<p><font face="Trebuchet MS" size="2"><b>Q :</b><i> Its very difficult to make changes according to Database changes..</i><br />
<b> A :</b> Actually, with ORMs it becomes easier to abstract the Database changes from Application changes. So if your application is architected correctly and there are DB changes – with LINQ-to-SQL (or nHibernate) you will need to do NO or almost minimum changes in your code (all you have to do is change the mapping layer) </font></p>
<p><font face="Trebuchet MS" size="2"><b>Q : </b><i>Performance is slow compared to ado.Net(i&#8217;ve checked wit nHibernate, not wit LINQ)</i><br />
<b> A :</b> Please read my blog post on performance generally: http://blogs.msdn.com/bsinghal/archive/2007/07/16/there-is-a-performance-problem.aspx.<br />
To compare the performance of LINQ v/s non-LINQ scenario – you will need to do very thorough testing and make sure that we compare apples to apples.Regarding performance is slow with nHibernate or LINQ-to-SQL (ORMs) as compared to ADO.NET – yes that can be true in some cases even after doing all the possible optimizations etc because ORMs do add an extra layer of processing but they provide a lot of flexibility in return. The point here is that one should analyse the technology properly and make sure that any technology they choose addresses their requirements and needs. So if you are ready to spend 10 times more time in developing the application in ADO.NET at the cost of gaining lets say 2% performance improvement and of that is of more importance for your business then yes using ADO.NET is better.</font></p>
<pre><font><b><font color="#000000" face="Tahoma" size="2"><b>Kannan M ambadi</b></font></b></font></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appsettings.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appsettings.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appsettings.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appsettings.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appsettings.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=8&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appsettings.wordpress.com/2008/03/12/orm-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18b9566c28054c7c1e3f9a12abe7cbab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">kannan.ambadi</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple way to check your code performance</title>
		<link>http://appsettings.wordpress.com/2008/03/11/simple-way-to-check-your-code-performance/</link>
		<comments>http://appsettings.wordpress.com/2008/03/11/simple-way-to-check-your-code-performance/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 11:28:28 +0000</pubDate>
		<dc:creator>kannan Ambadi</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code performance]]></category>
		<category><![CDATA[indent]]></category>

		<guid isPermaLink="false">http://appsettings.wordpress.com/?p=4</guid>
		<description><![CDATA[Hi guys, Of course, we all know foreach loop takes more time than for loop and there are lot of similar scenarios in .Net. Even if it takes lot of time, we&#8217;ll be forced to use foreach loop at some cases. So it&#8217;ll be better, if we come to know the time taken for executing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=4&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Trebuchet MS" size="2">Hi guys,</p>
<p>Of course, we all know <b>foreach </b>loop takes more time than <b>for </b>loop and there are lot of similar scenarios in .Net. Even if it takes lot of time, we&#8217;ll be forced to use foreach loop at some cases. So it&#8217;ll be better, if we come to know the time taken for executing a piece of code at the runtime. Here is a simple way to find out the time taken for each process.It just writes the start time and finish time taken for the process in the debug window. Debug.Indent() method simply changes the indentation of the Output by one level and Debug.WriteLine() method writes a string in the debug window.</p>
<p>Here is the snippet </font></p>
<p style="font-family:Courier New;font-size:12px;"> <font color="#339966">//Increases the current IndentLevel</font><br />
System.Diagnostics.<font color="#33cccc">Debug</font>.Indent();<br />
<font color="#339966">//Writes the starttime</font><br />
System.Diagnostics.<font color="#33cccc">Debug</font>.WriteLine(&#8220;DEBUG START TIME  -&gt; : &#8221; + <font color="#33cccc">DateTime</font>.Now.ToString(&#8220;HH:mm s:fff&#8221;));<br />
<font color="#339966">//Execute the code </font><br />
ConfigureControls();<br />
<font color="#339966">//Writes the finish time</font><br />
System.Diagnostics.<font color="#33cccc">Debug</font>.WriteLine(&#8220;DEBUG FINISH TIME -&gt; : &#8221; + <font color="#33cccc">DateTime</font>.Now.ToString(&#8220;HH:mm s:fff&#8221;));<br />
<font color="#339966"> //Reduces the current IndentLevel</font><br />
System.Diagnostics.<font color="#33cccc">Debug</font>.Unindent();</p>
<p><span>The result would be like this</span><br />
<a href="http://appsettings.files.wordpress.com/2008/03/debuug1.jpg" title="debuug1.jpg"><img src="http://appsettings.files.wordpress.com/2008/03/debuug1.jpg" alt="debuug1.jpg" /></a></p>
<pre><font color="#000000" face="Tahoma" size="1"><b></b></font><font color="#000000" face="Tahoma" size="2"><b>Kannan M ambadi</b></font></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appsettings.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appsettings.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appsettings.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appsettings.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appsettings.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=4&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appsettings.wordpress.com/2008/03/11/simple-way-to-check-your-code-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18b9566c28054c7c1e3f9a12abe7cbab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">kannan.ambadi</media:title>
		</media:content>

		<media:content url="http://appsettings.files.wordpress.com/2008/03/debuug1.jpg" medium="image">
			<media:title type="html">debuug1.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Exporting GridView as CSV</title>
		<link>http://appsettings.wordpress.com/2008/03/10/exporting-gridview-as-csv/</link>
		<comments>http://appsettings.wordpress.com/2008/03/10/exporting-gridview-as-csv/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 07:04:50 +0000</pubDate>
		<dc:creator>kannan Ambadi</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[GridView]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[response]]></category>

		<guid isPermaLink="false">http://appsettings.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi Everyone, Below given an easy way to export data from gridview as CSV(comma seperated values) on a buttonclick. At first, it converts the datatable to html table format and then writes data as output stream. We need to set the Content-Type of Response object as Excel format and add the filename to be streamed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=3&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Trebuchet MS" size="2">Hi Everyone,</font></p>
<p><font face="Trebuchet MS" size="2">Below given an easy way to export data from gridview as CSV(comma seperated values) on a buttonclick. At first, it converts the datatable to html table format and then writes data as output stream. We need to set the Content-Type of Response object as Excel format and add the filename to be streamed on the client browser in a dialog box</font></p>
<p><font face="Trebuchet MS" size="2">Check this snippet<br />
</font></p>
<p style="font-family:Courier New;font-size:12px;"> private void ExportToCsvFromDataSet(<font color="#339966">DataSet </font>dsExport)<br />
{<br />
<font color="#0000ff">    bool </font>IsOutputStreamed = <font color="#0000ff">false</font>;<br />
try<br />
{<br />
<font color="#339966">StringBuilder </font>dataToExport = <font color="#0000ff">new </font><font color="#339966">StringBuilder</font>();<br />
foreach (<font color="#339966">DataTable </font>dtExport <font color="#0000ff">in </font>dsExport.Tables)<br />
{<br />
string headerToExport= <font color="#0000ff">string</font>.Empty;<br />
<font color="#0000ff">foreach </font>(<font color="#339966">DataColumn </font>dCol in dtExport.Columns)<br />
headerToExport = (char)34 + dCol.ColumnName + (<font color="#0000ff">char</font>)34 + (<font color="#0000ff">char</font>)44;<br />
headerToExport.Remove(headerToExport.Length &#8211; 1, 1);<br />
headerToExport = headerToExport + <font color="#339966">Environment</font>.NewLine + <font color="#339966">Environment</font>.NewLine;<br />
dataToExport.Append(headerToExport);<br />
<font color="#0000ff">string </font>bodyToExport = <font color="#0000ff">string</font>.Empty;<br />
<font color="#0000ff">foreach </font>(<font color="#339966">DataRow </font>dRow in dtExport.Rows)<br />
{<br />
<font color="#0000ff">foreach </font>(<font color="#0000ff">object </font>obj in dRow.ItemArray)<br />
bodyToExport = bodyToExport + obj.<font color="#0000ff">ToString</font>() + (char)44;<br />
bodyToExport.Remove(bodyToExport.Length &#8211; 1, 1);<br />
bodyToExport = bodyToExport + <font color="#339966">Environment</font>.NewLine;<br />
}<br />
dataToExport.Append(bodyToExport);<br />
dataToExport.Append(<font color="#339966">Environment</font>.NewLine);<br />
dataToExport.Append(<font color="#339966">Environment</font>.NewLine);<br />
<font color="#0000ff">if </font>(<font color="#0000ff">string</font>.IsNullOrEmpty(dataToExport.ToString()))<br />
{<br />
Response.Clear();<br />
Response.ContentType = &#8220;Text/vnd.ms-excel&#8221;;<br />
Response.AddHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment;filename=report.csv&#8221;);<br />
Response.Write(dataToExport.ToString());<br />
IsOutputStreamed = <font color="#0000ff">true</font>;<br />
}<br />
}</p>
<p>}<br />
<font color="#0000ff">catch </font>{ }<br />
<font color="#0000ff">finally</font><br />
{<br />
<font color="#0000ff">if </font>(IsOutputStreamed)<br />
Response.End();<br />
}</p>
<p>}<br />
<font face="Trebuchet MS" size="2"><br />
 Download the source code </p>
<p><pre><font color="#000000" face="Tahoma" size="1"><b></b></font><font color="#000000" face="Tahoma" size="2"><b>Kannan M ambadi</b></font></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/appsettings.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/appsettings.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/appsettings.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/appsettings.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/appsettings.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=appsettings.wordpress.com&amp;blog=3112693&amp;post=3&amp;subd=appsettings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://appsettings.wordpress.com/2008/03/10/exporting-gridview-as-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18b9566c28054c7c1e3f9a12abe7cbab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">kannan.ambadi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
