<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' 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'><id>tag:blogger.com,1999:blog-2298747311849658103</id><updated>2024-10-09T14:29:13.348-07:00</updated><category term="ASP.NET"/><category term="MS SQL Server"/><category term="WPF"/><category term=".NET Framework 3.5"/><category term=".NET Mail FAQ"/><category term="AJAX and Legacy XHTML mode"/><category term="ASP.NET AJAX"/><category term="ASP.NET Master Page"/><category term="ASP.net spell checker"/><category term="ASP:Image"/><category term="Background and Foreground Thread"/><category term="BackgroundWorker"/><category term="BlogEngine.NET"/><category term="CSS"/><category term="Dynamic SQL Queries"/><category term="Email"/><category term="GSM"/><category term="GridView Pager"/><category term="HTML Character Codes"/><category term="Microsoft SMS Sender"/><category term="Msg 195 - Level 15 - State 10 - Line 1"/><category term="P1i"/><category term="PDA"/><category term="Response.End"/><category term="SMS"/><category term="SMS Sender"/><category term="SMS from PC"/><category term="SQL Server Error Msg"/><category term="Sony Ericsson"/><category term="Spell Checker"/><category term="SqlDataSource"/><category term="System.Net.Mail"/><category term="System.Web.Mail"/><category term="Thread.IsBackground"/><category term="ThreadAbortException"/><category term="Upgrading to ASP.NET AJAX"/><category term="Using Master Page"/><category term="Visual Studio 2008"/><category term="XPS Viewer and Writer"/><title type='text'>Tech Log</title><subtitle type='html'>My Tech-Diary</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-8898684545502178253</id><published>2008-08-26T14:09:00.000-07:00</published><updated>2008-08-26T14:10:02.585-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SqlDataSource"/><title type='text'>SQLDataSource : Passing Null Parameters</title><content type='html'>&lt;a href=&quot;http://blog.sumantdubey.com/blog/post/SQLDataSource-Passing-Null-Parameters.aspx&quot;&gt;http://blog.sumantdubey.com/blog/post/SQLDataSource-Passing-Null-Parameters.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/8898684545502178253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/8898684545502178253' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/8898684545502178253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/8898684545502178253'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/08/sqldatasource-passing-null-parameters.html' title='SQLDataSource : Passing Null Parameters'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-3749040010582105512</id><published>2008-08-26T14:06:00.000-07:00</published><updated>2008-08-26T14:08:52.835-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BlogEngine.NET"/><title type='text'>Upgrading to BlogEngine.NET 1.4.5</title><content type='html'>&lt;a href=&quot;http://blog.sumantdubey.com/blog/post/Upgrading-to-BlogEngineNET-145.aspx&quot;&gt;http://blog.sumantdubey.com/blog/post/Upgrading-to-BlogEngineNET-145.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/3749040010582105512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/3749040010582105512' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3749040010582105512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3749040010582105512'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/08/upgrading-to-blogenginenet-145.html' title='Upgrading to BlogEngine.NET 1.4.5'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2420480634118092270</id><published>2008-05-24T13:49:00.000-07:00</published><updated>2008-05-24T13:51:00.505-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Framework 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008"/><title type='text'>Here comes Visual Studio 2008 and .NET Framework 3.5 Service Pack 1</title><content type='html'>Though it is still in beta stage, it won&#39;t take long for this feature packed service pack release to come to developers.&lt;br /&gt;&lt;br /&gt;&lt;a title=&quot;Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta&quot; href=&quot;http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx&quot; target=&quot;_blank&quot;&gt;Read this post of Scott&#39;s to know what&#39;s there in the pack.&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2420480634118092270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2420480634118092270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2420480634118092270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2420480634118092270'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/05/here-comes-visual-studio-2008-and-net.html' title='Here comes Visual Studio 2008 and .NET Framework 3.5 Service Pack 1'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-8811189300186725459</id><published>2008-05-24T13:42:00.000-07:00</published><updated>2008-05-24T13:47:54.056-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP:Image"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>ASP:Image auto generates - style=&quot;border-width:0px;&quot;</title><content type='html'>Read the post about a fix for this behavior of asp.net &lt;a href=&quot;http://blog.sumantdubey.com/blog/post/ASPImage-auto-generates---style3dborder-width0px3b.aspx&quot;&gt;here&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/8811189300186725459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/8811189300186725459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/8811189300186725459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/8811189300186725459'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/05/aspimage-auto-generates-styleborder.html' title='ASP:Image auto generates - style=&quot;border-width:0px;&quot;'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-6199214023797227463</id><published>2008-04-24T11:12:00.000-07:00</published><updated>2008-04-24T11:14:51.335-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BackgroundWorker"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>How to use BackgroundWorker component in a WPF Application</title><content type='html'>My post on &#39;How to use BackgroundWorker component in a WPF Application&#39; - it&#39;s here - &lt;a href=&quot;http://blog.sumantdubey.com/post/Using-BackgroundWorker-component-in-a-WPF-application.aspx&quot;&gt;http://blog.sumantdubey.com/post/Using-BackgroundWorker-component-in-a-WPF-application.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/6199214023797227463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/6199214023797227463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/6199214023797227463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/6199214023797227463'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/04/how-to-use-backgroundworker-component.html' title='How to use BackgroundWorker component in a WPF Application'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-4207809825027978560</id><published>2008-03-14T01:06:00.001-07:00</published><updated>2008-03-14T01:15:36.925-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="P1i"/><category scheme="http://www.blogger.com/atom/ns#" term="PDA"/><category scheme="http://www.blogger.com/atom/ns#" term="Sony Ericsson"/><title type='text'>10000080 - Mobile phone not responding.</title><content type='html'>&lt;p&gt;This is very specific to Sony Ericsson PDA phones (mine is P1i).&lt;/p&gt;&lt;p&gt;If you encounter any of the following behavior while taking a backup -&lt;/p&gt;&lt;ul&gt;&lt;li&gt;10000080 - Mobile phone not responding.&lt;/li&gt;&lt;li&gt;settings cancelled by the device&lt;/li&gt;&lt;li&gt;Cancelled by device.&lt;/li&gt;&lt;li&gt;Failed.. etc.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Delete all old backup files and then take a new backup. If you don&#39;t want to loose old backups then you should first export them and then delete. Exported backups can be imported back any time. &lt;/p&gt;&lt;p&gt;I kept on struggling for days and then finally decided to Master Reset my phone. Fortunately I came across some threads on the internet where people have faced same problems and while I had tried everything else, only this was the remaining thing. And it works!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/4207809825027978560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/4207809825027978560' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/4207809825027978560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/4207809825027978560'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/03/10000080-mobile-phone-not-responding.html' title='10000080 - Mobile phone not responding.'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2695731041451820403</id><published>2008-02-25T23:47:00.001-08:00</published><updated>2008-02-25T23:51:39.049-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Response.End"/><category scheme="http://www.blogger.com/atom/ns#" term="ThreadAbortException"/><title type='text'>ThreadAbortException while using Response.End</title><content type='html'>&lt;p&gt;Whenever there is a call to Response.End() method in your ASP.NET code, and there are lines of code following this call (which we expect not to be executed), then in such a case a System.Threading.ThreadAbortException is thrown which can be caught using a try-catch block.&lt;/p&gt;&lt;p&gt;This exception can also be thrown while calling Response.Redirect or Server.Transfer methods as they also call Response.End internally.&lt;/p&gt;&lt;p&gt;The resolution for this issue is -&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Response.End&lt;/strong&gt; : use &lt;em&gt;HttpContext.Current.ApplicationInstance.CompleteRequest&lt;/em&gt;&lt;strong&gt; &lt;/strong&gt;instead of Response.End.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Response.Redirect&lt;/strong&gt; : use the overload &lt;em&gt;Response.Redirect(String url, bool endResponse)&lt;/em&gt; where second parameter indicates if Response.End should be called or not.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Server.Transfer&lt;/strong&gt; : use Server.Execute&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;While the requirement can be different and you may not want to just replace Server.Transfer with Server.Execute, handling the exception is a better solution in such a case. Also, calling ApplicationInstance.CompleteRequest or Response.Redirect with endResponse set to false, will still go through the complete page and application life cycle which may be expensive. In this case as well, when you may want the execution to be aborted immediately, instead of workarounding this issue as mentioned above, handle the ThreadAbortException and let all threads be aborted immediately.&lt;/p&gt;&lt;p&gt;This issue is documented in Microsoft&#39;s KB at &lt;a title=&quot;http://support.microsoft.com/kb/312629/EN-US/&quot; href=&quot;http://support.microsoft.com/kb/312629/EN-US/&quot;&gt;http://support.microsoft.com/kb/312629/EN-US/&lt;/a&gt; . It states, it applies to ASP.NET 1.0 and 1.1, but it applies to 2.0 as well.&lt;/p&gt;&lt;p&gt;Related Articles :&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a title=&quot;ThreadAbortException from Server.Transfer in HTTPHandler&quot; href=&quot;http://support.microsoft.com/kb/817266&quot; target=&quot;_blank&quot;&gt;PRB: System.Threading.ThreadAbortException Error Message When You Use Server.Transfer in HTTPHandler in an ASP.NET Application&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a title=&quot;Indepth analysis of this issue and resolution by John S. Reid&quot; href=&quot;http://www.c6software.com/articles/ThreadAbortException.aspx&quot; target=&quot;_blank&quot;&gt;Indepth analysis of this issue and resolution by John S. Reid&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2695731041451820403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2695731041451820403' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2695731041451820403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2695731041451820403'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/02/threadabortexception-while-using.html' title='ThreadAbortException while using Response.End'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2834862797772607353</id><published>2008-02-08T01:01:00.000-08:00</published><updated>2008-02-08T01:04:25.856-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XPS Viewer and Writer"/><title type='text'>View and Generate XPS</title><content type='html'>If you are not using Windows Vista or MS Office 2007 on non Vista systems, you may add XPS support by downloading XPS Viewer and Writer from here - &lt;a href=&quot;http://www.microsoft.com/whdc/xps/viewxps.mspx&quot;&gt;http://www.microsoft.com/whdc/xps/viewxps.mspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2834862797772607353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2834862797772607353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2834862797772607353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2834862797772607353'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/02/view-and-generate-xps.html' title='View and Generate XPS'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-7654789541638757177</id><published>2008-01-31T04:58:00.001-08:00</published><updated>2008-01-31T04:58:09.648-08:00</updated><title type='text'>Fill a string with repeating character (.NET)</title><content type='html'>&lt;p&gt;If you want to fill a string with a character n times (e.g. &#39;aaaaaa&#39;) then you just have to instantiate the string and pass the character and number of times, that you want it to repeat, to the constructor.&lt;/p&gt; &lt;p&gt;Example: &lt;/p&gt; &lt;p&gt;C# : String S = new String (&#39;a&#39;,6);&lt;/p&gt; &lt;p&gt;VB.NET : Dim S as String = new String (&#39;a&#39;,6)&lt;/p&gt; &lt;p&gt;Thats it!&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/7654789541638757177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/7654789541638757177' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7654789541638757177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7654789541638757177'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/01/fill-string-with-repeating-character.html' title='Fill a string with repeating character (.NET)'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-3552138071519498287</id><published>2008-01-29T10:50:00.000-08:00</published><updated>2008-01-29T10:51:34.358-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL Server"/><title type='text'>SQL Server Data Types and Their .NET Framework Equivalents</title><content type='html'>&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ms131092.aspx&quot;&gt;http://msdn2.microsoft.com/en-us/library/ms131092.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/3552138071519498287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/3552138071519498287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3552138071519498287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3552138071519498287'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/01/sql-server-data-types-and-their-net.html' title='SQL Server Data Types and Their .NET Framework Equivalents'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2802380736433253477</id><published>2008-01-24T05:54:00.001-08:00</published><updated>2008-01-24T06:00:16.099-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Windows Forms Controls and Equivalent WPF Controls</title><content type='html'>&lt;p&gt;&lt;a title=&quot;http://msdn2.microsoft.com/en-us/library/ms750559.aspx&quot; href=&quot;http://msdn2.microsoft.com/en-us/library/ms750559.aspx&quot;&gt;http://msdn2.microsoft.com/en-us/library/ms750559.aspx&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2802380736433253477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2802380736433253477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2802380736433253477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2802380736433253477'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2008/01/windows-forms-controls-and-equivalent.html' title='Windows Forms Controls and Equivalent WPF Controls'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-4507199747013466492</id><published>2007-12-03T23:53:00.001-08:00</published><updated>2007-12-03T23:56:41.804-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GSM"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SMS Sender"/><category scheme="http://www.blogger.com/atom/ns#" term="SMS"/><category scheme="http://www.blogger.com/atom/ns#" term="SMS from PC"/><category scheme="http://www.blogger.com/atom/ns#" term="SMS Sender"/><title type='text'>Sending SMS from PC using your GSM Mobile</title><content type='html'>&lt;p&gt;If you have your GSM mobile phone connected with the PC, you can send SMS to any mobile from your PC. &lt;/p&gt;&lt;p&gt;Many mobile vendors like Samsung, Nokia etc. provide application for this purpose in the connectivity suite itself (which comes free with the mobile or can be downloaded from the vendor&#39;s website). &lt;/p&gt;&lt;p&gt;However, there are other mobile vendors which don&#39;t provide an software for this out of the box, like Sony Ericsson. But, you need not worry if your connectivity kit doesn&#39;t contain a software for sending SMS, because for this we have a good and free addon for Windows XP in the market from Microsoft which is called as &quot;Microsoft SMS Sender&quot;.&lt;/p&gt;&lt;p&gt;Microsoft SMS Sender supports only SMS (and not MMS etc) over GSM networks (no CDMA/TDMA support). Though it has many limitations like this, it does the basic job of sending SMS nicely and the best part is that it can be used as a command line tool. It supports various command line switches and hence can be automated using the command line options. For details on command line options, refer to the documentation in the installation package.&lt;/p&gt;&lt;p&gt;&lt;a title=&quot;Download Microsoft SMS Sender&quot; href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=06a4f997-7f69-4891-8929-37b9041924a2&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Microsoft SMS Sender can be downloaded from here&lt;/a&gt;.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/4507199747013466492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/4507199747013466492' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/4507199747013466492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/4507199747013466492'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/12/sending-sms-from-pc-using-your-gsm.html' title='Sending SMS from PC using your GSM Mobile'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-9159117927366003456</id><published>2007-10-19T11:19:00.001-07:00</published><updated>2007-10-19T11:49:10.628-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX and Legacy XHTML mode"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="Upgrading to ASP.NET AJAX"/><title type='text'>Upgrading existing ASP.NET project to AJAX Enabled Web Application</title><content type='html'>&lt;p&gt;If you want to convert existing ASP.net web application to AJAX Enabled web application then it is as easy as just updating your existing project&#39;s web.config file, other than adding a&amp;nbsp;new reference. But you need to take care of certain things otherwise this simple change might give you a tough time before you can actually start using new ASP.NET AJAX features in the existing application.&lt;/p&gt; &lt;p&gt;I am assuming that you have already installed &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;ASP.NET AJAX 1.0&lt;/a&gt; extension.&lt;/p&gt; &lt;p&gt;Following these simple steps first to&amp;nbsp;add ASP.NET AJAX power to your application - &lt;/p&gt; &lt;ul&gt; &lt;li&gt;Open your existing application and add a new reference to &#39;System.Web.Extensions&#39; assembly. &lt;br&gt;&amp;nbsp;  &lt;li&gt;Now&amp;nbsp;create a new ASP.NET AJAX enabled web application (we will use this new project to copy new settings to existing project). &lt;br&gt;&amp;nbsp;  &lt;li&gt;Compare new application&#39;s web.config with your existing application&#39;s web.config. &lt;br&gt;&amp;nbsp;  &lt;li&gt;Copy all&amp;nbsp;new settings that you see in new&amp;nbsp;project&#39;s web.config to existing application&#39;s web.config.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Now take care of certain things which might actually make your application behave weirdly while using ASP.NET AJAX features - &lt;/p&gt; &lt;ul&gt; &lt;li&gt;It is very important that if your existing application is still&amp;nbsp;using Legacy XHTML conformance mode, then &lt;u&gt;remove&lt;/u&gt; this declaration from your web.config - &lt;br&gt;&lt;br&gt;&#39;&lt;font color=&quot;#808080&quot;&gt;&amp;lt;xhtmlConformance mode =&quot;Legacy&quot;/&amp;gt;&lt;/font&gt;&#39; &lt;br&gt;&amp;nbsp;  &lt;li&gt;If your application pages are still using non xhtml or old html&amp;nbsp;DOCTYPE declaration&amp;nbsp;then change it to use XHTML 1.0 (at least transitional) by using this declaration instead - &lt;br&gt;&lt;br&gt;&quot;&lt;font color=&quot;#808080&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;&lt;/font&gt;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&quot;&gt;&lt;font color=&quot;#808080&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&lt;/font&gt;&lt;/a&gt;&lt;font color=&quot;#808080&quot;&gt;&amp;gt;&lt;/font&gt;&quot; &lt;br&gt;&amp;nbsp;  &lt;li&gt;If after doing these changes, you face some issue with intellisense in Visual Studio then you will have to change the Tag Prefix for &quot;System.Web.Extensions&quot; assembly from &#39;asp&#39; to anything else. For this locate this line in your application&#39;s web.config - &lt;br&gt;&lt;br&gt;&quot;&lt;font color=&quot;#808080&quot;&gt;&amp;lt;add tagPrefix=&quot;ajax&quot; namespace=&quot;System.Web.UI&quot; assembly=&quot;System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/&amp;gt;&lt;/font&gt;&quot;&lt;br&gt;&lt;br&gt;&amp;nbsp;and replace the &lt;font color=&quot;#0000ff&quot;&gt;tagPrefix=&quot;asp&quot;&lt;/font&gt; with &lt;font color=&quot;#0000ff&quot;&gt;tagPrefix=&quot;ajax&quot;&lt;/font&gt; (or anything of your choice). &lt;br&gt;&lt;br&gt;Now instead of using &amp;lt;&lt;font color=&quot;#808080&quot;&gt;asp:ScriptManager&amp;gt;&lt;/font&gt; or &amp;lt;&lt;font color=&quot;#808080&quot;&gt;asp:UpdatePanel&amp;gt;&lt;/font&gt;, you will have to use this new prefix (like &lt;font color=&quot;#808080&quot;&gt;&amp;lt;ajax:ScriptManager&amp;gt;&lt;/font&gt;). But this hack will get back your Visual Studio&#39;s intellisense working.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If after all this you are still unable to upgrade your existing ASP.NET application to ASP.NET AJAX 1.0, please feel free to write to me. :)&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/9159117927366003456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/9159117927366003456' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/9159117927366003456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/9159117927366003456'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/10/upgrading-existing-aspnet-project-to.html' title='Upgrading existing ASP.NET project to AJAX Enabled Web Application'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-5191939300336883578</id><published>2007-07-30T22:36:00.000-07:00</published><updated>2007-07-30T23:00:18.144-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="GridView Pager"/><title type='text'>ASP:GridView - making Pager always visible</title><content type='html'>You would have noticed this while implementing ASP.net GridView control that if the record count in the grid is lesser than the grid&#39;s page size, then the pager doesn&#39;t appear.&lt;br /&gt;&lt;br /&gt;There can be times when you want the pager to be visible all the time (like when you implement custom paging). In such a case there is no property available in the grid which can directly let you do so. But, there is a workaround to make this happen.&lt;br /&gt;&lt;br /&gt;To make this happen, you will have to do following -&lt;br /&gt;&lt;br /&gt;1. Handle the GridView&#39;s PreRender event.&lt;br /&gt;2. In the PreRender event, fetch the GridView&#39;s &#39;BottomPagerRow&#39;&lt;br /&gt;3. Set BottomPagerRow&#39;s &#39;Visible&#39; property to &#39;True&#39;.&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Private Sub gvItems_PreRender(ByVal sender As Object, ByVal e As System.EventArgs)Handles gvItems.PreRender&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Dim gv As System.Web.UI.WebControls.GridView = CType(sender, System.Web.UI.WebControls.GridView)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If Not gv Is Nothing Then&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim PagerRow As GridViewRow = gv.BottomPagerRow&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If Not PagerRow Is Nothing Then&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PagerRow.Visible = True&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;End Sub&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thats it!</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/5191939300336883578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/5191939300336883578' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/5191939300336883578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/5191939300336883578'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/07/aspgridview-making-pager-always-visible.html' title='ASP:GridView - making Pager always visible'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-162714691568029666</id><published>2007-06-16T23:33:00.000-07:00</published><updated>2007-06-16T23:53:23.185-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Master Page"/><category scheme="http://www.blogger.com/atom/ns#" term="Using Master Page"/><title type='text'>Using a Master Page in ASP.net</title><content type='html'>&lt;p&gt;The easiest &amp;amp; quickest way to get on with Master Pages&lt;/p&gt;&lt;p&gt;Creating a Master Page :&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create an aspx page, as you want the basic layout to be.&lt;/li&gt;&lt;li&gt;Add a new Master Page to your web app.&lt;/li&gt;&lt;li&gt;Copy all code from aspx page created in step 1, exclude @Page tag&lt;/li&gt;&lt;li&gt;Paste everything by replacing default code in MasterPage, keep @Page tag as it is&lt;/li&gt;&lt;li&gt;Wherever you want content to appear from content pages, place a &amp;lt;asp:contentplaceholder&amp;gt; control&lt;/li&gt;&lt;li&gt;Master page is ready now&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;The above method helps in previewing changes easily, though a master page can be created directly without using an aspx page first, and can be previewed using a content page.&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;Using a Master Page :&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Add a WebContentForm to web app.&lt;/li&gt;&lt;blockquote&gt;if its a web project, you will have to select WebForm and check &#39;select master page&#39; check box while adding this page.&lt;/blockquote&gt;&lt;li&gt;Select the master page for this page. That&#39;s it!&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;If a page already exist and you want to convert it to a content page, add &quot;MasterPageFile&quot; attribute in @Page directive of the wannabe content page and remove all html code from this page and pace &amp;lt;asp:content&amp;gt; control and the code you want to appear in content area.&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/162714691568029666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/162714691568029666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/162714691568029666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/162714691568029666'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/06/easiest-quickest-way-to-get-on-with.html' title='Using a Master Page in ASP.net'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-3675567872825826000</id><published>2007-06-14T10:09:00.000-07:00</published><updated>2007-06-14T10:45:34.919-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Msg 195 - Level 15 - State 10 - Line 1"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Error Msg"/><title type='text'>SQL Server Error : &#39;function_name&#39; is not a recognized name</title><content type='html'>A silly issue, but may bug you if you are not a regular sql server udf user.&lt;br /&gt;&lt;br /&gt;Whenever a scalar-valued user defined function is invoked just using the name of the function, single part, you will get an error like -&lt;br /&gt;&lt;blockquote&gt;Msg 195, Level 15, State 10, Line 1&lt;br /&gt;&#39;function_name&#39; is not a recognized function name.&lt;/blockquote&gt;&lt;br /&gt;To resolve this use at least two part function name (by prefixing it with owner).&lt;br /&gt;&lt;blockquote&gt;example :&lt;br /&gt;(1) Select MyScalarFunction() -- wrong usage&lt;br /&gt;(2) Select dbo.MyScalarFunction() -- correct usage&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Important thing to note is that table-valued function, unlike scalar-valued, can be called using single part name.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;u&gt;Tip: to avoid using multi part naming in sql server 2005, you can use synonyms.&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/aa258261(SQL.80).aspx&quot; target=&quot;_new&quot;&gt;more reading on user defined functions&lt;/a&gt;]</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/3675567872825826000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/3675567872825826000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3675567872825826000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/3675567872825826000'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/06/sql-server-error-is-not-recognized-name.html' title='SQL Server Error : &#39;function_name&#39; is not a recognized name'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-7082860678844800878</id><published>2007-06-11T13:28:00.000-07:00</published><updated>2007-06-11T15:06:09.259-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET Mail FAQ"/><category scheme="http://www.blogger.com/atom/ns#" term="Email"/><category scheme="http://www.blogger.com/atom/ns#" term="System.Net.Mail"/><category scheme="http://www.blogger.com/atom/ns#" term="System.Web.Mail"/><title type='text'>Sending Email using .NET : FAQ</title><content type='html'>Sending an email using .NET is very easy and is just few lines of code. So not much of a trouble in coding it. But, actual problem starts when one tries to run it and specially on a new / non configured SMTP server. Debugging these few lines can make anyone go crazy as there is not much to do and can take days to be resolved.&lt;br /&gt;&lt;br /&gt;Though we have a detailed documentation on MSDN and good examples, I would like to mention here another very good resource for FAQ on sending email - &lt;a href=&quot;http://www.systemnetmail.com&quot; target=&quot;_new&quot;&gt;www.systemnetmail.com&lt;/a&gt;. This website hosts a detailed FAQ which you comes really handy while resolving email related issues.&lt;br /&gt;&lt;br /&gt;In .NET 2.0, we use classes in System.Net.Mail namespace for this purpose and hence the name comes - &#39;systemnetmail.com&#39;. For .NET 1.1 we had System.Web.Mail and, yes you guessed it, we have &lt;a href=&quot;http://www.systemwebmail.com&quot; target=&quot;_new&quot;&gt;www.systemwebmail.com&lt;/a&gt; for referring to old style of sending email.&lt;br /&gt;&lt;br /&gt;Overall, a nice and handy email FAQ compilation from &lt;a href=&quot;http://www.systemwebmail.com/aboutme.aspx&quot; target=&quot;_new&quot;&gt;Dave Wanta&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/7082860678844800878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/7082860678844800878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7082860678844800878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7082860678844800878'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/06/sending-email-using-net-faq.html' title='Sending Email using .NET : FAQ'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-1392260413522904631</id><published>2007-05-04T21:35:00.000-07:00</published><updated>2007-05-04T21:58:46.150-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Background and Foreground Thread"/><category scheme="http://www.blogger.com/atom/ns#" term="Thread.IsBackground"/><title type='text'>Background and Foreground Threads</title><content type='html'>In a multi-threaded application, it becomes very important to decide whether a thread will be a foreground thread or a background thread, specially if it is an unattended process, otherwise the program may continue to run even when it is not required.&lt;br /&gt;&lt;br /&gt;Difference between the two is that a foreground thread runs until it is complete and does not allow the application or program to terminate before its termination. On the contrast, a background thread is immediately terminated whenever the application is terminated or all foreground threads belonging to the application are terminated.&lt;br /&gt;&lt;br /&gt;In .NET we set a thread as a background thread or as a foreground thread by setting the property &#39;Thread.IsBackground&#39; to true, for background, or false to indicate a foreground thread.&lt;br /&gt;&lt;br /&gt;For example I have an applicaton that keeps a watch on my mailbox and alerts me whenever I receive a mail. For this purpose when the application starts, it starts a thread which keeps on polling to my mail server at a regular interval and checks for new mail. When I shut down this application, I would also want this thread to stop polling to the mail server. If this thread has been set as a background thread, it will be stopped automatically once I shut down the application. But, if this thread has been set as a foreground thread, then the application needs to have some logic in the method, which is running on this thread, to terminate when the application is requested to quit.</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/1392260413522904631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/1392260413522904631' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/1392260413522904631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/1392260413522904631'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/05/background-and-foreground-threads.html' title='Background and Foreground Threads'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-7235611533388610400</id><published>2007-04-30T12:15:00.000-07:00</published><updated>2007-06-16T23:54:04.459-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.net spell checker"/><category scheme="http://www.blogger.com/atom/ns#" term="Spell Checker"/><title type='text'>Spell Checker for HTML and ASP.NET pages</title><content type='html'>This is pretty old now, but I came across it few weeks back only. A fantastic add-on for Visual Studio, developed by &lt;a href=&quot;http://blogs.msdn.com/mikhailarkhipov/archive/2004/05/15/132684.aspx&quot; target=&quot;_new&quot;&gt;&lt;strong&gt;Mikhail Arkhipov&lt;/strong&gt;&lt;/a&gt;, the spell checker works in source view of HTML and ASP.NET design pages (aspx, ascx etc) and checks for spelling errors pretty intelligently.&lt;br /&gt;&lt;br /&gt;It actually integrates MS Office 2003 spell checker with Visual Studio to do the job. Once installed, it is available in the &#39;Tools&#39; menu in Visual Studio. When invoked from the menu, it checks the text and indicates spelling errors just like MS Word. However, it doesn&#39;t check for grammatical errors. It also provides suggestions for the correct word when the erroneous text is double clicked.&lt;br /&gt;&lt;br /&gt;The best part is that by default it looks for text strings which will show up on the UI and excludes other tags, attributes and commands. However this can be customized further by using rules.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://blogs.msdn.com/mikhailarkhipov/archive/2006/04/17/577471.aspx&quot; target=&quot;_new&quot;&gt;&lt;strong&gt;Read more about this on Mikhail&#39;s blog.&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Yesterday, Mikhail has also published a multilingual edition of this tool. I have not evaluated this one yet, I am happy using English only :). So you let me know how that one works!&lt;br /&gt;&lt;a href=&quot;http://www2.blogger.com/&quot; target=&quot;_new&quot;&gt;&lt;strong&gt;Find details about multilingual edition here.&lt;/strong&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/7235611533388610400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/7235611533388610400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7235611533388610400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7235611533388610400'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/04/spell-checker-for-html-and-aspnet-pages.html' title='Spell Checker for HTML and ASP.NET pages'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-7681664988237371868</id><published>2007-03-13T14:37:00.000-07:00</published><updated>2007-03-13T16:34:21.312-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dynamic SQL Queries"/><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL Server"/><title type='text'>MS SQL Server : The Game of Dynamic SQL</title><content type='html'>No matter how much we try to avoid dynamic sqls in our queries, there are times when we have no other choice than to use it. I have experienced that in general all programmers are not very well aware of the truths and myths related to dynamic sql queries and at times they end up implementing a solution that might not be the best one for their scenario.&lt;br /&gt;&lt;br /&gt;I am not going to write about the truths and myths of dynamic sql here, but will point you to this article &quot;&lt;a href=&quot;http://www.sommarskog.se/dynamic_sql.html&quot;&gt;The Curse and Blessings of Dynamic SQL&lt;/a&gt;&quot; by &lt;a href=&quot;http://www.sommarskog.se/index.html&quot;&gt;Erland Sommarskog&lt;/a&gt;, which I came across long back. The article is very informative and is updated with latest changes in SQL Server. There are other articles from Erland on the same web and they are also equally informative and exhaustive. Also, there are other very useful links on the site that are related to SQL Server. A site - must to be in the &#39;favorites list&#39; of any MS SQL programmer.</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/7681664988237371868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/7681664988237371868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7681664988237371868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/7681664988237371868'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/03/ms-sql-server-game-of-dynamic-sql.html' title='MS SQL Server : The Game of Dynamic SQL'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2776673078203408248</id><published>2007-03-09T19:45:00.000-08:00</published><updated>2007-03-15T00:29:42.340-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML Character Codes"/><title type='text'>HTML Character Codes</title><content type='html'>Today I posted an article on the &lt;a href=&quot;http://vbtocsharp.blogspot.com/index.html&quot; target=&quot;_new&quot;&gt;VB to C# blog&lt;/a&gt; about short circuiting in C# (&lt;a href=&quot;http://vbtocsharp.blogspot.com/2007/03/equivalent-of-short-circuiting-using.html&quot; target=&quot;_new&quot;&gt;read here&lt;/a&gt;). While previewing the post, I noticed that the pipe symbols are not appearing in the post. At first I thought that blogger should have converted it automatically to its HTML character code, but it didn&#39;t and they were just removed from the HTML. A search on Google took me to the complete dictionary of HTML Character Codes. Its really handy and helful for web developers. &lt;a href=&quot;http://www.tntluoma.com/sidebars/codes/&quot; target=&quot;_new&quot;&gt;Its here&lt;/a&gt;!</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2776673078203408248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2776673078203408248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2776673078203408248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2776673078203408248'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/03/html-character-codes.html' title='HTML Character Codes'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2298747311849658103.post-2756967855685579208</id><published>2007-03-02T22:33:00.000-08:00</published><updated>2007-03-02T22:37:31.878-08:00</updated><title type='text'>New blog on Vb to C#</title><content type='html'>People, I have just started a new blog on common question that people from VB background ask when they start programming in C#. Read it at &lt;a href=&quot;http://vbtocsharp.blogspot.com/&quot;&gt;http://vbtocsharp.blogspot.com/&lt;/a&gt;. This is inspired by my personal experiences about moving to C# from VB.</content><link rel='replies' type='application/atom+xml' href='http://sumantdubey.blogspot.com/feeds/2756967855685579208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2298747311849658103/2756967855685579208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2756967855685579208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2298747311849658103/posts/default/2756967855685579208'/><link rel='alternate' type='text/html' href='http://sumantdubey.blogspot.com/2007/03/new-blog-on-vb-to-c.html' title='New blog on Vb to C#'/><author><name>Sumant</name><uri>http://www.blogger.com/profile/11589744543544642315</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>