<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Runtime Debugger - kannan M ambadi's blog - All Comments</title><link>http://weblogs.asp.net/kannanambadi/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Exporting Dataset as CSV</title><link>http://weblogs.asp.net/kannanambadi/archive/2008/03/25/exporting-dataset-as-csv.aspx#7220850</link><pubDate>Thu, 01 Oct 2009 12:31:45 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7220850</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Here's an alternative that returns the CSV as a string:&lt;/p&gt;
&lt;p&gt;		public static string ConvertDataSetToCSV(DataSet ds)&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			const string LC_COMMA = &amp;quot;,&amp;quot;;&lt;/p&gt;
&lt;p&gt;			const string LC_DBLQUOTE = &amp;quot;\&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;			const string LC_DBLQUOTE_ESC = &amp;quot;\&amp;quot;\&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;			StringBuilder csv = new StringBuilder();&lt;/p&gt;
&lt;p&gt;			foreach (DataTable tbl in ds.Tables) &lt;/p&gt;
&lt;p&gt;			{ &lt;/p&gt;
&lt;p&gt;				// Append the table's column headers.&lt;/p&gt;
&lt;p&gt;				foreach (DataColumn col in tbl.Columns)&lt;/p&gt;
&lt;p&gt;				{&lt;/p&gt;
&lt;p&gt;					csv.Append(LC_DBLQUOTE + col.ColumnName + LC_DBLQUOTE + LC_COMMA); &lt;/p&gt;
&lt;p&gt;				}&lt;/p&gt;
&lt;p&gt;				csv.Length -= 1;&lt;/p&gt;
&lt;p&gt;				csv.Append(Environment.NewLine);&lt;/p&gt;
&lt;p&gt;				// Append the table's data.&lt;/p&gt;
&lt;p&gt;				foreach (DataRow row in tbl.Rows) &lt;/p&gt;
&lt;p&gt;				{ &lt;/p&gt;
&lt;p&gt;					foreach (object val in row.ItemArray)&lt;/p&gt;
&lt;p&gt;					{&lt;/p&gt;
&lt;p&gt;						csv.Append(LC_DBLQUOTE + val.ToString().Replace(LC_DBLQUOTE, LC_DBLQUOTE_ESC) &lt;/p&gt;
&lt;p&gt;							+ LC_DBLQUOTE + LC_COMMA); &lt;/p&gt;
&lt;p&gt;					}&lt;/p&gt;
&lt;p&gt;					csv.Length -= 1;&lt;/p&gt;
&lt;p&gt;					csv.Append(Environment.NewLine);&lt;/p&gt;
&lt;p&gt;				}&lt;/p&gt;
&lt;p&gt;				// Add an empty line between this and the next table.&lt;/p&gt;
&lt;p&gt;				csv.Append(Environment.NewLine);&lt;/p&gt;
&lt;p&gt;			}&lt;/p&gt;
&lt;p&gt;			return csv.ToString();&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7220850" width="1" height="1"&gt;</description></item><item><title>re: Improve ASPX page performance by reducing HTTP Response size by combining Skin &amp; CSS</title><link>http://weblogs.asp.net/kannanambadi/archive/2009/06/22/improve-aspx-page-performance-by-reducing-http-response-size-by-combining-skin-amp-css.aspx#7131837</link><pubDate>Mon, 22 Jun 2009 08:19:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7131837</guid><dc:creator>kannan.ambadi</dc:creator><description>&lt;p&gt;Dear Wes,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; you are right, but still we can use HTML Tables without writing HTML Style attributes. Write your style definitions into an external file and call it. &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;kannan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7131837" width="1" height="1"&gt;</description></item><item><title>re: Improve ASPX page performance by reducing HTTP Response size by combining Skin &amp; CSS</title><link>http://weblogs.asp.net/kannanambadi/archive/2009/06/22/improve-aspx-page-performance-by-reducing-http-response-size-by-combining-skin-amp-css.aspx#7131821</link><pubDate>Mon, 22 Jun 2009 07:21:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7131821</guid><dc:creator>Wesley Bakker</dc:creator><description>&lt;p&gt;&amp;quot;Use XHTML markups with CSS always rather than using HTML tables with inline HTML style attributes unless it is required&amp;quot;&lt;/p&gt;
&lt;p&gt;I disagree on that one. You &amp;nbsp;should use markup that fits the intention of the contained data. It's recommended to use tables when you actually have table data.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Wes&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7131821" width="1" height="1"&gt;</description></item><item><title>re: Improve ASPX page performance by reducing HTTP Response size by combining Skin &amp; CSS</title><link>http://weblogs.asp.net/kannanambadi/archive/2009/06/22/improve-aspx-page-performance-by-reducing-http-response-size-by-combining-skin-amp-css.aspx#7131797</link><pubDate>Mon, 22 Jun 2009 05:31:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7131797</guid><dc:creator>Acronyms</dc:creator><description>&lt;p&gt;Unfortunately, some third party controls write default inline css which can be changed only by using skin files. Not good ...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7131797" width="1" height="1"&gt;</description></item><item><title>re: ORM Technology - nHibernate vs Linq </title><link>http://weblogs.asp.net/kannanambadi/archive/2009/01/16/orm-technology.aspx#6857982</link><pubDate>Fri, 23 Jan 2009 04:11:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6857982</guid><dc:creator>kannan.ambadi</dc:creator><description>&lt;p&gt;thanks man, but the &amp;nbsp;nhibernate is, its quite difficult to find the exact location of error. it would be tough to find if its in HBM files. You got to be careful while desigining the architecture and database design.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6857982" width="1" height="1"&gt;</description></item><item><title>re: ORM Technology - nHibernate vs Linq </title><link>http://weblogs.asp.net/kannanambadi/archive/2009/01/16/orm-technology.aspx#6853980</link><pubDate>Thu, 22 Jan 2009 05:03:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6853980</guid><dc:creator>afsharm</dc:creator><description>&lt;p&gt;Nice article, but I prefer to learn Nhibernate instead of LINQ, because I can use my ORM skills in Java too.&lt;/p&gt;
&lt;p&gt;afsharm&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6853980" width="1" height="1"&gt;</description></item><item><title>ORM Technology - nHibernate vs Linq</title><link>http://weblogs.asp.net/kannanambadi/archive/2009/01/16/orm-technology.aspx#6840088</link><pubDate>Fri, 16 Jan 2009 18:16:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6840088</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6840088" width="1" height="1"&gt;</description></item><item><title>re: ORM Technology - nHibernate vs Linq </title><link>http://weblogs.asp.net/kannanambadi/archive/2009/01/16/orm-technology.aspx#6839758</link><pubDate>Fri, 16 Jan 2009 16:26:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6839758</guid><dc:creator>juan carlos peinado pereira</dc:creator><description>&lt;p&gt;Hey Buddy, I think to compare the two technologies requires having worked in both power and thus give a better contribution to the community.&lt;/p&gt;
&lt;p&gt;My comment is that the two technologies have different efoques see how those born nhibernate and both are born linq ORM tools, but for different nhibernate developed a framework that gives you a lot of freedom to incorporate it into the platform. NET is already linq part of a framework that is already a native and has its own characteristics such as linq to objects, Dataset, xml, sql that can be used well or badly in software development.&lt;/p&gt;
&lt;p&gt;nhibernate born with the need for a tool that enables a transparent objects in a traditional relational schema.&lt;/p&gt;
&lt;p&gt;In this issue we could talk a lot deeper and a lot of advantages and disadvantages, but focused on the purpose of the two technologies.&lt;/p&gt;
&lt;p&gt;greetings.&lt;/p&gt;
&lt;p&gt;JCP.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6839758" width="1" height="1"&gt;</description></item><item><title>re: Exporting Dataset as CSV</title><link>http://weblogs.asp.net/kannanambadi/archive/2008/03/25/exporting-dataset-as-csv.aspx#6748035</link><pubDate>Thu, 20 Nov 2008 11:10:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6748035</guid><dc:creator>samreen</dc:creator><description>&lt;p&gt;i like it n want to use it&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6748035" width="1" height="1"&gt;</description></item><item><title>re: Simple way to check your code performance</title><link>http://weblogs.asp.net/kannanambadi/archive/2008/03/25/simple-way-to-check-your-code-performance.aspx#6665539</link><pubDate>Wed, 08 Oct 2008 11:33:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6665539</guid><dc:creator>kannan.ambadi</dc:creator><description>&lt;p&gt;Thanks guys. Stopwatch gives u precised results.&lt;/p&gt;
&lt;p&gt;Stopwatch sw = Stopwatch.StartNew();&lt;/p&gt;
&lt;p&gt;PerformWork();&lt;/p&gt;
&lt;p&gt;sw.Stop();&lt;/p&gt;
&lt;p&gt;Console.WriteLine(&amp;quot;Time taken: {0}ms&amp;quot;, sw.Elapsed.TotalMilliseconds);&lt;/p&gt;
&lt;p&gt;N.B : Please visit link for more information&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/28637/is-datetimenow-the-best-way-to-measure-a-functions-performance"&gt;stackoverflow.com/.../is-datetimenow-the-best-way-to-measure-a-functions-performance&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6665539" width="1" height="1"&gt;</description></item></channel></rss>