<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-22377009</atom:id><lastBuildDate>Mon, 28 Nov 2011 00:22:55 +0000</lastBuildDate><category>winform</category><category>visual studio</category><category>string</category><category>c#</category><category>RegisterClientScriptBlock</category><category>javascript lint</category><category>stringbuilder</category><category>vertical label</category><category>tricks</category><category>registering scripts</category><category>javascript</category><category>web</category><category>tips</category><category>external tool</category><category>transparent control</category><category>Google API</category><category>RegisterStartupScript</category><category>design</category><category>memory allocation</category><category>window.location.search</category><category>principles</category><category>custom control</category><category>effective</category><title>.NET Randz</title><description>MSSQL, ASP.NET, C#, Reporting Services, Report Viewer, XML/XSL, Ajax, JavaScript and the like</description><link>http://dotnetrandz.blogspot.com/</link><managingEditor>noreply@blogger.com (/randz)</managingEditor><generator>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/dotnetrandz" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dotnetrandz" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-8122606223858940081</guid><pubDate>Sat, 04 Sep 2010 12:13:00 +0000</pubDate><atom:updated>2010-09-04T20:13:42.851+08:00</atom:updated><title>I'm Still Here</title><description>I'm still here. It's been too long since I posted something here. Been very busy with my work. Now working for an international BPO company in Makati City. Stay tuned...&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-8122606223858940081?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2010/09/im-still-here.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-352144407110822656</guid><pubDate>Wed, 19 Mar 2008 05:59:00 +0000</pubDate><atom:updated>2008-03-19T13:48:12.090+08:00</atom:updated><title>Windows Vista versus XP</title><description>&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Here's a link to a great article by &lt;A  href="http://www.pcworld.idg.com.au/index.php/authid;657225508"&gt;Randall C.  Kennedy&lt;/A&gt; about the match up of two Microsoft's Operating Systems: Vista and  XP. You'll see round by round the comparison of product features and  why&amp;nbsp;one is better than the other. &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Click &lt;A  href="http://www.pcworld.idg.com.au/index.php/id;1155325152;fp;2;fpid;2;pf;1"&gt;here&lt;/A&gt;  for the link.&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-352144407110822656?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/03/windows-vista-versus-xp.html</link><author>noreply@blogger.com (/randz)</author><thr:total>31</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-6313832608665977021</guid><pubDate>Wed, 20 Feb 2008 05:45:00 +0000</pubDate><atom:updated>2008-02-20T13:34:48.291+08:00</atom:updated><title>Top-10 Application-Design Mistakes</title><description>&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I found a great article by &lt;A  href="http://www.useit.com/jakob/"&gt;Jakob Nielzen&lt;/A&gt; at &lt;STRONG&gt;&lt;FONT  color=#ff0000&gt;use&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;it.com&lt;/FONT&gt;&lt;/STRONG&gt; website,  about the Top 10 application design mistakes. It discusses what are the common  mistakes made by developers in designing applications and also some solutions on  how to avoid these kind of mistakes.&lt;BR&gt;&lt;BR&gt;Here's the link: &lt;A  href="http://www.useit.com/alertbox/application-mistakes.html"&gt;http://www.useit.com/alertbox/application-mistakes.html&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Bookmark it and visit it often. Happy  designing!&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-6313832608665977021?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/02/top-10-application-design-mistakes.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-4065634860683499787</guid><pubDate>Tue, 12 Feb 2008 06:21:00 +0000</pubDate><atom:updated>2008-02-12T14:21:03.615+08:00</atom:updated><title>sheijin@yahoo.com has shared: Load OSX 10.5 Leopard on the eeePC</title><description>&lt;font face="Helvetica,san-serif"&gt; &lt;h4&gt;sheijin@yahoo.com  wanted to share this with you:&lt;/h4&gt; &lt;p&gt;Load OSX 10.5 Leopard on the eeePC&lt;/p&gt; &lt;table summary="This table contains web objects shared by your friend using ShareThis"&gt; &lt;tr&gt; &lt;td valign="top"&gt; 	&lt;a href="http://uneasysilence.com/archive/2007/11/12654/" alt="Load OSX 10.5 Leopard on the eeePC"&gt;     &lt;img src="http://sharethis.com/62856/1/thumb.jpg"&gt;     &lt;/a&gt; &lt;/td&gt; &lt;td valign="top"&gt; &lt;b&gt;Load OSX 10.5 Leopard on the eeePC&lt;/b&gt; &lt;br&gt; &lt;a href="http://uneasysilence.com/archive/2007/11/12654/"&gt;http://uneasysilence.com/archive/2007/11/12654/&lt;/a&gt;&lt;br&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br /&gt; &lt;hr /&gt; &lt;br /&gt; Powered by &lt;a href="http://sharethis.com" alt="ShareThis"&gt;ShareThis&lt;/a&gt; &lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-4065634860683499787?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/02/sheijinyahoocom-has-shared-load-osx-105.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-1898489128697391968</guid><pubDate>Tue, 05 Feb 2008 03:38:00 +0000</pubDate><atom:updated>2008-02-05T11:28:21.303+08:00</atom:updated><title>Need to print from a x64 machine? Can you wait 60 seconds?</title><description>&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I found an interesting blog entry  regarding&amp;nbsp;some issues (under some circumstances, web application hangs for  60 seconds)&amp;nbsp;that one of his customer encountered when a web application  that was developed, tested and used in a 32-bit machine was decided later on to  run on a 64-bit machine. The nature of the issue was not (yet) found but a  workaround was provided.&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Click &lt;A  href="http://blogs.msdn.com/carloc/archive/2008/01/31/need-to-print-from-a-x64-machine-can-you-wait-60-seconds.aspx"&gt;here&lt;/A&gt;&amp;nbsp;to  read more on the article.&lt;/FONT&gt;&lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-1898489128697391968?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/02/need-to-print-from-x64-machine-can-you.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-2731254985245159324</guid><pubDate>Tue, 05 Feb 2008 03:26:00 +0000</pubDate><atom:updated>2008-02-05T11:16:31.715+08:00</atom:updated><title>Missing ASP.NET Tab on IIS Manager Solution</title><description>&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I encountered a problem of&amp;nbsp;ASP.NET tab is  missing on IIS Manager&amp;nbsp;after I installed some programs. I am using Windows  XP SP2.&amp;nbsp;After googling for a while, I found a solution that worked for  me:&lt;/FONT&gt;&lt;/DIV&gt;&lt;FONT face=Arial size=2&gt; &lt;DIV&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;EM&gt;Note&lt;/EM&gt;: You need to be logged in with  Administrator privilege to do this.&lt;/FONT&gt;&lt;/DIV&gt; &lt;OL&gt;   &lt;LI&gt;&lt;FONT face=Arial size=2&gt;Stop the IIS Admin service and any services that    depend on it. &lt;/LI&gt;   &lt;LI&gt;Open &lt;FONT    face="Courier New"&gt;C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;/FONT&gt; in notepad    or your favorite XML Editor. &lt;/LI&gt;   &lt;LI&gt;Delete the line that reads &lt;STRONG&gt;Enable32BitAppOnWin64='TRUE'&lt;/STRONG&gt;    &lt;/LI&gt;   &lt;LI&gt;Start IIS via &lt;FONT face="Courier New"&gt;Windows | Start | Run |    iisreset&lt;/FONT&gt;&lt;/FONT&gt; &lt;/LI&gt;&lt;/OL&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I also found a nice tool called ASP.NET Version  switcher by Denis Bauer. Click &lt;A  href="http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx"&gt;here&lt;/A&gt;  for more details. &lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;There is also an additional reading about running  different versions of .NET Framework on a 64-Bit machine. Part of the article  says:&lt;/FONT&gt;&lt;/DIV&gt; &lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;   &lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;   &lt;P style="MARGIN-LEFT: 7pt"&gt;&lt;SPAN&gt;&lt;STRONG&gt;PROBLEM DESCRIPTION    &lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;=================== &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;On a Windows    2003 64bit machine with both .NET Framework 1.1 and 2.0 installed, you are    tying to configure a website on IIS, but you are unable to find the tab to    specify ASP.NET settings. &lt;/SPAN&gt;&lt;/P&gt;   &lt;P style="MARGIN-LEFT: 7pt"&gt;&lt;SPAN&gt;&lt;STRONG&gt;SUMMARY of TROUBLESHOOTING    &lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;==========================    &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Researched turned out this being a bug that is closed as    "won't fix". &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt; &lt;P dir=ltr style="MARGIN-LEFT: 7pt"&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;FONT face=Arial size=2&gt;Click &lt;A  href="http://blogs.msdn.com/carloc/archive/2006/09/09/missing-asp-net-tab-in-iis-management-console.aspx"&gt;here  &lt;/A&gt;for the link to blog article on MSDN Blog.&lt;/FONT&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-2731254985245159324?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/02/missing-aspnet-tab-on-iis-manager.html</link><author>noreply@blogger.com (/randz)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-8190404680354734206</guid><pubDate>Fri, 01 Feb 2008 06:01:00 +0000</pubDate><atom:updated>2008-02-01T13:54:23.025+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">principles</category><category domain="http://www.blogger.com/atom/ns#">design</category><category domain="http://www.blogger.com/atom/ns#">web</category><category domain="http://www.blogger.com/atom/ns#">effective</category><title>10 Principles of Effective Web</title><description>&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;I've been developing web appliations for quite some  times now and still, I welcome ideas on how can I improve the web application  that I design. I saw a great article on the 10 Principles of Effective Web  design at Smashing Magazine. Click &lt;a href="http://www.smashingmagazine.com/2008/01/31/10-principles-of-effective-web-design/"&gt;here&lt;/a&gt;  for the article.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-8190404680354734206?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/02/10-principles-of-effective-web.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-6460887746820948724</guid><pubDate>Fri, 18 Jan 2008 03:23:00 +0000</pubDate><atom:updated>2008-01-18T11:23:44.272+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">Google API</category><title>"Blog This" embedded blog editor</title><description>This post was created using &lt;a href="http://gdata-javascript-client.googlecode.com/svn/trunk/samples/blogger/blog_this/blog_this.html"&gt;Blog This - simple editor using the Blogger JavaScript API&lt;/a&gt; from Google Code. This functionality allows site visitors to create an entry on their blog wihtout leaving the page. Can't wait to embed this.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-6460887746820948724?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/01/this-embedded-blog-editor.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-4166475245124031576</guid><pubDate>Thu, 10 Jan 2008 06:32:00 +0000</pubDate><atom:updated>2008-01-10T15:05:27.699+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Cool Javascript Trick</title><description>Here's an old Javascript trick that I found. I thought I'd share this with you. This works on any page with images on it. I have tried this on both Firefox and IE.&lt;br /&gt;&lt;br /&gt;To test:&lt;br /&gt;&lt;br /&gt;Go to a search engine (e.g. Google). Then search for images. Or click &lt;a href="http://images.google.com/imghp?hl=tl&amp;amp;tab=wi" target='_blank'&gt;here &lt;/a&gt;to launch Google Image Search. After the search engine has returned results, copy the text below and paste it on the address bar.&lt;br /&gt;&lt;br /&gt;&lt;div   style="border: 2px ridge white; margin: 10px; padding: 10px; background-color: rgb(238, 238, 238);font-family:Courier New;font-size:10pt;"&gt;&lt;br /&gt;&lt;span style="color:black;"&gt;javascript:R&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;x1&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;1&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;y1&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;05&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;x2&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;25&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;y2&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;24&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;x3&lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:maroon;"&gt;1&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;6&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;y3&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;.&lt;/span&gt;&lt;span style="color:maroon;"&gt;24&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;x4&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;300&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;y4&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;200&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;x5&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;300&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;y5&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;200&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;DI&lt;/span&gt;&lt;span style="color:blue;"&gt;= document&lt;/span&gt;&lt;span style="color:black;"&gt;.images&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;DIL&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;DI.length&lt;/span&gt;&lt;span style="color:blue;"&gt;; function &lt;/span&gt;&lt;span style="color:black;"&gt;A(){&lt;/span&gt;&lt;span style="color:blue;"&gt;for&lt;/span&gt;&lt;span style="color:black;"&gt;(i&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i&amp;lt;DIL&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i++){DIS&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color:black;"&gt;DI[ i ].style&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;DIS.position&lt;/span&gt;&lt;span style="color:blue;"&gt;=&lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'absolute'&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;DIS.left&lt;/span&gt;&lt;span style="color:blue;"&gt;=Math&lt;/span&gt;&lt;span style="color:black;"&gt;.sin(R*x1+i*x2+x3)*x4+x5&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;DIS.top&lt;/span&gt;&lt;span style="color:blue;"&gt;=Math&lt;/span&gt;&lt;span style="color:black;"&gt;.cos (R*y1+i*y2+y3)*y4+y5}R++}setInterval(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'A()'&lt;/span&gt;&lt;span style="color:black;"&gt;,&lt;/span&gt;&lt;span style="color:maroon;"&gt;5&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;void(&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Hit enter, and there you go. Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-4166475245124031576?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2008/01/cool-javascript-trick.html</link><author>noreply@blogger.com (/randz)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-6194177605925857912</guid><pubDate>Tue, 04 Dec 2007 09:20:00 +0000</pubDate><atom:updated>2007-12-04T17:23:17.754+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">winform</category><category domain="http://www.blogger.com/atom/ns#">vertical label</category><category domain="http://www.blogger.com/atom/ns#">transparent control</category><category domain="http://www.blogger.com/atom/ns#">custom control</category><title>Transparent Winform Control</title><description>I searched high and low (maybe I have not searched enough) but I cannot find a good solution for creating a control that can have transparent background. So I did some experiments, incorporated some of the ideas I happen to stumble on the net and at last I was able to create a user control that can have a transparent background. Cool! I updated my &lt;a href="http://www.codeproject.com/useritems/Vertical_Label_Control.asp"&gt;Code Project article&lt;/a&gt; to incorporate the transparency support.&lt;br /&gt;&lt;br /&gt;If you want to check it out, click &lt;a href="http://www.codeproject.com/useritems/Vertical_Label_Control.asp"&gt;here&lt;/a&gt;. I welcome all comments specially when the rating that was given was low, because I want to know how else can I improve my solution.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-6194177605925857912?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/12/transparent-winform-control.html</link><author>noreply@blogger.com (/randz)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-1703452164561962165</guid><pubDate>Wed, 14 Nov 2007 09:29:00 +0000</pubDate><atom:updated>2007-11-14T17:51:03.217+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">tricks</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">tips</category><category domain="http://www.blogger.com/atom/ns#">window.location.search</category><title>window.location.search Property</title><description>&lt;p&gt;&lt;b&gt;window.location.search Property&lt;/b&gt;&lt;/p&gt;One of the not so commonly-used properties of &lt;code&gt;window.location&lt;/code&gt; object in javascript is the &lt;code&gt;window.location.&lt;b&gt;search&lt;/b&gt;&lt;/code&gt;property.&lt;p&gt;For example, in a web address like&lt;/p&gt;&lt;div   style="border: 1px dashed goldenrod; margin: 10px; padding: 10px; overflow: auto; background-color: rgb(231, 231, 251); width: 400px; white-space: nowrap;font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:black;"&gt;http://www.my.org/pg.htm?user=2&amp;amp;role=admin&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;the window.location.&lt;b&gt;search&lt;/b&gt; property will have all the characters after the "?" including it(&lt;span style="font-family:Courier New;"&gt;?user=2&amp;amp;role=admin&lt;/span&gt;).&lt;br /&gt;How can this information be useful? Well, for starter, we can access all the request parameters at client-side (using javascript) instead of processing it at server-side using codebehind. Since we have access to the request parameters,&lt;br /&gt;we can do manipulations on its value or use the values contained in the request parameters to populate the value of the controls on the current page. For example, we have a web address like:&lt;br /&gt;&lt;/p&gt;&lt;div   style="border: 1px dashed goldenrod; margin: 10px; padding: 10px; overflow: auto; background-color: rgb(231, 231, 251); width: 400px; white-space: nowrap;font-family:Courier New;font-size:10pt;"&gt;&lt;span style="color:black;"&gt;http://www.sample.org/login.htm?username=gotwald&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;if login.html contains usename and password input textboxes, we can automatically populate the username field with the value from the request parameters. See the screenshot below:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Ngp0QIuqhyg/RzrBe-WMQ2I/AAAAAAAAB2w/HzBc6S-P7jw/s1600-h/sshot-36.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_Ngp0QIuqhyg/RzrBe-WMQ2I/AAAAAAAAB2w/HzBc6S-P7jw/s320/sshot-36.png" alt="" id="BLOGGER_PHOTO_ID_5132627463218414434" border="0" /&gt;&lt;/a&gt;Here's the complete source of the sample:&lt;br /&gt;&lt;div   style="border: 1px dashed goldenrod; margin: 10px; padding: 10px; overflow: auto; background-color: rgb(231, 231, 251); width: 400px; white-space: nowrap;font-family:Courier New;font-size:10pt;"&gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;html&lt;/span&gt;&lt;span style="color:red;"&gt; xmlns&lt;/span&gt;&lt;span style="color:blue;"&gt;="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;   &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;head&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;title&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Untitled Page&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;title&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;script&lt;/span&gt;&lt;span style="color:red;"&gt; type&lt;/span&gt;&lt;span style="color:blue;"&gt;="text/javascript"&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;                window&lt;/span&gt;&lt;span style="color:black;"&gt;.onload &lt;/span&gt;&lt;span style="color:blue;"&gt;= function&lt;/span&gt;&lt;span style="color:black;"&gt;()&lt;br /&gt;               {&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;                    if&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;window&lt;/span&gt;&lt;span style="color:black;"&gt;.location !&lt;/span&gt;&lt;span style="color:blue;"&gt;= null &lt;/span&gt;&lt;span style="color:black;"&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style="color:blue;"&gt;window&lt;/span&gt;&lt;span style="color:black;"&gt;.location.search.length &amp;gt; &lt;/span&gt;&lt;span style="color:maroon;"&gt;1&lt;/span&gt;  &lt;span style="color:black;"&gt;)&lt;br /&gt;                   {&lt;br /&gt;       &lt;/span&gt;&lt;span style="color:blue;"&gt;                        var &lt;/span&gt;&lt;span style="color:black;"&gt;urlParameters &lt;/span&gt;&lt;span style="color:blue;"&gt;= window&lt;/span&gt;&lt;span style="color:black;"&gt;.location.search.substring(&lt;/span&gt;&lt;span style="color:maroon;"&gt;1&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                       var &lt;/span&gt;&lt;span style="color:black;"&gt;parameterPair &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;urlParameters.split(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'&amp;amp;'&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                       var &lt;/span&gt;&lt;span style="color:black;"&gt;pos &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;parameterPair[&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:black;"&gt;].indexOf(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'='&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                       var &lt;/span&gt;&lt;span style="color:black;"&gt;argName &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;parameterPair[&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:black;"&gt;].substring(&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:black;"&gt;, pos)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                       var &lt;/span&gt;&lt;span style="color:black;"&gt;argVal &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;parameterPair[&lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:black;"&gt;].substring(pos + &lt;/span&gt;&lt;span style="color:maroon;"&gt;1&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                       if&lt;/span&gt;&lt;span style="color:black;"&gt;(argName &lt;/span&gt;&lt;span style="color:blue;"&gt;== &lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'username'&lt;/span&gt; &lt;span style="color:black;"&gt;)&lt;br /&gt;                       {&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;                            document&lt;/span&gt;&lt;span style="color:black;"&gt;.getElementById(&lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);"&gt;'user'&lt;/span&gt;&lt;span style="color:black;"&gt;).innerText &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;argVal&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;                   &lt;/span&gt;&lt;span style="color:black;"&gt;    }&lt;br /&gt;                   }&lt;br /&gt;               }&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;script&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;head&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;body&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;        &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;table&lt;/span&gt;&lt;span style="color:red;"&gt; cellpadding&lt;/span&gt;&lt;span style="color:blue;"&gt;="4"&lt;/span&gt;&lt;span style="color:red;"&gt; cellspacing&lt;/span&gt;&lt;span style="color:blue;"&gt;="0"&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;           &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style="color:blue;"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:red;"&gt; colspan&lt;/span&gt;&lt;span style="color:blue;"&gt;="2"&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Enter login information&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;               &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:red;"&gt; align&lt;/span&gt;&lt;span style="color:blue;"&gt;="right"&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;username:&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;               &lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;input&lt;/span&gt;&lt;span style="color:red;"&gt; type&lt;/span&gt;&lt;span style="color:blue;"&gt;="text"&lt;/span&gt;&lt;span style="color:red;"&gt; size&lt;/span&gt;&lt;span style="color:blue;"&gt;="25"&lt;/span&gt;&lt;span style="color:red;"&gt; id&lt;/span&gt;&lt;span style="color:blue;"&gt;="user"&lt;/span&gt;&lt;span style="color:red;"&gt; name&lt;/span&gt;&lt;span style="color:blue;"&gt;="user"&lt;/span&gt;&lt;span style="color:red;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;/&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;           &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;               &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:red;"&gt; align&lt;/span&gt;&lt;span style="color:blue;"&gt;="right"&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;password:&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;input&lt;/span&gt;&lt;span style="color:red;"&gt; type&lt;/span&gt;&lt;span style="color:blue;"&gt;="text"&lt;/span&gt;&lt;span style="color:red;"&gt; size&lt;/span&gt;&lt;span style="color:blue;"&gt;="25"&lt;/span&gt;&lt;span style="color:red;"&gt; id&lt;/span&gt;&lt;span style="color:blue;"&gt;="pass"&lt;/span&gt;&lt;span style="color:red;"&gt; name&lt;/span&gt;&lt;span style="color:blue;"&gt;="pass"&lt;/span&gt;&lt;span style="color:red;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;/&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;               &lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:red;"&gt; align&lt;/span&gt;&lt;span style="color:blue;"&gt;="right"&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;           &lt;/span&gt;&lt;span style="color:blue;"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:maroon;"&gt;input&lt;/span&gt;&lt;span style="color:red;"&gt; type&lt;/span&gt;&lt;span style="color:blue;"&gt;="button"&lt;/span&gt;&lt;span style="color:red;"&gt; value&lt;/span&gt;&lt;span style="color:blue;"&gt;="login"&lt;/span&gt;&lt;span style="color:red;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;/&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;td&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;            &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;tr&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;        &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;table&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&lt;br /&gt;   &amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;body&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:maroon;"&gt;html&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Still you need to add input validation and error-handling in your code should you&lt;br /&gt;need to adopt this sample code but the code itself is running on a "happy scenario",&lt;br /&gt;if you know what I mean.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-1703452164561962165?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/11/windowlocationsearch-property.html</link><author>noreply@blogger.com (/randz)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_Ngp0QIuqhyg/RzrBe-WMQ2I/AAAAAAAAB2w/HzBc6S-P7jw/s72-c/sshot-36.png" height="72" width="72" /><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-7494756313192652257</guid><pubDate>Wed, 14 Nov 2007 01:01:00 +0000</pubDate><atom:updated>2007-11-14T09:44:15.049+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">RegisterStartupScript</category><category domain="http://www.blogger.com/atom/ns#">RegisterClientScriptBlock</category><category domain="http://www.blogger.com/atom/ns#">registering scripts</category><category domain="http://www.blogger.com/atom/ns#">c#</category><title>I thought You'd Like to Know</title><description>Difference between &lt;a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.page.registerclientscriptblock.aspx"&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;RegisterClientScriptBlock&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; &lt;/span&gt;&lt;/a&gt;and &lt;a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.page.registerstartupscript.aspx"&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;RegisterStartupScript&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Page.RegisterStartupScript&lt;/span&gt;   (System.Web.UI)&lt;br /&gt;Emits a client-side script block in the page response.&lt;br /&gt;This method is now obsolete. Use &lt;span style="font-family:courier new;"&gt;ClientScript.RegisterStartupScript&lt;/span&gt; instead.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Page.RegisterClientScriptBlock&lt;/span&gt;  (System.Web.UI)&lt;br /&gt;Emits client-side script blocks to the response.&lt;br /&gt;This method is now obsolete. Use &lt;span style="font-family:courier new;"&gt;ClientScript.RegisterClientScriptBlock&lt;/span&gt; instead.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;A control can place a startup script on a page via the &lt;span style="font-family:courier new;"&gt;RegisterStartupScript&lt;/span&gt; method. You can also place a script block that needs to be explicitly called by other script code on the same page using the RegisterClientScriptBlock method.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The difference between the two methods is that that the latter goes in the top of the page (immediately below the opening tag of the Page's &amp;lt;form runat='server' /&amp;gt; element) and the former goes at the bottom (just before the closing tag of the Page's  &amp;lt;form runat='server' /&amp;gt; element). This is important because inline script generally  needs to go at the bottom so that the page objects exist before it executes. However, regular script (script methods that will be called based on other control's events) must go at the top in case a control is referencing it. For example, in an onClick event of a button, you would like to reference &lt;span style="font-family:courier new;"&gt;function foo()&lt;/span&gt;, and &lt;span style="font-family:courier new;"&gt;foo()&lt;/span&gt; was emitted via codebehind. The correct way of registering &lt;span style="font-family:courier new;"&gt;foo() &lt;/span&gt;is by using &lt;span style="font-family:courier new;"&gt;RegisterClientScriptBlock&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;&lt;form runat="server"&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note&lt;/span&gt;&lt;!-- your script here --&gt;: as always, remember to include HTML comment tags (&amp;lt;!-- your script here --&amp;gt;) around your script so that it will not be rendered if the requesting browser does not support scripts.&lt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-7494756313192652257?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/11/i-thought-youd-like-to-know.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-4646731907071398155</guid><pubDate>Tue, 13 Nov 2007 10:29:00 +0000</pubDate><atom:updated>2007-11-13T18:33:31.545+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">javascript lint</category><category domain="http://www.blogger.com/atom/ns#">external tool</category><title>How to add External Tool on Visual Studio IDE</title><description>&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: This article is for absolute beginner.&lt;/p&gt;&lt;p&gt;There are some cool external tools that I found valuable in my web development tasks. One of them is a utility called &lt;a href="http://www.javascriptlint.com/"&gt;javascript lint&lt;/a&gt;, a javascript checker/verifier. In this article, I would discuss how to add js lint as an external tool.&lt;/p&gt;&lt;p&gt;First, you need to download a copy of &lt;a href="http://www.javascriptlint.com/download.htm" target="_blank"&gt;javascript lint&lt;/a&gt;.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Then click on Tool-&amp;gt;External Tools&lt;/li&gt;&lt;li&gt;Click Add.&lt;/li&gt;&lt;li&gt;Specify name for the Tool&lt;/li&gt;&lt;li&gt;On the Command field, click browse to locate the javascript lint executable. The value of this field should be complete path to executable plus the executable name.&lt;/li&gt;&lt;li&gt;On the Arguments field, you can just put &lt;strong&gt;-process $(ItemPath)&lt;/strong&gt;. The arguments here depends on the arguments that are supported by the external tool. In this case, javascript lint needs a &lt;strong&gt;-process&lt;/strong&gt; parameter.&lt;/li&gt;&lt;li&gt;On the Initial Directory, put &lt;strong&gt;$(ProjectDir)&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Put a check mark on Use Output Window checkbox.&lt;/li&gt;&lt;li&gt;Click Apply.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Cool! Now you are set. You should be able to see a new Tool Menu item. Go ahead and give it a try.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-4646731907071398155?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/11/how-to-add-external-tool-on-visual.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-7007126801894716954</guid><pubDate>Tue, 13 Nov 2007 06:21:00 +0000</pubDate><atom:updated>2007-11-13T16:15:57.778+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">stringbuilder</category><category domain="http://www.blogger.com/atom/ns#">memory allocation</category><category domain="http://www.blogger.com/atom/ns#">c#</category><category domain="http://www.blogger.com/atom/ns#">string</category><title>String Concatenation versus StringBuilder Class</title><description>&lt;p align="justify"&gt;When concatenating large strings (for example, building an HTML table from a database),the length of time to complete can become quite long as the string gets larger. This article demonstrates the difference in string concatenation using &lt;em&gt;String&lt;/em&gt; and &lt;em&gt;StringBuilder&lt;/em&gt; classes.&lt;/p&gt;&lt;b&gt;String Concatenation using &lt;a href="http://msdn2.microsoft.com/en-us/library/system.string.aspx"&gt;String Class&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;&lt;p&gt;An ordinary code to create a string from a subset of two strings is usually implemented this way:&lt;/p&gt;&lt;p&gt;&lt;code&gt;string c = "sample" + "code";&lt;/code&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;code&gt;&lt;/code&gt;This approach usually does the job for most of the applications that we write. But when the situation comes that we need to create a large subset of string by continuous iteration (e.g. a string that contains all numbers from 0 to 10000 or as mentioned above, building an HTML table from database, this approached was proven to be inefficient. According to the Microsoft KB Article #&lt;a href="http://support.microsoft.com/kb/170964" target="_blank"&gt; 170964&lt;/a&gt;, here's what really happens when we concatentate two strings:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Allocates temporary memory large enough to hold the result.&lt;/li&gt;&lt;li&gt;Copies &lt;em&gt;Destination&lt;/em&gt; to the start of the temporary area.&lt;/li&gt;&lt;li&gt;Copies &lt;em&gt;Source&lt;/em&gt; to the end of the temporary area.&lt;/li&gt;&lt;li&gt;De-allocates the old copy of &lt;em&gt;Destination&lt;/em&gt;.&lt;/li&gt;&lt;li&gt;Allocates memory for &lt;em&gt;Destination&lt;/em&gt; large enough to hold the result.&lt;/li&gt;&lt;li&gt;Copies the temporary data to &lt;em&gt;Destination&lt;/em&gt;.&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;p align="justify"&gt;Steps 2 and 6 are very expensive and basically result in the entire concatenated result being copied twice with additional overhead to allocate and de-allocate memory. A typical 100K iterations using this string processing will take more or less four minutes to complete.&lt;/p&gt;&lt;p&gt;&lt;b&gt;String Concatenation using &lt;a href="http://msdn2.microsoft.com/en-us/library/system.text.stringbuilder.aspx"&gt;StringBuilder Class&lt;/a&gt;.&lt;/b&gt; &lt;/p&gt;&lt;p align="justify"&gt;The performance of a concatenation operation for a String or StringBuilder object depends on how often a memory allocation occurs. A String concatenation operation always allocates memory, whereas a &lt;em&gt;StringBuilder&lt;/em&gt; concatenation operation only allocates memory if the &lt;em&gt;StringBuilder&lt;/em&gt; object buffer is too small to accommodate the new data. Consequently, the &lt;em&gt;String&lt;/em&gt; class is preferable for a concatenation operation if a fixed number of String objects are concatenated. In that case, the individual concatenation operations might even be combined into a single operation by the compiler. A &lt;em&gt;StringBuilder&lt;/em&gt; object is preferable for a concatenation operation if an arbitrary number of strings are concatenated; for example, if a loop concatenates a random number of strings of user input.&lt;/p&gt;&lt;p align="justify"&gt;Here's a sample code that I wrote to demostrate the comparison:&lt;/p&gt;&lt;br /&gt;&lt;div style="BORDER-RIGHT: white 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: white 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; MARGIN: 10px; OVERFLOW: auto; BORDER-LEFT: white 1px solid; WIDTH: 410px; PADDING-TOP: 10px; BORDER-BOTTOM: white 1px solid; WHITE-SPACE: nowrap; HEIGHT: 250px; BACKGROUND-: break-wordfont-family:Courier New;font-size:12px;color:#efefef;"   &gt;&lt;br /&gt;&lt;span style="color:blue;"&gt;using &lt;/span&gt;&lt;span style="color:black;"&gt;System&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;using &lt;/span&gt;&lt;span style="color:black;"&gt;System.Web&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;using &lt;/span&gt;&lt;span style="color:black;"&gt;System.Text&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;public &lt;/span&gt;&lt;span style="color:black;"&gt;partial &lt;/span&gt;&lt;span style="color:blue;"&gt;class &lt;/span&gt;&lt;span style="color:black;"&gt;_Default : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;string &lt;/span&gt;&lt;span style="color:black;"&gt;myString &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:#808080;"&gt;""&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;StringBuilder sb &lt;/span&gt;&lt;span style="color:blue;"&gt;= new &lt;/span&gt;&lt;span style="color:black;"&gt;StringBuilder()&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;protected void &lt;/span&gt;&lt;span style="color:black;"&gt;Page_Load(&lt;/span&gt;&lt;span style="color:blue;"&gt;object &lt;/span&gt;&lt;span style="color:black;"&gt;sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;Response.Write(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"Start 100K loops&lt;br /&gt;using string catenation:" &lt;/span&gt;&lt;span style="color:black;"&gt;+&lt;br /&gt;DateTime.Now.ToString(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"HH:mm:ss:ff"&lt;/span&gt;&lt;span style="color:black;"&gt;)+&lt;/span&gt;&lt;span style="color:#808080;"&gt;"&amp;lt;br/&amp;gt;"&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Iterate100K_With_StringAppend()&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Response.Write(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"End 100K loops using string catenation :" &lt;/span&gt;&lt;span style="color:black;"&gt;+&lt;br /&gt;DateTime.Now.ToString&lt;/span&gt;&lt;span style="color:#808080;"&gt;"HH:mm:ss:ff"&lt;/span&gt;&lt;span style="color:black;"&gt;) + &lt;/span&gt;&lt;span style="color:#808080;"&gt;"&amp;lt;br/&amp;gt;"&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Response.Write(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"Start 100K loops using StringBuilder: " &lt;/span&gt;&lt;span style="color:black;"&gt;+&lt;br /&gt;DateTime.Now.ToString(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"HH:mm:ss:ff"&lt;/span&gt;&lt;span style="color:black;"&gt;) + &lt;/span&gt;&lt;span style="color:#808080;"&gt;"&amp;lt;br/&amp;gt;"&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Iterate100K_With_StringBuilder()&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;Response.Write(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"End 100K loops using StringBuilder : " &lt;/span&gt;&lt;span style="color:black;"&gt;+&lt;br /&gt;DateTime.Now.ToString(&lt;/span&gt;&lt;span style="color:#808080;"&gt;"HH:mm:ss:ff"&lt;/span&gt;&lt;span style="color:black;"&gt;) + &lt;/span&gt;&lt;span style="color:#808080;"&gt;"&amp;lt;br/&amp;gt;"&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;private void &lt;/span&gt;&lt;span style="color:black;"&gt;Iterate100K_With_StringAppend()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;for &lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;int &lt;/span&gt;&lt;span style="color:black;"&gt;i &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i &amp;lt; &lt;/span&gt;&lt;span style="color:maroon;"&gt;99999&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i++)&lt;br /&gt;myString +&lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:black;"&gt;i.ToString()&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;private void &lt;/span&gt;&lt;span style="color:black;"&gt;Iterate100K_With_StringBuilder()&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;for &lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;int &lt;/span&gt;&lt;span style="color:black;"&gt;i &lt;/span&gt;&lt;span style="color:blue;"&gt;= &lt;/span&gt;&lt;span style="color:maroon;"&gt;0&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i &amp;lt; &lt;/span&gt;&lt;span style="color:maroon;"&gt;99999&lt;/span&gt;&lt;span style="color:blue;"&gt;; &lt;/span&gt;&lt;span style="color:black;"&gt;i++)&lt;br /&gt;sb.Append(i.ToString())&lt;/span&gt;&lt;span style="color:blue;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;p align="justify"&gt;Your result may be slightly different from my result, but you should see signification difference on the time that it takes to perform string concatenation using string class and the time it took using StringBuilder class. The results on my test are as folows: &lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:courier new;"&gt;&lt;code&gt;Start 100K loops using string catenation: 15:22:48:24&lt;br /&gt;End 100K loops using string catenation : 15:26:45:20&lt;br /&gt;Start 100K loops using StringBuilder : 15:26:45:20&lt;br /&gt;End 100K loops using StringBuilder : 15:26:45:26&lt;/code&gt; &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;Note: Most contents are © 2007 Microsoft Corporation aside from some comments and sample code that I added.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-7007126801894716954?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/11/string-concatenation-versus.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-3971635827141281141</guid><pubDate>Sat, 10 Nov 2007 01:05:00 +0000</pubDate><atom:updated>2007-11-10T09:08:07.539+08:00</atom:updated><title>I'm Alive!</title><description>&lt;div align="justify"&gt;Well, it's been a long while. More than a year since my last post here. I was busy (there goes my default alibi) with my work and some other stuff but I think I can give more time now with this blog. I am planning to publish an article on how to create a custom vertical label control on windows forms and with an added support for transparent background. &lt;/div&gt;&lt;br /&gt;Stay tuned.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-3971635827141281141?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2007/11/im-alive.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-22377009.post-113982329723883305</guid><pubDate>Mon, 13 Feb 2006 09:32:00 +0000</pubDate><atom:updated>2007-11-10T12:27:56.411+08:00</atom:updated><title>My Coding Adventure Begins</title><description>Hello!&lt;br /&gt;&lt;br /&gt;This is my first post for this blog. I decided to create a new blog, because I wanted a designated place on the net where I can share my adventures in programming. I am into .NET and MSSQL now and here you will find about my latests projects.&lt;br /&gt;&lt;br /&gt;Stay tuned.&lt;div class="blogger-post-footer"&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-7108103449023552";
//728x90, created 12/5/07
google_ad_slot = "5264067403";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/22377009-113982329723883305?l=dotnetrandz.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://dotnetrandz.blogspot.com/2006/02/my-first-post.html</link><author>noreply@blogger.com (/randz)</author><thr:total>0</thr:total></item></channel></rss>

