<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" 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-6921881384157029024</atom:id><lastBuildDate>Sat, 14 Feb 2026 08:52:54 +0000</lastBuildDate><category>ASP.NET</category><category>Articles</category><category>Microsoft</category><category>Download</category><category>C#</category><category>AJAX</category><category>Personal</category><category>Tips-N-Trick</category><category>Vista</category><category>snippets</category><category>sql</category><category>Newsletters</category><category>Scripts</category><category>Visual Studio</category><category>jQuery</category><category>Ads</category><category>Customize</category><category>Error Code</category><category>Issues</category><category>MDI</category><category>MS Office</category><category>RSS</category><category>Windows Forms</category><title>Did you say .NET ?</title><description>All Day, I Dream about Codes</description><link>http://dodgethecode.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>101</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-7348927861126991773</guid><pubDate>Tue, 28 Sep 2010 07:49:00 +0000</pubDate><atom:updated>2010-09-28T13:20:54.940+05:30</atom:updated><title>CameTooFar New Web Site launched</title><description>&lt;p&gt;Hi Readers, Thank You for supporting me all these time. I’m moving this blog to a new website – &lt;a href=&quot;http://www.cametoofar.com/&quot;&gt;CameTooFar&lt;/a&gt;, a more dedicated blog. You can view the blog contents &lt;a href=&quot;http://blogs.cametoofar.com/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8dpi41ym89oY_oXd4mQUCkH4pzuO0JYrjSn8YWq_9suukls19FbZ1O7HVdG6B98Nm58vh62qRbA1GQwaZLkOw-NymneD6UjxnEKIqeoWu-2vFDS5BzfpEMesJlHQ5Ofbj5AEw20VBc90/s1600-h/header%20PNG%20copy%5B6%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;header PNG copy&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKPugYgTB83AZyS-zUEJwr2NmC8nOsoRyd86FaSadbctNAeacefj-c_XeDL5qiJ8-Iv3iJnqgHi_pfgfIApsQjhbQWKlzotu-UcKwbcW99Lns21oA1tA6tCEGcYuQkE0n_SLvzUa-OJzA/?imgmax=800&quot; width=&quot;129&quot; height=&quot;129&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Please update your RSS subscription link to get the latest updates. &lt;/p&gt;  &lt;p&gt;RSS link: &lt;a href=&quot;http://feeds.feedburner.com/CameTooFar&quot;&gt;subscribe to CameTooFar&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Thank You once again.&lt;/p&gt;  &lt;p&gt;See you there.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2010/09/new-web-site-launched.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKPugYgTB83AZyS-zUEJwr2NmC8nOsoRyd86FaSadbctNAeacefj-c_XeDL5qiJ8-Iv3iJnqgHi_pfgfIApsQjhbQWKlzotu-UcKwbcW99Lns21oA1tA6tCEGcYuQkE0n_SLvzUa-OJzA/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-8481642946254523628</guid><pubDate>Sun, 14 Mar 2010 09:06:00 +0000</pubDate><atom:updated>2011-08-11T23:22:54.339+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">MDI</category><category domain="http://www.blogger.com/atom/ns#">Windows Forms</category><title>Pass values between 2 MDI Child Forms using C# and VB.NET</title><description>&lt;p&gt;The contents of the post has been moved to &lt;a href=&quot;http://blogs.cametoofar.com/post/Pass-values-between-2-MDI-Child-Forms-using-C-and-VBNET.aspx&quot;&gt;here&lt;/a&gt;. Please follow the &lt;a href=&quot;http://blogs.cametoofar.com/post/Pass-values-between-2-MDI-Child-Forms-using-C-and-VBNET.aspx&quot;&gt;link&lt;/a&gt; to see the contents.&lt;/p&gt;  &lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;  &lt;p&gt;Thanks!&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2010/03/pass-values-between-2-mdi-child-forms.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-4514689652553133631</guid><pubDate>Sun, 14 Mar 2010 08:26:00 +0000</pubDate><atom:updated>2011-08-07T19:56:20.082+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">snippets</category><title>Remove Empty Records from DataTable</title><description>&lt;p&gt;The content of this post has been moved &lt;a href=&quot;http://blogs.cametoofar.com/post/Remove-Empty-Records-from-DataTable.aspx&quot;&gt;here&lt;/a&gt;. Please check this &lt;a href=&quot;http://blogs.cametoofar.com/post/Remove-Empty-Records-from-DataTable.aspx&quot;&gt;link&lt;/a&gt; to view the contents.&lt;/p&gt;  &lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;  &lt;p&gt;Thanks!&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2010/03/remove-empty-records-from-datatable.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-107268183153949799</guid><pubDate>Thu, 19 Nov 2009 17:58:00 +0000</pubDate><atom:updated>2009-11-19T23:28:21.730+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Download</category><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><category domain="http://www.blogger.com/atom/ns#">MS Office</category><title>Office 2010 direct download link</title><description>&lt;p&gt;Huh! Office 2010 Beta is out for public. I’d started downloading. What about you?&lt;/p&gt;  &lt;p&gt;Here is the direct download link.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://care.dlservice.microsoft.com/dl/download/office2010/2/4/7/247A463c-af98-4778-b5a3-934cb8d198d1/professionalplus.exe&quot;&gt;http://care.dlservice.microsoft.com/dl/download/office2010/2/4/7/247A463c-af98-4778-b5a3-934cb8d198d1/professionalplus.exe&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/11/office-2010-direct-download-link.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-2583526308728195577</guid><pubDate>Sat, 17 Oct 2009 09:50:00 +0000</pubDate><atom:updated>2009-10-17T15:20:57.440+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><title>How to get time elapsed after loading a webpage</title><description>&lt;p align=&quot;justify&quot;&gt;How to get the time elapsed time after loading a webpage, using &lt;font face=&quot;Courier New&quot;&gt;Callback()&lt;/font&gt; in MS Ajax library. Here is a sample script;&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;[Ajax-Script]&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;     &lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &amp;lt;script type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;// Page Load&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; pageLoad() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; loadTime = {date : &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Date()};&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; callback = Function.createCallback(onBtnClick, loadTime);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;             &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;             $addHandler($get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Button1&amp;quot;&lt;/span&gt;), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;click&amp;quot;&lt;/span&gt;, callback);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; onBtnClick(&lt;span style=&quot;color: #0000ff&quot;&gt;event&lt;/span&gt;, context) {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; loadTime = context.date;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; elapseTime = (&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Date() - loadTime) / 1000;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;             $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Text1&amp;quot;&lt;/span&gt;).value = elapseTime + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot; Seconds&amp;quot;&lt;/span&gt;;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;     &amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;[HTML-Script]&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;         Time elapsed since PageLoad: &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Text1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;text&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;button&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Get Elapsed Time&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/10/how-to-get-time-elapsed-after-loading.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-2567330067944820650</guid><pubDate>Sat, 17 Oct 2009 08:24:00 +0000</pubDate><atom:updated>2009-10-17T13:54:04.467+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><title>Sys.ArgumentTypeException: Object of type &amp;#39;String&amp;#39; cannot be converted to type &amp;#39;Number&amp;#39;</title><description>&lt;p align=&quot;justify&quot;&gt;Another careless mistake : when I used the &lt;font face=&quot;Courier New&quot;&gt;setLocation()&lt;/font&gt; method in the &lt;font face=&quot;Courier New&quot;&gt;DomElement&lt;/font&gt; class in &lt;font face=&quot;Courier New&quot;&gt;Sys.UI&lt;/font&gt; namespace. I tried to &lt;a href=&quot;http://dodgethecode.blogspot.com/2009/10/reposition-dom-element-using-ajax.html&quot;&gt;set the location of a DIV element&lt;/a&gt; using the value which I read from a textbox and I’s thrown with the error: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Sys.ArgumentTypeException: Object of type &#39;String&#39; cannot be converted to type &#39;Number&#39;&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p align=&quot;justify&quot;&gt;After taking a close look, I found it. The &lt;font face=&quot;Courier New&quot;&gt;setLocation()&lt;/font&gt; method clearly states that I’ve to enter the (x,y) coordinates as &lt;em&gt;integer &lt;/em&gt;data type. Take a look:&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ3dAEku1FX0V8kefhiG6NOzlwtCDF3KvL-F1PEX3_CaM4w_SVFdOY09hjP934Sqjv-pet7W2Un8LUKwhO8zkoTZ5y2aAd4VdYKzg6oph_iS7mZ1wSMyxJYoIebipZ7JCO8G5S-m82d1o/s1600-h/msajax_setlocn%5B21%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;msajax_setlocn&quot; border=&quot;0&quot; alt=&quot;msajax_setlocn&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Df2XN3iRiI2zMgx0GF8znZLm49PxW4cmwemAi1mytOfcopgqL6IUYFcHIXwZGtOsLiQ6K0zkLPjHxpNuQJwp5_TByZm_HlBRCfZwZ-P4ct9zqtpzqTbprxh44CAkbmQDlfcAaV1qtPU/?imgmax=800&quot; width=&quot;379&quot; height=&quot;109&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Aaahhh…!!! See how careless I’m. Soon, I fixed the small careless-bug using &lt;font face=&quot;Courier New&quot;&gt;ParseInt()&lt;/font&gt; as&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeA7spFcII1pf56bIXu7wAVkBY9kVU2MFgrHKPNl6BqTG8QYGDu-wVX3UuMHjNOirBUa4QXKgQfNw56hvgs1gFxIfOFr0rtg7EdBa6pgsziaApXTnH8aNKdPw55a1abPb1UOQlWdJYwx4/s1600-h/msajax_setlocn_2%5B19%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;msajax_setlocn_2&quot; border=&quot;0&quot; alt=&quot;msajax_setlocn_2&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIzKWIRDunvIAmGcRRMN9SpVsB98R9b5ALgF6HI3THd1MSw7vrcIbuGWFVueJgBCKOGOmZoAkBPzQIgsPXvNQPqilbhDFka35IkJvurbxi247EaW0SW5zqKWDd9aJ1oH8GkrZpPbvO9OE/?imgmax=800&quot; width=&quot;548&quot; height=&quot;59&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Hope, you’ll be more careful.&lt;/p&gt;  &lt;p&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/10/sysargumenttypeexception-object-of-type.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9Df2XN3iRiI2zMgx0GF8znZLm49PxW4cmwemAi1mytOfcopgqL6IUYFcHIXwZGtOsLiQ6K0zkLPjHxpNuQJwp5_TByZm_HlBRCfZwZ-P4ct9zqtpzqTbprxh44CAkbmQDlfcAaV1qtPU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-4229318055300280203</guid><pubDate>Sat, 17 Oct 2009 08:03:00 +0000</pubDate><atom:updated>2009-10-17T13:33:53.872+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><title>Reposition a DOM element using Ajax</title><description>&lt;p&gt;   &lt;br /&gt;For handling the DOM elements, Microsoft Ajax library has a Class named &lt;font face=&quot;Courier New&quot;&gt;DomElement&lt;/font&gt; in the &lt;font face=&quot;Courier New&quot;&gt;Sys.UI&lt;/font&gt; namespace. The DomElement class has 2 methods as follows:&lt;/p&gt;&lt;p&gt;a) &lt;font face=&quot;Courier New&quot;&gt;getLocation(&lt;em&gt;element-name&lt;/em&gt;):&lt;/font&gt; returns the (x,y) coordinate of the DOM element.     &lt;br /&gt;b) &lt;font face=&quot;Courier New&quot;&gt;setLocation(&lt;em&gt;element&lt;/em&gt;, &lt;em&gt;x-pos&lt;/em&gt;, &lt;em&gt;y-pos&lt;/em&gt;):&lt;/font&gt; sets the DOM element to (x,y) position.&lt;/p&gt;&lt;p&gt;Here is a simple example on repositioning a DOM element using the Ajax library;&lt;/p&gt;&lt;p&gt;[Ajax Script]&lt;/p&gt;&lt;div&gt;   &lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &amp;lt;script type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;//Page Load&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; pageLoad() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; btnGet = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;btnGetPos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; btnSet = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;btnSetPos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;             $addHandler(btnGet, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;click&amp;quot;&lt;/span&gt;, getXYLocation);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;             $addHandler(btnSet, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;click&amp;quot;&lt;/span&gt;, setXYLocation);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;             &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;             &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;// Get (X,Y) Location&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; getXYLocation() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; location = Sys.UI.DomElement.getLocation(div1);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbX = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;tbXpos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbY = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;tbYpos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt;             tbX.value = location.x;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt;             tbY.value = location.y;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt;         &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;// Set (X,Y) Location&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  25:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; setXYLocation() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  26:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbX = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;tbXpos&amp;quot;&lt;/span&gt;).value;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  27:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbY = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;tbYpos&amp;quot;&lt;/span&gt;).value;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  28:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  29:&lt;/span&gt;             alert(tbX + tbY);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  30:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  31:&lt;/span&gt;             Sys.UI.DomElement.setLocation(div1, parseInt(tbX), parseInt(tbY));&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  32:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  33:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  34:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;// Unload Page&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  35:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; pageUnload() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  36:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; btnGet = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;btnGetPos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  37:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; btnSet = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;btnSetPos&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  38:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  39:&lt;/span&gt;             $removeHandler(btnGet, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;click&amp;quot;&lt;/span&gt;, getXYLocation);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  40:&lt;/span&gt;             $removeHandler(btnSet, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;click&amp;quot;&lt;/span&gt;, setXYLocation);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  41:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  42:&lt;/span&gt;     &amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;[HTML-Script]&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;br /&gt;    &lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;div1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;border: ridge 1px Black; width: 250px; text-align: justify;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;     This is a sample text inside an HTML for demonstrating CSS Positioning using ASP.NET Ajax Library.&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;     X-Coord: &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;tbXpos&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;text&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;     Y-Coord: &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;tbYpos&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;text&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnGetPos&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;button&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Get (X,Y) Location&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;&amp;amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;btnSetPos&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;button&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Set (X,Y) Location&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/10/reposition-dom-element-using-ajax.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-3680936996478760589</guid><pubDate>Sat, 17 Oct 2009 07:46:00 +0000</pubDate><atom:updated>2009-10-17T13:16:48.223+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><title>DomEvents in ASP.NET AJAX</title><description>&lt;p align=&quot;justify&quot;&gt;In my previous article &lt;a href=&quot;http://dodgethecode.blogspot.com/2009/09/avoid-numbers-in-textbox-using-aspnet.html&quot;&gt;Avoid Numbers in Textbox using ASP.NET AJAX&lt;/a&gt;, I showed how you can prevent numbers from being entered into a Textbox, using ASP.NET AJAX Framework.&lt;/p&gt; &lt;p align=&quot;justify&quot;&gt;In that example, the code segment &lt;font face=&quot;Courier New&quot;&gt;e.charCod&lt;/font&gt;&amp;#160; and &lt;font face=&quot;Courier New&quot;&gt;preventDefault()&lt;/font&gt; designates a property belonging to &lt;font face=&quot;Courier New&quot;&gt;Sys.UI.DomEvent&lt;/font&gt; class. The &lt;font face=&quot;Courier New&quot;&gt;Sys.UI&lt;/font&gt; is the class provided by the AJAX Framework to work with the DOM components in a webpage. And you can say, &lt;font face=&quot;Courier New&quot;&gt;Sys&lt;/font&gt; is the root namespace or &lt;em&gt;mother-of-all&lt;/em&gt; classes, just like &lt;font face=&quot;Courier New&quot;&gt;System&lt;/font&gt; is the root namespace in C#.&lt;/p&gt; &lt;p align=&quot;justify&quot;&gt;After a slight &lt;em&gt;Binging&lt;/em&gt;, I’s able to get a lot more properties of the &lt;font face=&quot;Courier New&quot;&gt;Sys.UI.DomEvent&lt;/font&gt; class. Please note, they are cross-browser objects. Here is the list:&lt;/p&gt; &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;600&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;strong&gt;Properties&lt;/strong&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;strong&gt;Descriptions&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;rawEvent&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;event-data object built by the current browser&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;shiftKey&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Returns &lt;font color=&quot;#0000ff&quot;&gt;TRUE&lt;/font&gt;, if SHIFT key was pressed&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;ctrlKey&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Returns &lt;font color=&quot;#0000ff&quot;&gt;TRUE&lt;/font&gt;, if CTRL key was pressed&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;altKey&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Returns &lt;font color=&quot;#0000ff&quot;&gt;TRUE&lt;/font&gt;, if ALT key was pressed&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;button&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;captures the mouse-button click and has values as (&lt;em&gt;leftButton&lt;/em&gt;, &lt;em&gt;middleButton&lt;/em&gt; and &lt;em&gt;rightButton&lt;/em&gt;)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;charCode&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;character code for the typed characters&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;clientX&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;returns the&amp;#160; x-coordinate of the mouse location relative to client area of the page&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;clientY&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;returns the&amp;#160; y-coordinate of the mouse location relative to&amp;#160; &lt;br /&gt;client area of the page&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;target&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;represents the &lt;em&gt;Element&lt;/em&gt; that raised the event&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;screenX&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;x-coordinate of mouse-pointer relative to screen&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;screenY&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;y-coordinate of mouse-pointer relative to screen&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;type&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Returns name/type of the event (click/mouse)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;preventDefault()&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Prevents the default action associated with that event&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;stopPropagation()&lt;/font&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;400&quot;&gt;Prevents the event from propagation to&amp;#160; the element’s parent nodes&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Hope this is handy.   &lt;br /&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/10/domevents-in-aspnet-ajax.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-333014340687298192</guid><pubDate>Thu, 17 Sep 2009 10:56:00 +0000</pubDate><atom:updated>2009-09-17T16:27:07.312+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Avoid numbers in Textbox using ASP.NET AJAX</title><description>&lt;p&gt;An old question which was recently asked for an interview.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;How can you prevent numbers from being entered into a Textbox, using Microsoft ASP.NET AJAX Framework. Thinking about &lt;font face=&quot;Courier New&quot;&gt;UpdatePanel’&lt;/font&gt;&lt;font face=&quot;ge&quot;&gt;s&lt;/font&gt;? Be clever, I have some client-side codes, using the framework itself.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;[Client-Side]&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &amp;lt;script type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; pageLoad() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbox = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Text1&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;         $addHandler(tbox, &lt;span style=&quot;color: #006080&quot;&gt;&#39;keypress&#39;&lt;/span&gt;, text1_keypress);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; text1_keypress(e) {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; code = e.charCode;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (code &amp;gt;= 48 &amp;amp;&amp;amp; code &amp;lt;= 57)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;             e.preventDefault();&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; pageUnload() {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; tbox = $get(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Text1&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;         $removeHandler(tbox, &lt;span style=&quot;color: #006080&quot;&gt;&#39;keypress&#39;&lt;/span&gt;, text1_keypress);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt; &amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;[Markup-Code]&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:ScriptManager&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;     Enter text value:&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Text1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;text&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p align=&quot;justify&quot;&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/09/avoid-numbers-in-textbox-using-aspnet.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-6197034940819053385</guid><pubDate>Thu, 17 Sep 2009 05:27:00 +0000</pubDate><atom:updated>2009-09-17T10:57:32.318+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>What are Mashups?</title><description>&lt;p align=&quot;justify&quot;&gt;It’s been a long time, I’ve been hearing about &lt;em&gt;mashups&lt;/em&gt; in the web world. Surprisingly, I came across the same when I’s reading Manning’s ASP.NET AJAX in Action.&lt;/p&gt;&lt;blockquote&gt;   &lt;p align=&quot;justify&quot;&gt;&lt;em&gt;A mashup is a web application that consumes content from more than        &lt;br /&gt;one external source and aggregates it into a seamless, interactive experience        &lt;br /&gt;for the user.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;&lt;p&gt;If you ask me a live example, here it is &lt;a href=&quot;http://www.pageflakes.com/&quot; target=&quot;_blank&quot;&gt;PageFlakes&lt;/a&gt;.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/09/what-are-mashups.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-1682718648863097011</guid><pubDate>Tue, 15 Sep 2009 10:23:00 +0000</pubDate><atom:updated>2009-09-15T15:53:16.724+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">snippets</category><title>Exiting an Application on Error</title><description>&lt;p align=&quot;justify&quot;&gt;Error handling is always a &lt;em&gt;nightmare&lt;/em&gt; for every programmer. Because, testing you application in your development lab and exposing the application to a real-world lies in two extremities. The very reason where everyone go for alpha/beta and finally the RC release. Hey…Hey…I’m not going into core-concepts.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Recently, I’s re-optimizing a 6-month old c#-code (written in .NET 2.0) to .NET 3.5. Re-optimizing the code is a tough task, specially when the code was written by someone else. It deals with studying the code, understanding the logic and also good, if you can preview the test-cases encountered while re-designing.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;When digging deep into the logic, I came across code-blocks where, even if you catch an Exception, you can’t continue because that might cause an abnormal exception at some other point. Huh! and I’s forced to kill the application at that point, using one-line code.&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; Environment.Exit(1);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Remember, use this code safely. Use it only when you came across a do-or-die situation. Killing an application unnecessarily is bad way of programming.&lt;/p&gt;&lt;p&gt;Happy Programming.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/09/exiting-application-on-error.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-3848750579578323526</guid><pubDate>Fri, 28 Aug 2009 09:12:00 +0000</pubDate><atom:updated>2009-08-28T14:42:22.220+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">snippets</category><title>Simple Checksum Generation in .NET</title><description>&lt;p align=&quot;justify&quot;&gt;.NET framework is a tremendous installment from MSFT. No doubt! Every day-to-day life methodologies are wrapped into a Namespace/Class form. Say, Mail Sending class (System.Net.Mail), and so on. With the release of .NET 3.0, the number of Namespace/Class simply grew and they’ll.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;A major installment in .NET 3.0 was Lambda Expressions. That even reduced the Line of Codes(LOC). In a nutshell, Lambda expression converts a bunch of codes into a single line of code, which we(I) may call as &lt;em&gt;one-liner codes&lt;/em&gt;. Hard to believe, wait!&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;How, it affected a programmer? Does it made their work easier or does it made them lazy? Anyway, it made me lazy a bit. Because, whenever I start to implement repeating/familiar codes, say Checking Odd/Even values, etc, I always look for one-liners. Because, I don&#39;t want to repeat the same LOC every time. But, its better to know, what’s the internal implementation of one-liner, for Performance and Optimization reasons.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Recently, I’s developing an application for one of my client, in which I’ve to implement a checksum feature for a 9-Digit UniqueID (generated from another code-block).&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;The checksum technique was simple. My checksum has 3-Digits;  &lt;br /&gt;a) 1st Digit = &lt;em&gt;Total Sum&lt;/em&gt; (of 9 Digits)   &lt;br /&gt;b) 2nd Digit = &lt;em&gt;Even Sum&lt;/em&gt; (sums up the digits in the even place)   &lt;br /&gt;c) 3rd Digit = &lt;em&gt;Odd Sum&lt;/em&gt; (sums up digits in the odd place)&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Please note, Chances are that the &lt;em&gt;Total Sum&lt;/em&gt;, &lt;em&gt;Even Sum&lt;/em&gt; or &lt;em&gt;Odd Sum&lt;/em&gt; may have 2 Digits, which you’ve to &lt;u&gt;sum up&lt;/u&gt; again to a single digit.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;The traditional mode of generating &lt;em&gt;Even Sum&lt;/em&gt;, &lt;em&gt;Odd Sum&lt;/em&gt; and &lt;em&gt;Total Sum&lt;/em&gt; deals with a lot of mathematical computations and all, which is quite tedious to repeat every time. Here comes Lambda Expression, as a handy feature in .NET 3.0.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Here is the code segment for :&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;a) Total Sum&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; totSum = uniqueId.ToString().Sum(c =&amp;gt; c - &lt;span style=&quot;color: #006080&quot;&gt;&#39;0&#39;&lt;/span&gt;);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;b) Even Sum&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;bool&lt;/span&gt; flag = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; evenSum = uniqueId.ToString().Sum(c =&amp;gt; (flag = !flag) ? 0 : c - &lt;span style=&quot;color: #006080&quot;&gt;&#39;0&#39;&lt;/span&gt;);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;c) Odd Sum&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;bool&lt;/span&gt; flag = &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; oddSum = uniqueId.ToString().Sum(c =&amp;gt; (flag = !flag) ? c - &lt;span style=&quot;color: #006080&quot;&gt;&#39;0&#39;&lt;/span&gt; : 0);&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;I bet, this is quite handy.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/08/simple-checksum-generation-in-net.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-3689159975608990739</guid><pubDate>Sat, 08 Aug 2009 01:31:00 +0000</pubDate><atom:updated>2009-08-08T07:01:32.661+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Scripts</category><title>Changing Multiple GridView Row values using RowUpdating event</title><description>&lt;p align=&quot;justify&quot;&gt;This is an extended sample of my previous post titled &lt;a href=&quot;http://dodgethecode.blogspot.com/2009/04/change-gridview-row-values-using.html&quot;&gt;Change GridView Row values using RowUpdating Event.&lt;/a&gt; Recently, I got comment from &lt;a href=&quot;http://www.blogger.com/profile/15827685545024544159&quot;&gt;NobleMule&lt;/a&gt; asking how he can edit multiple column/cell values. &lt;/p&gt;&lt;blockquote&gt;&lt;p align=&quot;justify&quot;&gt;“&lt;em&gt;I have 4 DDL&#39;s in a gridview. The first one is updating (mostly thanks to your code) but I can&#39;t get the other three to update. I&#39;m a fairly new to C# and have never used the DictionaryEntry before. I naively tried just adding more if&#39;s (one for each ddl) within the foreach loop but that didn&#39;t work. Any help would be greatly appreciated.&lt;/em&gt;”&lt;/p&gt;&lt;/blockquote&gt;&lt;p align=&quot;justify&quot;&gt;I hope the 4 DDL’s are in 4 different &lt;font face=&quot;Courier New&quot;&gt;Cells&lt;/font&gt; of a GridView. And wants to update the new values selected in those DDL’s into the database. As he’d mentioned &lt;a href=&quot;http://dodgethecode.blogspot.com/2009/04/change-gridview-row-values-using.html&quot;&gt;my previous post&lt;/a&gt; sample is only meant for updating the DDL present in one &lt;font face=&quot;Courier New&quot;&gt;Cell&lt;/font&gt; of your GridView.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;I’ll break-up the concept here, so that you can deal with any number of Cells in the GridView. These are the tips to be kept in mind before start coding.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;#1&lt;/strong&gt;. Identify the Row in the GridView for updating, obtained via &lt;font face=&quot;Courier New&quot;&gt;e.RowIndex&lt;/font&gt;&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;#2&lt;/strong&gt;. Identify the &lt;font face=&quot;Courier New&quot;&gt;Cell&lt;/font&gt; (column) in the GridView for updating. &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; This value will be entered manually. Keep in mind, &lt;font face=&quot;Courier New&quot;&gt;Cell&lt;/font&gt; indexing starts from &lt;em&gt;zero&lt;/em&gt;.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;#3&lt;/strong&gt;. Locate the control (DDL here) using &lt;font face=&quot;Courier New&quot;&gt;FindControl()&lt;/font&gt; method and cast it to appropriate type (ie, DDL type here).&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;These tips help you to find a Control in a particular (row,cell) of a GridView.&lt;/p&gt; &lt;p align=&quot;justify&quot;&gt;Now, the real case. You want to update the DDL in 4 different Cells of a GridView. All you’ve to do is to: &lt;br /&gt;&lt;strong&gt;(a)&lt;/strong&gt; Identify each &lt;font face=&quot;Courier New&quot;&gt;Cell&lt;/font&gt; of GridView &lt;br /&gt;&lt;strong&gt;(b)&lt;/strong&gt; Access the Control (DDL here), from each &lt;font face=&quot;Courier New&quot;&gt;Cell&lt;/font&gt;&lt;br /&gt;&lt;strong&gt;(c)&lt;/strong&gt; Get the Selected Value from DDL&lt;br /&gt;&lt;strong&gt;(d)&lt;/strong&gt; Update with new value&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Lets assume that we’ve a Table having cells as:&lt;/p&gt;&lt;table border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt;&lt;tbody&gt;&lt;tr&gt;    &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;Id&lt;/td&gt;&lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;Column1&lt;/td&gt;&lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;Column2&lt;/td&gt;&lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;Column3&lt;/td&gt;&lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;Column4&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;And, Column1 having &lt;font face=&quot;Courier New&quot;&gt;DropDownList1&lt;/font&gt;, Column2 having &lt;font face=&quot;Courier New&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;DropDownList&lt;/font&gt;2&lt;/font&gt;, Column3 having &lt;font face=&quot;Courier New&quot;&gt;DropDownList3&lt;/font&gt; and Column4 having &lt;font face=&quot;Courier New&quot;&gt;DropDownList4&lt;/font&gt;.&lt;/p&gt;&lt;p&gt;Now, the rough piece of code looks like:&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; GridView1_RowUpdating(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, GridViewUpdateEventArgs e)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;foreach&lt;/span&gt; (DictionaryEntry entry &lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt; e.NewValues)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;         {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;             DropDownList ddl;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (entry.Key.ToString() == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Column1&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;             {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;                 ddl = (DropDownList)GridView1.Rows[e.RowIndex].Cells[1].FindControl(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;DropDownList1&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;                 e.NewValues[entry.Key] = Server.HtmlEncode(ddl.SelectedItem.Text);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;             }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (entry.Key.ToString() == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Column2&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;             {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;                 ddl = (DropDownList)GridView1.Rows[e.RowIndex].Cells[2].FindControl(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;DropDownList2&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;                 e.NewValues[entry.Key] = Server.HtmlEncode(ddl.SelectedItem.Text);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt;             }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (entry.Key.ToString() == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Column3&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt;             {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt;                 ddl = (DropDownList)GridView1.Rows[e.RowIndex].Cells[3].FindControl(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;DropDownList3&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt;                 e.NewValues[entry.Key] = Server.HtmlEncode(ddl.SelectedItem.Text);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt;             }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (entry.Key.ToString() == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Column4&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt;             {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  25:&lt;/span&gt;                 ddl = (DropDownList)GridView1.Rows[e.RowIndex].Cells[4].FindControl(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;DropDownList4&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  26:&lt;/span&gt;                 e.NewValues[entry.Key] = Server.HtmlEncode(ddl.SelectedItem.Text);&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  27:&lt;/span&gt;             }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  28:&lt;/span&gt;         }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  29:&lt;/span&gt;     }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;Hope this makes some sense.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/08/changing-multiple-gridview-row-values.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-4712444534248603929</guid><pubDate>Fri, 26 Jun 2009 09:49:00 +0000</pubDate><atom:updated>2009-08-02T19:05:23.243+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">sql</category><title>How to get Duplicate records in a Table</title><description>&lt;p&gt;Last day, I seamlessly entered into a situation where I want to list out all the &lt;em&gt;repeating/duplicate records &lt;/em&gt;from a table. Though it sounds simple, its bit a tricky approach. &lt;/p&gt;&lt;p&gt;As a small example: consider a table &lt;em&gt;say&lt;/em&gt; RepeatTest having 2 fields: &lt;em&gt;Id &lt;/em&gt;and &lt;em&gt;Url&lt;/em&gt;. To figure out the repeating &lt;em&gt;Url &lt;/em&gt;records, you can write the query as:&lt;/p&gt;&lt;div&gt;&lt;div    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;pre    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;span style=&quot;color:#606060;&quot;&gt;   1:&lt;/span&gt;  &lt;/pre&gt;&lt;pre    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;span style=&quot;color:#606060;&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;SELECT&lt;/span&gt; Url, &lt;span style=&quot;color:#0000ff;&quot;&gt;count&lt;/span&gt;(Url) &lt;span style=&quot;color:#0000ff;&quot;&gt;FROM&lt;/span&gt; RepeatTest&lt;/pre&gt;&lt;pre    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;span style=&quot;color:#606060;&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color:#0000ff;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;BY&lt;/span&gt; Url&lt;/pre&gt;&lt;pre    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;span style=&quot;color:#606060;&quot;&gt;   4:&lt;/span&gt;         &lt;span style=&quot;color:#0000ff;&quot;&gt;HAVING&lt;/span&gt; (&lt;span style=&quot;color:#0000ff;&quot;&gt;COUNT&lt;/span&gt;(Url)&amp;gt;1)&lt;/pre&gt;&lt;pre    style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px;  border-top-style: none;   border-left-style: none; overflow: visible; padding-top: 0pxfont-family:consolas, &#39;Courier New&#39;, courier, monospace;font-size:8pt;color:black;&quot;&gt;&lt;span style=&quot;color:#606060;&quot;&gt;   5:&lt;/span&gt;  &lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;Sometimes you may also jump into sudden simple queries, as what I’d jumped into.&lt;p&gt;&lt;/p&gt;  &lt;div&gt;&lt;b&gt;Update&lt;/b&gt;: This simple question was asked for the Huwaei International&#39;s written exam, held at Bangalore on July 2009.&lt;/div&gt;</description><link>http://dodgethecode.blogspot.com/2009/06/how-to-get-duplicate-records-in-table.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-6785933049028510668</guid><pubDate>Thu, 25 Jun 2009 18:02:00 +0000</pubDate><atom:updated>2009-06-25T23:32:43.474+05:30</atom:updated><title>Automatic Implemented Properties in .NET 3.5</title><description>&lt;p&gt;One of the cool feature that I like in .NET 3.5 is the automatic implementation of Properties in .NET 3.5. Here is a sample:&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; _name&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; string Name&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt; {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;     get&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; _name;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;     set&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;     {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;         _name = &lt;span style=&quot;color: #0000ff&quot;&gt;value&lt;/span&gt;;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt; }&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Can be re-written as:&lt;/p&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; Name {get; set;}&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  </description><link>http://dodgethecode.blogspot.com/2009/06/automatic-implemented-properties-in-net.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-3580680017715511376</guid><pubDate>Sat, 20 Jun 2009 06:04:00 +0000</pubDate><atom:updated>2009-08-11T22:45:22.247+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Issues</category><title>Operation aborted in IE8</title><description>&lt;p align=&quot;justify&quot;&gt;Dear Readers/Visitors, as you might know you may receive an “Operation Aborted” error message, when visiting my blog using Internet Explorer. Honestly, I don&#39;t know what had happened. How sad. (I’m an IE Lover…!!!).&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;I’ve posted the issue in IE MSDN Forum. Though they helped, but was not solved completely. Also, they have provided some troubleshooting methods to solve the issue. If you are experiencing the same problem of “Operation Aborted” exception, then have a look at the discussion &lt;a href=&quot;http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/48d6b9bc-4c78-4e64-aa6c-b83cb26e110d/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Thanks.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Update&lt;/strong&gt;:&lt;strong&gt; &lt;/strong&gt;I think the problem is solved now. I&#39;m not getting the error message. What about you guys? &lt;/p&gt;</description><link>http://dodgethecode.blogspot.com/2009/06/operation-aborted-in-ie8.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-7670555607978127049</guid><pubDate>Sat, 09 May 2009 12:34:00 +0000</pubDate><atom:updated>2009-05-09T18:04:40.709+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>jQuery quick notes</title><description>&lt;p&gt;Here is some quick notes while handling jQuery.&lt;/p&gt; &lt;div&gt;&lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates all elements with type=Text&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;input[type=text]&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Selects all &amp;lt;div&amp;gt; element with &#39;title&#39; attributes&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// whose value begins with &#39;my&#39;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;div[title^=my]&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates all links that refers PDF&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a[href$=.pdf]&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates anchor elements having the value&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// someurl.com anywhere in the &#39;href&#39; attribute&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a[href*=someurl.com]&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates all the achor tags&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// coming inside a li tag&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;li:has(a)&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates anchor(a) tags inside a paragraph(p) tag&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// where anchor-tag having a cssClass=&amp;quot;someCssClass&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;p a.someCssClass&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Matches all anchor(a) tags&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  25:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  26:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Matches element having an id=someId&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  27:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a#someId&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  28:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  29:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Matches all elements having a CssClass=someCssClass&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  30:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;.someCssClass&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  31:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  32:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Locates anchor(a) tag with Id=someId and cssClass=someCssClass&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  33:&lt;/span&gt; $(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;a.someId.someCssClass&amp;quot;&lt;/span&gt;)&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Reference: &lt;a href=&quot;http://www.manning.com/affiliate/idevaffiliate.php?id=648_93&quot; target=&quot;_blank&quot;&gt;Manning’s jQuery in Action&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;I must say, it’s a must read book.&lt;br /&gt;  &lt;br /&gt;Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/05/jquery-quick-notes.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-134894112240380822</guid><pubDate>Fri, 08 May 2009 10:34:00 +0000</pubDate><atom:updated>2009-05-08T16:06:16.384+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>No jQuery intellisense in Visual Studio Workaround</title><description>&lt;p align=&quot;justify&quot;&gt;If you are using jQuery 1.3.2 in Visual Studio 2008 or Visual Web Developer 2008 (SP1), you may come across scenario where you wont get the jQuery intellisense support, even if you add &lt;a href=&quot;http://jqueryjs.googlecode.com/files/jquery-1.3.2-vsdoc2.js&quot; target=&quot;_blank&quot;&gt;jquery-1.3.2-vsdoc2.js&lt;/a&gt; file to the &lt;em&gt;aspx&lt;/em&gt; page.&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;The workaround is simple. All you’ve to do, is to rename the &lt;em&gt;jquery-1.3.2-vsdoc2.js&lt;/em&gt; to &lt;em&gt;jquery-1.3.2-vsdoc.js&lt;/em&gt;.&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;It looks like: &lt;/p&gt;  &lt;div align=&quot;justify&quot;&gt;   &lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &amp;lt;script src=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Scripts/jquery-1.3.2.js&amp;quot;&lt;/span&gt; type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &amp;lt;script src=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Scripts/jquery-1.3.2-vsdoc.js&amp;quot;&lt;/span&gt; type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Note:&lt;/strong&gt; For making VS/VWD to support jQuery intellisense, you’ve to apply a patch from the VS Development team &amp;amp; can be downloaded from &lt;a href=&quot;http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/05/no-jquery-intellisense-in-visual-studio.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-988777623810777929</guid><pubDate>Thu, 30 Apr 2009 10:43:00 +0000</pubDate><atom:updated>2009-04-30T16:13:21.492+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Customize</category><title>Gravatar using ASP.NET</title><description>&lt;p&gt;I’m always attracted with the fancy features in web. This time, I fall in love with &lt;a href=&quot;http://en.wikipedia.org/wiki/Gravatar&quot; target=&quot;_blank&quot;&gt;Gravatar&lt;/a&gt;. Its a global recognition of “YOU”, with the help of an e-mail Id.&lt;/p&gt;  &lt;p&gt;If you don&#39;t have a Gravatar account, create on &lt;a href=&quot;http://www.gravatar.com&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;The SRC attribute a Gravatar Image has the below mentioned syntax:    &lt;br /&gt;    &lt;br /&gt;&lt;em&gt;http://www.gravatar.com/avatar/[MD5_Hash_Value]?s=[Image_Size]&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;For loading your Gravatar image, all you’ve to do is to mention the &lt;em&gt;Hash Value&lt;/em&gt; of your email id and the &lt;em&gt;size &lt;/em&gt;of your Gravatar image.&lt;/p&gt;  &lt;p&gt;Before start, drag-drop an Image control, TextBox (for accepting email Id) and Button control.&lt;/p&gt;  &lt;p&gt;[Source-View]&lt;/p&gt;  &lt;div&gt;   &lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;     &lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:Image&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Image1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:TextBox&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;TextBox1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:TextBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:Button&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;[Code-View]&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;  &lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;br /&gt;    &lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Page Load&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; Page_Load(&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   3:&lt;/span&gt; {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;// Add SRC attribute to Iage1 at runtime&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   5:&lt;/span&gt;     Image1.Attributes.Add(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;src&amp;quot;&lt;/span&gt;, GetGravatarImageURL(TextBox1.Text.Trim(), 80));&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   6:&lt;/span&gt; }&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   7:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   8:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;// Return Gravatar Image URL&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   9:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; GetGravatarImageURL(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; emailId, &lt;span style=&quot;color: #0000ff&quot;&gt;int&lt;/span&gt; imgSize)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  10:&lt;/span&gt; {&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  11:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  12:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; hash = &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt;.Empty;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  13:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; imageURL = &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt;.Empty;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  14:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  15:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;// Convert emailID to lower-case&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  16:&lt;/span&gt;     emailId = emailId.ToLower();&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  17:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  18:&lt;/span&gt;     hash = FormsAuthentication.HashPasswordForStoringInConfigFile(emailId, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;MD5&amp;quot;&lt;/span&gt;).ToLower();&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  19:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  20:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;// build Gravatar Image URL&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  21:&lt;/span&gt;     imageURL = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://www.gravatar.com/avatar/&amp;quot;&lt;/span&gt; + hash + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;.jpg?s=&amp;quot;&lt;/span&gt; + imgSize;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  22:&lt;/span&gt;&amp;#160; &lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  23:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; imageURL;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;  24:&lt;/span&gt; }&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now just run/build(F5) your page. The image will looks like below:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0ZdM7kx09-o_c6U8bxZYvrouUsX6l7DityhfvR9FErDlvI2HtyZIWvew0PDGS_k-ezSBJxSe3B8vRk5wWWGNkzZyBn3Xkq909p9tn1hXMVz3klQWc01FqoU9eBiKe0p-Hseybx9WY2jg/s1600-h/noGravatar_Sample%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;noGravatar_Sample&quot; border=&quot;0&quot; alt=&quot;noGravatar_Sample&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc6VWR-POpUyF3k5G7kAzlxAA2rYnyXR8ij7YuMqnkTqfFATSHXVBE882-GXFNLA2VM7EmKnHBIDgUVUUlDceawrE6iiFPZw4thi73nBF5khyphenhyphen4ROdsxzz_y6ffsOETtbuJ3DUdSrqLZSo/?imgmax=800&quot; width=&quot;431&quot; height=&quot;319&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is the default Gravatar image.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDzayFZpuwy3xk1BRdIgVWth-yyRV5YeR6avuA7MDGloS8fSakTUgoseDtRGsrVBh6PIlWHKx3v1T_TzYFpSyxyWa7b4HMWPlhCRyLTXS1B_yXebHv2HO175J7-ckzgoLhWnCCtxqyxNs/s1600-h/noGravatar%5B2%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;noGravatar&quot; border=&quot;0&quot; alt=&quot;noGravatar&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHH_BYgCmlOx11ACQaRS_YyC8cZ9uTS-64zQZasJH1Mcc7lK8qpv_UaH4JYSIJfLETUS7itFN5B0qHh7sKSPhGgwJ0d463-eicInGzEfdJ7qyQoIwQ_A6D3-iy-bnJZsxEb0xYn6aOtZc/?imgmax=800&quot; width=&quot;84&quot; height=&quot;84&quot; /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now just, enter your email Id used for creating the Gravatar account. &amp;amp; hit the button. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hurray you’re done. Just integrate at the comments section of your blog.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;  &lt;br /&gt;&amp;#160;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFiFzycORE6qEw5j8w5eOMYRV6K2yA2L5A3SCtCIEIOBQOikuOLnuF4M0Qyg8uYghxyBmDEuTga3I8jqEdbT__HcP-HEhQwog-yz061nddM7iBPeVkVTLOOLNtSLWVSBnpik8lCRhxPKs/s1600-h/myGravatar%5B7%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;myGravatar&quot; border=&quot;0&quot; alt=&quot;myGravatar&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZsN6o8es3xvVpPp7mkzYb0euoSmmqYH7XRbP5QuWJU7YIY1YocdNjH1_3HGpDAk3mPOLGrftRARryYs9XmY3Oni2a37eJTEgnZBOfUMVCNvhTqhVE8PNBkTnRuYZCvJ1TROIMvagQgrg/?imgmax=800&quot; width=&quot;426&quot; height=&quot;295&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is my gravatar image &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That&#39;s it &amp;amp; Thanks.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/gravatar-using-aspnet.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc6VWR-POpUyF3k5G7kAzlxAA2rYnyXR8ij7YuMqnkTqfFATSHXVBE882-GXFNLA2VM7EmKnHBIDgUVUUlDceawrE6iiFPZw4thi73nBF5khyphenhyphen4ROdsxzz_y6ffsOETtbuJ3DUdSrqLZSo/s72-c?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-1004303000490598655</guid><pubDate>Sat, 25 Apr 2009 17:42:00 +0000</pubDate><atom:updated>2011-08-07T19:45:51.193+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>Change GridView row values using RowUpdating event</title><description>&lt;p&gt;   &lt;br /&gt;The contents of this post has been moved to &lt;a href=&quot;http://blogs.cametoofar.com/post/Change-GridView-row-values-using-RowUpdating-event.aspx&quot;&gt;here&lt;/a&gt;. Please visit the &lt;a href=&quot;http://blogs.cametoofar.com/post/Change-GridView-row-values-using-RowUpdating-event.aspx&quot;&gt;link &lt;/a&gt;to view the contents.&lt;/p&gt;  &lt;p&gt;Sorry for the inconvenience.&lt;/p&gt;  &lt;p&gt;Thanks!&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/change-gridview-row-values-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-224497788195578790</guid><pubDate>Wed, 22 Apr 2009 09:49:00 +0000</pubDate><atom:updated>2009-04-22T15:19:09.527+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ads</category><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><title>FF3 Ad over IE</title><description>&lt;p&gt;Does anyone noticed this?&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.mozilla.com/en-US/firefox/ie.html&quot; href=&quot;http://www.mozilla.com/en-US/firefox/ie.html&quot;&gt;http://www.mozilla.com/en-US/firefox/ie.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpY61FhJBeAIsqMe1BYdjscAes7YDAQHSRWsJrlw8iVFAeSuQkMgC5o6wgATOrM-gEoMQUOpny9GV7q-IL-ZVfGBPs_6R2QsOixBHK1h7BzWAsdKO8boPxTYcr64FnPUNgNoMCmtWrxR8/s1600-h/ff3_vs_ie8%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;ff3_vs_ie8&quot; border=&quot;0&quot; alt=&quot;ff3_vs_ie8&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5venNCncdnW-m3cF6qEiII_Hih1k-LTu07fe-RqMCryALTQDFviBApUTexLy6tFJk5imvNwOmAo7AnvcEJ4ij9yLShevKTKFYcHqPPXEC847pvyTBIg6Mp5wqdVLqzf3cOVOzfgbyGA/?imgmax=800&quot; width=&quot;644&quot; height=&quot;390&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;See, the &lt;em&gt;courage&lt;/em&gt;, &lt;em&gt;confidence&lt;/em&gt; and &lt;em&gt;power&lt;/em&gt; of Mozilla corporation; directly advertising over IE. Nothing to say more, IE market-share dipped to 66%. But, this time IE is losing the market-share in a quicker pace. IE8 have to struggle a lot to gain the market again and again.&lt;/p&gt;  &lt;p&gt;Good luck, IE.&lt;/p&gt;  &lt;p&gt;BTW, I’m an addicted IE user.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/ff3-ad-over-ie.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5venNCncdnW-m3cF6qEiII_Hih1k-LTu07fe-RqMCryALTQDFviBApUTexLy6tFJk5imvNwOmAo7AnvcEJ4ij9yLShevKTKFYcHqPPXEC847pvyTBIg6Mp5wqdVLqzf3cOVOzfgbyGA/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-8652657354523392751</guid><pubDate>Thu, 02 Apr 2009 10:33:00 +0000</pubDate><atom:updated>2009-04-02T16:03:36.455+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">sql</category><title>Inserting selected attribute values into a Table</title><description>&lt;p&gt;Just imagine you’ve five fields (columns) in table &amp;amp; you only want to insert 2 values (say, in Col2 &amp;amp; Col3) of the table; then use as follows:&lt;/p&gt;  &lt;div&gt;   &lt;div style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   1:&lt;/span&gt; INSERT &lt;span style=&quot;color: #0000ff&quot;&gt;INTO&lt;/span&gt; Table_Name (Col2_Name, Col3_Name)&lt;/pre&gt;&lt;pre style=&quot;border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;color: #606060&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;VALUES&lt;/span&gt; (Col2_Value, Col3_Value)&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/inserting-selected-attribute-values.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-4669688854647721497</guid><pubDate>Wed, 01 Apr 2009 12:25:00 +0000</pubDate><atom:updated>2009-04-01T20:23:29.459+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">RSS</category><title>Programmatically accessing RSS Feed using RSSToolkit Control</title><description>&lt;p align=&quot;justify&quot;&gt;An awesome RSS Feed control (&lt;a href=&quot;http://blogs.msdn.com/dmitryr/archive/2006/02/21/536552.aspx&quot; target=&quot;_blank&quot;&gt;Dmitry’s RSSToolkit&lt;/a&gt;) was released years before, I came to knew about ASP.NET.&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;Last months, I’s spending some time with the control.&amp;#160; I must say, its really cool. One problem I encountered; lack of documentation (or my lack of knowledge), What ever it may. But, it was really nice to write some cool codes using the control. &lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;Ok! In this article, I’ll show small piece of codes demonstrating how to retrieve RSS Feeds from sites programmatically.&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;Before we start, please download &lt;a href=&quot;http://www.codeplex.com/ASPNETRSSToolkit/&quot; target=&quot;_blank&quot;&gt;RSSToolkit 2.0&lt;/a&gt; from &lt;a href=&quot;http://www.codeplex.com/ASPNETRSSToolkit/&quot; target=&quot;_blank&quot;&gt;codeplex&lt;/a&gt;, and add the control to your Visual Studio toolbox (&lt;a href=&quot;http://dodgethecode.blogspot.com/2009/04/adding-controls-to-visual-studio.html&quot; target=&quot;_blank&quot;&gt;?&lt;/a&gt;). &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Step 1&lt;/strong&gt;: Drag-drop ‘RssDataSource’ control from your toolbox to the webpage.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQu85XIzBqrB75aYJgoGQHP92cYvrt0CvKFY0nCvtk1nm-UYlC4o3Hj9mviBRCfRgcTVKN_X7CtCYqtBB5QWKCx5h_heb7aglT1_AdVQNW7qeMESHcMlFzxuvUSVIbl7_GwnPdjEndXt0/s1600-h/ChooseRSSDataSource.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px&quot; title=&quot;Choose RSSDataSource&quot; border=&quot;0&quot; alt=&quot;Choose RSSDataSource&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxFyBz4_4EUMYvRzWFURNRcTQVGNTGiJRwIMlg9fWHEfSyChA9jTdUETPWNe44kH_xdUHtmm2RINosRtT6CwKVOVGDR7kzx-2UdlUAdpTeTDyYktCETWXMpXRI-w2I3yCeSUZu_LeGLoY/?imgmax=800&quot; width=&quot;221&quot; height=&quot;227&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Now just keep an eye on the source-view. When you drag-drop the RssDataSource, you’ll get a &lt;font face=&quot;Courier New&quot;&gt;Register&lt;/font&gt; tag in the source-view like:&lt;/p&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:eed2f572-4b57-4f9d-8cbb-4b35d71ec132&quot; class=&quot;wlWriterSmartContent&quot;&gt;&lt;pre style=&quot;background-color: #ffffff; font-family: courier new; overflow: auto&quot;&gt;&lt;span style=&quot;background-color: #ffff00; color: #000000&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt;@ Register assembly&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;RssToolkit&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt; namespace&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;RssToolkit.Web.WebControls&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt; tagprefix&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;cc1&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f5f5f5; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #ffff00; color: #000000&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn&#39;s Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Drag-drop a &lt;font face=&quot;Courier New&quot;&gt;TextBox&lt;/font&gt; for&amp;#160; accepting the feed-url.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: Drag-drop a &lt;font face=&quot;Courier New&quot;&gt;Button&lt;/font&gt; to trigger fetching the feeds. Double-Click the button to generate the &lt;font face=&quot;Courier New&quot;&gt;Click &lt;/font&gt;event.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Step 4&lt;/strong&gt;: Drag-drop a &lt;font face=&quot;Courier New&quot;&gt;Label&lt;/font&gt; control to show an error when you enter an invalid feed-url.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;[&lt;u&gt;Design-View&lt;/u&gt;]&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHIgfXhTWQW7NzXeaVf3aRZ9O1EIfEKSDSmqipxCRhnVe_iuI8DFOs0EUkqFrxTEXSrIp_JzegCv4yXxV-deSJ_hW6Oasvlf_Kz6nEaEks8tAF9dA8zNmAo3iDsIE5iFpG7P6xsnW_35c/s1600-h/DesignView7.jpg&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px&quot; title=&quot;Design-View&quot; border=&quot;0&quot; alt=&quot;Design-View&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi617gkCxf0qo-jK1w4lEogFYCMUK8Ld_3E1G0aVu8IeskpfgvEVaDulD3EpTvIqHaS4kLepaya3tCVHD81a8RZNw9duoDf14DBY3wovGgfz_cchE4ApIHSb8N8d2EwXDJw3EY4_HZAmPI/?imgmax=800&quot; width=&quot;483&quot; height=&quot;251&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;[&lt;u&gt;Source-View&lt;/u&gt;]&lt;/p&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:526b0cce-fdba-4b21-afb9-8a6c3e20cebb&quot; class=&quot;wlWriterSmartContent&quot;&gt;&lt;pre style=&quot;background-color: #ffffff; font-family: courier new; overflow: auto&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cc1:RssDataSource &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;RssDataSource1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;cc1:RssDataSource&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        Enter Feed URL: &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:TextBox &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;TextBox1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;300px&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:TextBox&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:Button &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; onclick&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Button1_Click&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Fetch&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;br &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:Label &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;Label1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Font-Bold&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; ForeColor&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&amp;quot;#FF3300&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;asp:Label&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn&#39;s Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;[&lt;u&gt;Code-View&lt;/u&gt;]&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:bd83bdf9-3e43-4ae6-9c1c-d865edc3e455&quot; class=&quot;wlWriterSmartContent&quot;&gt;&lt;pre style=&quot;background-color: #ffffff; font-family: courier new; overflow: auto&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; RssToolkit.Rss;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Fecth RSS&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; Button1_Click(&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;.Empty;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Accepts Feed URL&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;        RssDataSource1.Url &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; TextBox1.Text.Trim();&lt;br /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;        {&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Iterate through the RSS feed Items&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; (RssItem item &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; RssDataSource1.Rss.Channel.Items)&lt;br /&gt;            {&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Feed Author&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; item.Author;&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Feed Title&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; item.Title;&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Feed Link&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; item.Link;&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Feed Description&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; item.Description;&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Feed Publish Date&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; item.PubDate;&lt;br /&gt;&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt; Print the output&lt;/span&gt;&lt;span style=&quot;color: #008000&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;                Response.Write(feedData &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;&amp;lt;br/&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; (UriFormatException exp)&lt;br /&gt;        {&lt;br /&gt;            Label1.Text &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;Invalid Feed URL&lt;/span&gt;&lt;span style=&quot;color: #800000&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;!-- Code inserted with Steve Dunn&#39;s Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;[&lt;u&gt;Demonstration&lt;/u&gt;]&lt;br /&gt;a) copy the url of an RSS feed, say &lt;a title=&quot;http://feeds2.feedburner.com/DidYouSaynet&quot; href=&quot;http://feeds2.feedburner.com/DidYouSaynet&quot;&gt;http://feeds2.feedburner.com/DidYouSaynet&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;b) Paste it on the TextBox &amp;amp; Hit the button. That&#39;s all.&lt;/p&gt;&lt;p&gt;c) See How the feeds are displayed.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Hoping it will help someone.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;&lt;u&gt;Note&lt;/u&gt;&lt;/strong&gt;:&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;a) Do not forget to include the namespace &lt;font face=&quot;Courier New&quot;&gt;using RSSToolkit.RSS&lt;/font&gt;.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;b) One of the common question you may encounter is &lt;em&gt;how to fetch feeds with a count limit?&lt;/em&gt;. That means you only want to fetch last 3 feeds, 5 feeds, etc. At this point I don&#39;t have the answer. Even though the &lt;font face=&quot;Courier New&quot;&gt;RSSDataSource&lt;/font&gt; has a property named &lt;font face=&quot;Courier New&quot;&gt;MaxItems (&lt;/font&gt; where you can set the feed limit), it was not working when tried programmatically. Only way I believe you can do; is to insert a count value in the &lt;font face=&quot;Courier New&quot;&gt;foreach&lt;/font&gt; statement&amp;#160; &amp;amp; break the loop when you feed-count limit is reached.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;c) Next question will be &lt;em&gt;how can I download updated feeds only from a site?&lt;/em&gt;. The answer will be my next post.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Also you can find some cool articles of RSSToolkit @ &lt;a href=&quot;http://weblogs.asp.net/scottgu/archive/2006/02/22/Awesome-ASP.NET-2.0-RSS-Tool_2D00_Kit-Released.aspx&quot; target=&quot;_blank&quot;&gt;ScottGu’s blog&lt;/a&gt; and @ &lt;a href=&quot;http://www.codeproject.com/KB/ajax/AspNetAJAXRssReader.aspx&quot; target=&quot;_blank&quot;&gt;CodeProject&lt;/a&gt;, which inspired me to write this.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Thanks for taking time to read the post.&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/programmatically-accessing-rss-feed.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxFyBz4_4EUMYvRzWFURNRcTQVGNTGiJRwIMlg9fWHEfSyChA9jTdUETPWNe44kH_xdUHtmm2RINosRtT6CwKVOVGDR7kzx-2UdlUAdpTeTDyYktCETWXMpXRI-w2I3yCeSUZu_LeGLoY/s72-c?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-8425238160500142510</guid><pubDate>Wed, 01 Apr 2009 10:48:00 +0000</pubDate><atom:updated>2011-08-03T22:08:39.565+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Adding Controls to Visual Studio Toolbox</title><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The contents of this post has been moved to &lt;a title=&quot;http://blogs.cametoofar.com/post/Adding-Controls-to-Visual-Studio-Toolbox.aspx&quot; href=&quot;http://blogs.cametoofar.com/post/Adding-Controls-to-Visual-Studio-Toolbox.aspx&quot;&gt;http://blogs.cametoofar.com/post/Adding-Controls-to-Visual-Studio-Toolbox.aspx&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Sorry for inconvenience.&lt;/p&gt;  &lt;p&gt;Thanks&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/04/adding-controls-to-visual-studio.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6921881384157029024.post-8201416633892139078</guid><pubDate>Fri, 20 Mar 2009 01:59:00 +0000</pubDate><atom:updated>2009-03-20T07:29:16.008+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><title>HOW TO: Get the IP Address of a visitor</title><description>&lt;p&gt;Just simple:&lt;/p&gt;  &lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;Request.ServerVariables(“REMOTE_ADDR”)&lt;/font&gt;&lt;/p&gt;  </description><link>http://dodgethecode.blogspot.com/2009/03/how-to-get-ip-address-of-visitor.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item></channel></rss>