<?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: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-20395424</id><updated>2011-11-28T06:17:02.827+05:30</updated><category term='Share point'/><category term='Visual Studio'/><category term='Rename sharepoint content database'/><category term='MOSS'/><category term='WSS 2.0'/><category term='WSS'/><category term='WSS 3.0'/><category term='Sharepoint'/><category term='SQL Server'/><title type='text'>Kuldeep Deokule  -  .NET and Sharepoint</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-20395424.post-8792536232059285862</id><published>2009-05-05T23:50:00.005+05:30</published><updated>2009-05-06T00:42:13.560+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rename sharepoint content database'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Sharepoint - How to Rename Content Database Name of Live Sharepoint Site</title><content type='html'>&lt;p&gt;Sometimes it is requirement to change the name of Content database after setting complete Sharepoint site. If you've such requirement then following is a solution - &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open SQL Server Management Studio. &lt;/li&gt;&lt;li&gt;Go to Content Database node in Database explorer &lt;/li&gt;&lt;li&gt;Take the database Offline &lt;/li&gt;&lt;li&gt;Detach the database from Sharepoint using Sharepoint Central Administration. &lt;/li&gt;&lt;li&gt;Back up the database using SQL Server Management Studio &lt;/li&gt;&lt;li&gt;Restore the database using desired name &lt;/li&gt;&lt;li&gt;Re-attach the database to Sharepoint using Sharepoint Central Administration.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Complete.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-8792536232059285862?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/8792536232059285862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=8792536232059285862' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/8792536232059285862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/8792536232059285862'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2009/05/sharepoint-how-to-rename-content.html' title='Sharepoint - How to Rename Content Database Name of Live Sharepoint Site'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-7634822276420705642</id><published>2009-01-04T04:05:00.002+05:30</published><updated>2009-01-04T04:07:51.589+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='WSS 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='WSS 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='WSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Share point'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Sharepoint...</title><content type='html'>Very soon.... You will find posts related to Sharepoint, WSS 2.0, WSS 3.0 and MOSS .....&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-7634822276420705642?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/7634822276420705642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=7634822276420705642' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/7634822276420705642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/7634822276420705642'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2009/01/sharepoint.html' title='Sharepoint...'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-446346877531277370</id><published>2007-07-31T01:19:00.000+05:30</published><updated>2007-07-31T01:20:57.461+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Visual Studio 2008 Beta 2 is available now...</title><content type='html'>Visit following URL :-)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx"&gt;http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-446346877531277370?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/446346877531277370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=446346877531277370' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/446346877531277370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/446346877531277370'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2007/07/visual-studio-2008-beta-2-is-available.html' title='Visual Studio 2008 Beta 2 is available now...'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-6537612545374173678</id><published>2007-05-11T23:23:00.000+05:30</published><updated>2007-05-12T01:01:24.020+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Microsoft SQL Server "Katmai" (Next Release after SQL Server 2005)</title><content type='html'>Upcoming version of SQL Server 2005, code name &lt;span style="font-weight: bold;"&gt;"Katmai" will be released in 2008&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Microsoft stated:&lt;br /&gt;Katmai will help companies access and manage rapidly increasing volumes of data for mission-critical applications, increase their ability to better understand the organization with business insight, and reduce difficulties associated with managing complex systems. SQL Server “Katmai” builds on the success of SQL Server 2005 as a proven platform that is crucial to the completion of business projects, delivering increased functionality to a comprehensive range of applications from the desktop to the data center.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ted Kummert, corporate vice president of the Data and Storage Platform Division at Microsoft, said:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 204);"&gt;“We developed SQL Server with the goal of providing a data management and analysis platform for all companies regardless of size or budget, With the release of ‘Katmai,’ we’ll take the next step on our data platform vision by delivering a comprehensive and integrated business intelligence solution. Expanding the usability of data across businesses will give customers more value for their IT investments.”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Few Important links for Katmai:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx"&gt;http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/presspass/press/2007/may07/05-09KatmaiPR.mspx"&gt;http://www.microsoft.com/presspass/press/2007/may07/05-09KatmaiPR.mspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.microsoft.com/download/B/F/2/BF24C54E-5635-4C79-AFB4-0C3F840E79F4/Katmai_datasheet_Final.pdf"&gt;http://download.microsoft.com/download/B/F/2/BF24C54E-5635-4C79-AFB4-0C3F840E79F4/Katmai_datasheet_Final.pdf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-6537612545374173678?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/6537612545374173678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=6537612545374173678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/6537612545374173678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/6537612545374173678'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2007/05/microsoft-sql-server-katmai-next.html' title='Microsoft SQL Server &quot;Katmai&quot; (Next Release after SQL Server 2005)'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-116663727889581111</id><published>2006-12-20T23:23:00.000+05:30</published><updated>2007-02-09T12:31:54.210+05:30</updated><title type='text'>System.Collections.Generic</title><content type='html'>Generic is a new feature introduced in C#. It is nothing but a type-safe collection. Generic collection can store only items that are compatible with argument type specified in declaration. Moreover generic collection works in similar way like non-generic collection, only the difference is to mixed types are not allowed. Non-generic collections are useful in case if you want to mix-up unrelated data types. List, Dictionary are example of C# generics.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;&lt;br /&gt;class GenericDemo&lt;br /&gt; {&lt;br /&gt;     public static void Main()&lt;br /&gt;       {  &lt;br /&gt;List&lt;int&gt; lstInteger =new List&lt;int&gt;();&lt;br /&gt;&lt;br /&gt;//Add elements to generic integer list&lt;br /&gt;//Correct entry as per generic&lt;br /&gt;lstInteger.Add(1);&lt;br /&gt;lstInteger.Add(2);&lt;br /&gt;lstInteger.Add(3);&lt;br /&gt;lstInteger.Add(4);&lt;br /&gt;lstInteger.Add(5); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Code exception due to following wrong entry&lt;br /&gt;   &lt;span style="font-weight: bold;"&gt;lstInteger.Add(‘Kuldeep’);&lt;/span&gt;&lt;br /&gt;        }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Because of type-safety principle, in above example it will throw error at last lstInteger.Add(‘Kuldeep’) statement. Current declaration for generic is an integer and at last statement you'r trying to insert is a string type. So it will raise exception.&lt;/int&gt;&lt;/int&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-116663727889581111?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/116663727889581111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=116663727889581111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116663727889581111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116663727889581111'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/12/systemcollectionsgeneric.html' title='System.Collections.Generic'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-116646983900446602</id><published>2006-12-19T00:51:00.000+05:30</published><updated>2007-02-06T01:23:36.430+05:30</updated><title type='text'>The Mutex (C# - Threading)</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Mutex is used to set exclusive access on shared resources in multi-thread programs. This means only one thread can access shared object at a time. A mutex is a perfect synchronization mechanism in C# threading.&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Consider a example of when two threads accessing same system resources like files, system registry, Environment variables, etc. And you want to put exclusive access in multithreaded environment on shared resources then this can be achieved using mutex.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1&gt;&lt;span style="font-size:85%;"&gt;System.Thread.Mutex Class:&lt;/span&gt;&lt;/h1&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Above class supports Mutex.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;To acquire Mutex call WaitOne()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;i&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;To release Mutex call ReleaseMutex()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;using System.Threading;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;Mutex objMutex = new Mutex();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;//Some code goes here&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;objMutex.WaitOne();&lt;span style="font-size:0;"&gt; &lt;/span&gt;//Acquire&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;//Code to get exclusive access&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;//.....&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;objMutex.ReleaseMutex(); //Release&lt;/span&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Mutex Code Snippet:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;using System.Threading;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;class FileAccess &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;public static Mutex mtx = new Mutex();&lt;span style="font-size:0;"&gt; &lt;/span&gt;//Mutex variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//Method to read/write in File&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;class FirstThread&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;public Thread t1; &lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//Uses above class method&lt;span style="font-size:0;"&gt; &lt;/span&gt;to R/W file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FirstThread()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;t1= new Thread(this.CallFileWrite);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;t1.Start();&lt;span style="font-size:0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;void CallFileWrite() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FileAccess.mtx.WaitOne();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;Console.WriteLine(“t1: In Mutex ”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//File writing code ......&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;Console.WriteLine(“t1: Out Mutex ”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FileAccess.mtx.ReleaseMutex();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;class SecondThread&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;public Thread t2; &lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//Uses above class method&lt;span style="font-size:0;"&gt; &lt;/span&gt;to R/W file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;SecondThread()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;t2= New Thread(this.CallFileWrite);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;t2.Start();&lt;span style="font-size:0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;void CallFileWrite() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FileAccess.mtx.WaitOne();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;Console.WriteLine(“t2: In Mutex ”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;//File writing code ......&lt;span style="font-size:0;"&gt; &lt;/span&gt;for same file in t1 thread&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;Console.WriteLine(“t2: Out Mutex ”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FileAccess.mtx.ReleaseMutex();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;class MutexExample&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;void main()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;FirstThread mFt1 = new FirstThread();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;SecondThread mSt2 = new SecondThread();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;MFt1.t1.Join();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;MSt2.t2.Join();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;}&lt;span style="font-size:0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-116646983900446602?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/116646983900446602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=116646983900446602' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116646983900446602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116646983900446602'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/12/mutex-c-threading.html' title='The Mutex (C# - Threading)'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-116646777161650313</id><published>2006-12-19T00:16:00.000+05:30</published><updated>2007-02-09T00:47:09.783+05:30</updated><title type='text'>Exception Handling in C#</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Exception class is used to handle errors occurred during execution of code. Following are public members of exception class:&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;HelpLink :&lt;/span&gt; Used to set help link for exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;InnerException: &lt;/span&gt;Gets the exception instance that caused the current exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;Message:&lt;/span&gt; Exception description.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;Source: &lt;/span&gt;Object that caused exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;StackTrace:&lt;/span&gt; Call stack for occurred exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;span style="FONT-STYLE: italic"&gt;TargetSite: &lt;/span&gt;Method that throws the exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Simple exception handling code block:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;// Code statements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;catch(Type x)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;// handling of the exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;finally&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;//cleanup code (if any)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Note: Catch block is optional in C#. And Finally block always execute.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Multiple Catch Blocks: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;(All good Programs must be able to uniformly handle errors that occur during code execution.)&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Your code goes here&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;catch(DivideByZeroException dz)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Divide by zero exceptions will be handled here.&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;catch(OutOfMemoryException oe)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Out of memory exceptions will be handled here.&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;catch(NullReferenceException ee)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Null refernce exceptions will be handled here.&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;catch(Exception ex)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Unknown exceptions from above 3 types will be handled here.&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;finally&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;//Always executes at the end.&lt;span style="font-size:+0;"&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:'Courier New';font-size:10;"&gt;&lt;span style="font-size:+0;"&gt;&lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;/span&gt;&lt;/b&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Some Other Exception types:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;IndexOutOfRangeException (Occures in looping when Index is out of range)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;InvalidOperationException (Thrown by methods when in an invalid state.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;ArgumentNullException (Thrown by methods that do not allow an argument to be null.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;ComException (COM components) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;InvalidCastException&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;ArithmeticException&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;SqlException (For DB related exceptions)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;/span&gt;&lt;/b&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;ApplicationException Class: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;If you are designing an application that needs to create its own exceptions, derive from the ApplicationException class. ApplicationException extends Exception class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;To know more about structured and ApplicatioException handling goto &lt;a href="http://www.devcity.net/Articles/284/1/article.aspx"&gt;http://www.devcity.net/Articles/284/1/article.aspx&lt;/a&gt; (This is supported by Microsoft)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;Best practices to handling exceptions: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;URL:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconbestpracticesforhandlingexceptions.asp"&gt;&lt;span style="font-family:Tahoma;font-size:10;"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconbestpracticesforhandlingexceptions.asp&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-116646777161650313?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/116646777161650313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=116646777161650313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116646777161650313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116646777161650313'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/12/exception-handling-in-c.html' title='Exception Handling in C#'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-116093130409142802</id><published>2006-10-15T22:23:00.000+05:30</published><updated>2006-11-30T08:09:33.230+05:30</updated><title type='text'>Building Easy Navigation Using the ASP.NET 2.0 MultiView and Wizard Controls</title><content type='html'>ASP.NET 2.0 introduced over 50 new controls including the MultiView and &lt;span class="codeintext"&gt;Wizard&lt;/span&gt; controls. In this article Kuldeep Deokule will show you how to use the &lt;span class="codeintext"&gt;MultiView&lt;/span&gt; and &lt;span class="codeintext"&gt;Wizard&lt;/span&gt; controls to build an easy to navigate web application. He will explain the use of the &lt;span class="codeintext"&gt;MultiView&lt;/span&gt; control using an online survey application and &lt;span class="codeintext"&gt;Wizard&lt;/span&gt; control using a User Registration application. He will also show how the use of these two controls greatly reduces the amount of code required to be written, as compared to previous versions of ASP.NET. &lt;a href="http://www.asptoday.com/Content.aspx?id=2438"&gt;More... &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-116093130409142802?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/116093130409142802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=116093130409142802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116093130409142802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/116093130409142802'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/10/building-easy-navigation-using-aspnet.html' title='Building Easy Navigation Using the ASP.NET 2.0 MultiView and Wizard Controls'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115980842284651301</id><published>2006-10-02T22:27:00.000+05:30</published><updated>2006-10-02T22:32:35.576+05:30</updated><title type='text'>The Development Tools for .NET Framework 3.0 : " Orcas "</title><content type='html'>&lt;font&gt;The Development Tools for .NET Framework 3.0 (SEPTEMBER CTP) provides developers with support for building .NET Framework 3.0 applications using the final released version of Visual Studio 2005. These tools are provided as an early preview of technology being considered for the Orcas release of Visual Studio.&lt;br /&gt;&lt;br /&gt;Visit URL for download Orcas:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cc77abfa-a000-48d0-98c9-4ae083033d09&amp;DisplayLang=en"&gt; http://www.microsoft.com/downloads/details.aspx?FamilyID=cc77abfa-a000-48d0-98c9-4ae083033d09&amp;amp;DisplayLang=en&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115980842284651301?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115980842284651301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115980842284651301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115980842284651301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115980842284651301'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/10/development-tools-for-net-framework-30.html' title='The Development Tools for .NET Framework 3.0 : &quot; Orcas &quot;'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115878039834615242</id><published>2006-09-21T00:55:00.000+05:30</published><updated>2006-09-21T01:03:56.330+05:30</updated><title type='text'>Why SOA?</title><content type='html'>1.    Service oriented&lt;br /&gt;2.    Agile development&lt;br /&gt;3.    Removes complexity&lt;br /&gt;4.    Supplies common programming interface and interoperability protocol&lt;br /&gt;5.    Easy up-gradation&lt;br /&gt;6.    Lead towards automated business automation&lt;br /&gt;7.    Based on XML&lt;br /&gt;8.    Web service platform&lt;br /&gt;9.    Reusability&lt;br /&gt;10.    Loosely coupled&lt;br /&gt;11.    Ease in integration process.&lt;br /&gt;12.    Able to leverage existing application and infrastructure&lt;br /&gt;13.    Less maintenance cost involved.&lt;br /&gt;14.    Reduces hardware cost.&lt;br /&gt;15.    Leverage existing development skills&lt;br /&gt;16.    Faster application development.&lt;br /&gt;17.    Eliminate redundant systems and architecture.&lt;br /&gt;18.    Reduce project risk&lt;br /&gt;19.    Secured.&lt;br /&gt;20.    Flexibility&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115878039834615242?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115878039834615242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115878039834615242' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115878039834615242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115878039834615242'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/09/why-soa.html' title='Why SOA?'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115722590454778288</id><published>2006-09-03T01:07:00.000+05:30</published><updated>2006-09-03T01:08:42.636+05:30</updated><title type='text'>Brief on SOA:</title><content type='html'>&lt;p class="MsoNormal"&gt;The buzzword SOA means Service Oriented Architecture. SOA is loosely coupled in nature. It based on SOAP (Simple Object Access Protocol). As per World Wide Web Consortium (W3C) SOA is 'A set of components which can be invoked, and whose interface descriptions can be published and discovered'.&lt;/p&gt;    &lt;span style=";font-family:&amp;quot;;font-size:100%;"  &gt;By using SOA architecture it is possible to develop abstract, reusable, relevant, standard, consumable and standardized solutions.&lt;/span&gt;   &lt;p class="MsoNormal"&gt;SOA plays major role in enterprise level integration. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115722590454778288?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115722590454778288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115722590454778288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115722590454778288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115722590454778288'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/09/brief-on-soa_03.html' title='Brief on SOA:'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115713827249176570</id><published>2006-09-02T00:46:00.000+05:30</published><updated>2007-01-28T13:46:24.483+05:30</updated><title type='text'>Article: Data Binding and Static Items in List Controls</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Abstract:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this article Kuldeep Deokule shows you how to add static items while implementing data binding on list controls.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Introduction:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ListControl is the abstract class for all list type controls (System.Web.UI.WebControls.ListControl). These list type controls are CheckboxList, DropdownList, Listbox, RadiobuttonList. The properties of the ListControl class allow you to specify the source of the data to populate the list controls. Use the DataSource property to specify the data source to bind to the list controls. Consider the scenario, you’ve a DropdownList control on a web form that is binded to datasource control like SqlDataSource or ObjectDataSource. DropdownList will populate with list of newsletters.&lt;br /&gt;&lt;br /&gt;Now, as a good developer you’ve added functionality to select multiple items in DropdownList control by holding control key down. But suppose some user want to receive all newsletters. If you say to user, select all newsletters one by one by holding control key down. This will become very tedious process for any user. User will hate to do this task. So now you want to add one static item “Send All Newsletters” as a top item in the DropdownList. So if user wants to receive all newsletters, user will just select one item. One more design point is on a web page Newsletters DropdownList field is an optional selection for user. So it is impossible to create a DropdownList that doesn’t have a selected item. At least one item in DropdownList control is always selected. So you decided to add one more item in DropdownList control as “Select”. This will be top and default item in DropdownList control.&lt;br /&gt;&lt;br /&gt;But due to data binding limitation, “Select” and “Send All Newsletters” list items will be destroyed when you run the web page. Only fetched newsletters from database will be available in DropdownList control. So how to solve this problem?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;Data source controls make developers life easier but in some case they cannot go beyond bounds specified. It is a limitation of data source controls that they destroy static items created earlier. Most websites need static items in list type controls.&lt;br /&gt;&lt;br /&gt;To work out with this problem some developers like to add static items to database directly. But it is not a good idea. These items will unnecessarily reflect in every report related to newsletters table.&lt;br /&gt;&lt;br /&gt;Some experienced developers put UNION query in SelectCommand of the data source controls like shown below:&lt;br /&gt;&lt;br /&gt;SELECT ‘(Send All Newsletters)’ as AllNewsLetters&lt;br /&gt;UNION&lt;br /&gt;SELECT DISTINCT Newsletters FROM Newsletters&lt;br /&gt;&lt;br /&gt;Again above UNION query is not a good idea. By doing this you are adding presentation logic details to data layer, which is not a good programming practice.&lt;br /&gt;&lt;br /&gt;It is a weakness of data binding model that you cannot add static items. But static items are required in many cases in list type controls. So what is a good solution to solve above problem?   Just take a look at following steps to solve the problem:&lt;br /&gt;&lt;br /&gt;1.    Add DropdownList control to web form.&lt;br /&gt;2.    Do not set any data source control to it through property window or using smart tag.&lt;br /&gt;3.    Add Page_Load event in code behind file as show below:&lt;br /&gt;&lt;br /&gt;Private Sub Page_Load(ByVal sender As System.Object, _&lt;br /&gt;ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;        If Not IsPostBack Then&lt;br /&gt;            'Set up the data binding.&lt;br /&gt;            NewsletterList.DataSource = SqlDataSource1&lt;br /&gt;            NewsletterList.DataTextField = "newsletter"&lt;br /&gt;            NewsletterList.DataValueField = "id"&lt;br /&gt;            NewsletterList.DataBind()&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;            'Add following items and select the first item by default.&lt;br /&gt;            NewsletterList.Items.Insert(0, "Select")&lt;br /&gt;            NewsletterList.Items.Insert(1, "Send All Newsletters")&lt;br /&gt;            NewsletterList.SelectedIndex=0&lt;br /&gt;        End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Now browse the web page. All static and dynamic items are present in DropdownList control. Insert method with position value add items in DropdownList control at appropriate locations. Code line NewsletterList.SelectedIndex=0 cause to select top item as a default item for DropdownList control. Instead of SqlDataSource control you can also use ObjectDataSource control for data binding purpose. Code will remain same for both data source controls only DataSource attribute will change to respective control name.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;AppendDataBoundItems Property in ASP.NET 2.0:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ASP.NET 2.0 exposes AppendDataBoundItems property for all list type controls. This property make this task little easier. If AppendDataBoundItems property is set to true for DropdownList control. Then added static items are not destroyed at the time of page load.&lt;br /&gt;Just take look at following code:&lt;br /&gt;&lt;br /&gt;Private Sub Page_Load(ByVal sender As System.Object, _&lt;br /&gt;ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;        If Not IsPostBack Then&lt;br /&gt;            'Set up the data binding.&lt;br /&gt;           &lt;br /&gt;        NewsletterList.Items.Add("Select")      &lt;br /&gt;        NewsletterList.Items.Add("Send All Newsletters")&lt;br /&gt;        NewsletterList.AppendDataBoundItems = True&lt;br /&gt;        NewsletterList.DataSource = SqlDataSource1&lt;br /&gt;            NewsletterList.DataTextField = "newsletter"&lt;br /&gt;            NewsletterList.DataValueField = "id"&lt;br /&gt;            NewsletterList.DataBind()&lt;br /&gt;    &lt;br /&gt;            NewsletterList.SelectedIndex=0&lt;br /&gt;        End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you set AppendDataBoundItems property to False then all static items will be destroyed. Value of AppendDataBoundItems is stored in view state.&lt;br /&gt; So AppendDataBoundItems will do all magic for us. AppendDataBoundItems is only available in .NET framework 2.0. So for ASP.NET 1.x this solution will not work.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Conclusion:&lt;/span&gt;&lt;br /&gt;In this way we can go beyond the limits of data source controls. Above solutions will help you to add static items to data bound list type controls.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115713827249176570?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115713827249176570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115713827249176570' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115713827249176570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115713827249176570'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/09/article-data-binding-and-static-items.html' title='Article: Data Binding and Static Items in List Controls'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115272071165543576</id><published>2006-07-12T21:38:00.000+05:30</published><updated>2006-07-12T21:41:52.260+05:30</updated><title type='text'></title><content type='html'>Hello Everybody,&lt;br /&gt;&lt;br /&gt;New blog is started on DNS. Please visit following link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dotnetslackers.com/community/blogs/kuldeepdeokule/"&gt;http://dotnetslackers.com/community/blogs/kuldeepdeokule/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4523/2042/1600/ad.button.png"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/blogger/4523/2042/320/ad.button.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115272071165543576?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115272071165543576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115272071165543576' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115272071165543576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115272071165543576'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/07/hello-everybody-new-blog-is-started-on.html' title=''/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115212437114356808</id><published>2006-07-06T00:02:00.000+05:30</published><updated>2006-07-06T00:03:03.793+05:30</updated><title type='text'>Download presentations in TechEd 2006 !!!</title><content type='html'>&lt;p&gt;To download presentations in TechEd 2006 visit following links:&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.wintoolzone.com/showpage.aspx?url%3dhttp://www.wintoolzone.com/Presentations.aspx"&gt;http://www.wintoolzone.com/showpage.aspx?url%3dhttp://www.wintoolzone.com/Presentations.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.wintoolzone.com/blog/?cat=18"&gt;http://www.wintoolzone.com/blog/?cat=18&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.wintoolzone.com/blog/?cat=25"&gt;http://www.wintoolzone.com/blog/?cat=25&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115212437114356808?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115212437114356808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115212437114356808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115212437114356808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115212437114356808'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/07/download-presentations-in-teched-2006_06.html' title='Download presentations in TechEd 2006 !!!'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115035925774418023</id><published>2006-06-15T13:43:00.000+05:30</published><updated>2006-06-15T13:44:18.086+05:30</updated><title type='text'>What is in .NET 3.0?</title><content type='html'>Following things are present in .NET 3.0:&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt;   &lt;span style="font-weight: bold;"&gt;.NET Framework 2.0&lt;/span&gt;&lt;br /&gt;          Common Language Runtime (CLR)&lt;br /&gt;          Base Class Library&lt;br /&gt;          ADO.NET 2.0, ASP.NET 2.0, Windows Forms 2.0&lt;br /&gt;          VB 8.0 and C# 2.0&lt;br /&gt; &lt;span style="font-weight: bold;"&gt; 2.&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;WinFX&lt;/span&gt;&lt;br /&gt;          Windows Communication Foundation (WCF)&lt;br /&gt;          Windows Presentation Foundation (WPF)&lt;br /&gt;          Windows Workflow Foundation (WF)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   3.&lt;/span&gt;  &lt;span style="font-weight: bold;"&gt;InfoCard&lt;/span&gt;&lt;br /&gt;          Renamed to Windows CardSpace (WCS)&lt;br /&gt;&lt;br /&gt;WinFX is useful to build SOA(Sevice Oriented Architecture), n-tier, etc...&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;IMP: &lt;/span&gt;.NET 2.0 Framework and compilers are unchanged, so your existing code will continue to run as it exists today in .NET 3.0&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115035925774418023?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115035925774418023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115035925774418023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115035925774418023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115035925774418023'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/06/what-is-in-net-30.html' title='What is in .NET 3.0?'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-115017607103111182</id><published>2006-06-13T10:47:00.000+05:30</published><updated>2006-06-13T10:51:15.563+05:30</updated><title type='text'>.NET Framework 3.0</title><content type='html'>.NET Framework 3.0!&lt;br /&gt;&lt;br /&gt;.NET Framework 3.0 now is a name for WinFX. &lt;a href="http://blogs.msdn.com/somasegar/archive/2006/06/09/624300.aspx"&gt;To know more click here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-115017607103111182?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/115017607103111182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=115017607103111182' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115017607103111182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/115017607103111182'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/06/net-framework-30.html' title='.NET Framework 3.0'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114993045748948605</id><published>2006-06-10T14:34:00.000+05:30</published><updated>2006-06-10T14:45:14.033+05:30</updated><title type='text'>Building a 3-tier Architecture Using the ObjectDataSource in ASP.NET 2.0</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Abstract&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ASP.NET 2.0 has introduced a series of new data source controls that simplify the life of developers. Developers can now connect to a database and perform CRUD operations with a minimal amount of code or in some cases no code at all. To enable developers to insert business logic into their applications the new ObjectDataSource control is provided in ASP.NET 2.0. In this article Kuldeep Deokule will use an example Employee listing application to show how to incorporate business logic in a 3 tier application using the new ObjectDataSource control. &lt;a href="http://www.asptoday.com/Content.aspx?id=2429"&gt;more...&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114993045748948605?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114993045748948605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114993045748948605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114993045748948605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114993045748948605'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/06/building-3-tier-architecture-using.html' title='Building a 3-tier Architecture Using the ObjectDataSource in ASP.NET 2.0'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114961606216699987</id><published>2006-06-06T23:16:00.000+05:30</published><updated>2006-06-06T23:17:42.860+05:30</updated><title type='text'>What is Obfuscation?</title><content type='html'>Obfuscation is used to lock your .NET application binary. Here locking is not done using any encryption algorithm. Microsoft .NET platform offers greater level of flexibility to develop applications. But reverse engineering of the source code is also easily possible.&lt;br /&gt;Microsoft .NET platform uses MSIL (Microsoft Intermediate Language) to produce executable code. This MSIL is higher level in nature than machine code.&lt;br /&gt;&lt;br /&gt;One can use a de-compiler program to reverse engineer .NET applications. That means your source code is not safe. Here obfuscation technique comes in focus. To stop reverse engineering of .NET applications obfuscation can be used. It is not a encryption technique. Obfuscation convert meaningful terms in source code to non-meaningful. For example your source code contains variables named intEmployeeId, intNoofChildern, etc then these variable names converted to a, b, etc.&lt;br /&gt;&lt;br /&gt;So due to obfuscation implementation source code becomes difficult to understand. Obfuscation is not a 100% proof technique to stop reverse engineering on your source code. But it makes your .NET application source code more secure.&lt;br /&gt;&lt;br /&gt;Obfuscation technique even renames the names of methods, properties, functions, procedures, and events to meaning-less names. At the same time obfuscation take care of application’s performance. It is not affected due to obfuscation implementation. It keep your application intact.&lt;br /&gt;&lt;br /&gt;Microsoft Visual Studio provides Dotfuscator tool to perform obfuscation since it 2003 release.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114961606216699987?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114961606216699987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114961606216699987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114961606216699987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114961606216699987'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/06/what-is-obfuscation.html' title='What is Obfuscation?'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114746210138907221</id><published>2006-05-13T00:57:00.000+05:30</published><updated>2006-05-13T00:58:26.436+05:30</updated><title type='text'>Steps to Configure SQL Cache Invalidation</title><content type='html'>&lt;span style="font-size:85%;"&gt;Note: SQL Cache Invalidation feature works with only SQL Server 7/2000/2005. Not works with databases like Oracle, Ms- Access.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    To configure SQL cache invalidation two steps are required, first configure SQL server to cache invalidation and second add configuration information in “caching” section under “system.web” in web.config file.&lt;br /&gt;&lt;br /&gt;    Following are the important steps to configure SQL server:&lt;br /&gt;&lt;br /&gt;    I’ve used database named “Payroll”. In payroll, I am going to set SQL cache validation on “Employee” table which contains detailed information of working employees.&lt;br /&gt;&lt;br /&gt;    1. Open Visual Studio .NET 2005 command prompt. (By navigating to Microsoft Visual Studio 2005 -&gt; Visual Studio Tools -&gt; Visual Studio .NET 2005 Command Prompt)&lt;br /&gt;    2. Use aspnet_regsql tool to enable SQL cache invalidation. The aspnet_regsql tool is present in your Windows\Microsoft.NET\Framework\[version] folder. Use command prompt to navigate for this folder.&lt;br /&gt;    3. To enable SQL cache invalidation on payroll table in SQL Server issue following command.&lt;br /&gt;&lt;br /&gt;    aspnet_regsql -E -d Payroll –ed&lt;br /&gt;&lt;br /&gt;    Press enter to execute the command.&lt;br /&gt;&lt;br /&gt;    Following is the information about options used with aspnet_regsql command:&lt;br /&gt;    -E: Used to enable integrated security when connecting to your database server.&lt;br /&gt;    -d: Used to select the Payroll database.&lt;br /&gt;    -ed: Used to enable the database for SQL Cache Invalidation.&lt;br /&gt;    payroll: It is the name of database.&lt;br /&gt;&lt;br /&gt;    After successful execution of an above command AspNet_SqlCacheTablesForChangeNotification, new table is added to the payroll database. This table contains a list of all of the database tables that are enabled for SQL cache invalidation. Some new stored procedures are also added to the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    4. Now select a table in payroll database for SQL cache invalidation. Let’s select “Employee” table.&lt;br /&gt;&lt;br /&gt;    aspnet_regsql -E -d Payroll -t Employee –et&lt;br /&gt;&lt;br /&gt;    Following is the information about option used in above commands:&lt;br /&gt;    -t: Used to select a database table. In my case it is Employee table.&lt;br /&gt;    -et: Used to enable a database table for SQL cache invalidation.&lt;br /&gt;&lt;br /&gt;    To enable cache invalidation for multiple tables re-execute this command for each database table.&lt;br /&gt;    This command adds trigger to database table. Trigger fires whenever changes are occurred in that table.&lt;br /&gt;&lt;br /&gt;    By doing above steps configuration at SQL server is complete here. But second part is still remaining that is adding some entries in web.config file without this caching won’t work even if you configured it for SQL Server.&lt;br /&gt;&lt;br /&gt;    File Name: web.config&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;lt;configuration&gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;connectionStrings&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;add name="PayrollConnection" &lt;br /&gt;&lt;br /&gt;      connectionString="Server=localhost;Database=Payroll" /&gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;/connectionStrings&gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;system.web&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;caching&gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;sqlCacheDependency enabled="true"&gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;databases&gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;add name="Payroll"&lt;br /&gt;&lt;br /&gt;            connectionStringName="PayrollConnection"&lt;br /&gt;&lt;br /&gt;            pollTime="50000" /&gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;/databases&gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;/sqlCacheDependency&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;/caching&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;/system.web&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/configuration&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114746210138907221?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114746210138907221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114746210138907221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114746210138907221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114746210138907221'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/05/steps-to-configure-sql-cache_13.html' title='Steps to Configure SQL Cache Invalidation'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114616277661700085</id><published>2006-04-28T00:01:00.000+05:30</published><updated>2006-04-28T00:02:57.476+05:30</updated><title type='text'>Difference between SqlDataSource and ObjectDataSource</title><content type='html'>Following is a difference between SqlDataSource and ObjectDataSource:&lt;br /&gt;1.    SqlDataSource is two-tier in nature where as ObjectDataSource supports three-tier architecture.&lt;br /&gt;2.    SqlDataSource requires very small amount of coding to connect with database. For ObjectDataSource more coding is required to build data access class.&lt;br /&gt;3.    SqlDataSource not support full encapsulation. ObjectDataSource supports full encapsulation.&lt;br /&gt;4.    SqlDataSource requires complete connection string to connect with database. ObjectDataSource exposes TypeName attribute that is a name of middle layer class may used to perform database related operations. Data access class must be placed in App_Code directory.&lt;br /&gt;5.    Caching is same for both controls but ObjectDataSource control fires NotSupported exception if return type of SelectMethod is other than DataSet.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114616277661700085?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114616277661700085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114616277661700085' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114616277661700085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114616277661700085'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/04/difference-between-sqldatasource-and.html' title='Difference between SqlDataSource and ObjectDataSource'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114374333255002940</id><published>2006-03-30T23:48:00.000+05:30</published><updated>2006-03-30T23:58:53.380+05:30</updated><title type='text'>How to: Get list of table names from MS Access Database in ASP.NET 2.0</title><content type='html'>To get a list of table names from database use following code:&lt;br /&gt;&lt;br /&gt;        Dim sConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\sample.mdb"&lt;br /&gt;        Dim olecon As New OleDbConnection(sConn)&lt;br /&gt;        olecon.Open()&lt;br /&gt;        Dim tblrestrictions As String() = New String() {Nothing, Nothing, Nothing, &lt;span style="font-weight: bold;"&gt;"TABLE"&lt;/span&gt;}&lt;br /&gt;        Dim dt As DataTable = &lt;span style="font-weight: bold;"&gt;olecon.GetSchema("tables", tblrestrictions)&lt;/span&gt;&lt;br /&gt;        olecon.Close()&lt;br /&gt;        GridView1.DataSource = dt&lt;br /&gt;        GridView1.DataBind()&lt;br /&gt;&lt;br /&gt;Restrictions are a string array in the following format:&lt;br /&gt;{TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE}.&lt;br /&gt;&lt;br /&gt;Using ADOX and Msysobjects works fine with windows applications but may problematic for web apps[permission related problems].   If you use Msysobjects directly in query, following error will be displayed:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Record(s) cannot be read; no read permission on 'MSysObjects'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So it's better to use GetSchema with restriction.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114374333255002940?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114374333255002940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114374333255002940' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114374333255002940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114374333255002940'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/03/how-to-get-list-of-table-names-from-ms.html' title='How to: Get list of table names from MS Access Database in ASP.NET 2.0'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114374269631399309</id><published>2006-03-30T23:22:00.000+05:30</published><updated>2006-03-30T23:48:17.576+05:30</updated><title type='text'>How To - ExecuteScalar ()</title><content type='html'>&lt;span style="font-weight: bold;"&gt;When To Use:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.&lt;br /&gt;&lt;br /&gt;ExecuteScalar is a fast way to fetch one value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Results:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If ExecuteScalar return 0 (zero) means no similar record found in database (According to condition is defined in WHERE clause).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Code Snippets:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Snippet 1:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Scenario: Avoid entry of duplicate user names by using ExecuteScalar method.&lt;br /&gt;&lt;br /&gt;    DBConnection.Open()&lt;br /&gt;    SQLString = "SELECT Count(*) FROM tblLogin " &amp; _&lt;br /&gt;      WHERE username = '" &amp; txtUserName.Text &amp;amp; "'"&lt;br /&gt;    DBCommand = New OleDbCommand(SQLString, DBConnection)&lt;br /&gt;    If DBCommand.ExecuteScalar() &lt;&gt; 0 Then&lt;br /&gt;      lblError.Text = "Sorry. User Name Already Present."&lt;br /&gt;    End If&lt;br /&gt;    DBConnection.Close()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Snippet 2:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Scenario: Check whether User Name and Password is present in database by using ExecuteScalar method.&lt;br /&gt;&lt;br /&gt;DBConnection.Open()&lt;br /&gt;    SQLString = "SELECT Count(*) FROM tblLogin " &amp; _&lt;br /&gt;      WHERE username = '" &amp; txtUserName.Text &amp;amp; "' AND Password='" &amp; txtPassword.Text &amp;amp; "'"&lt;br /&gt;    DBCommand = New OleDbCommand(SQLString, DBConnection)&lt;br /&gt;    If DBCommand.ExecuteScalar() &lt;&gt; 0 Then&lt;br /&gt;            'IF condition satisfied means User Name and Password is correct.&lt;br /&gt;            ' write code below here.&lt;br /&gt;    End If&lt;br /&gt;    DBConnection.Close()&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Conclusion:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use to get result of Queries like count, min, max...&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114374269631399309?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114374269631399309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114374269631399309' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114374269631399309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114374269631399309'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/03/how-to-executescalar.html' title='How To - ExecuteScalar ()'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114322218814101570</id><published>2006-03-24T23:11:00.000+05:30</published><updated>2006-03-24T23:13:08.493+05:30</updated><title type='text'>Solution: AccessDataSource control generates error for autoincrement data type field while Inserting a record.</title><content type='html'>Following error you may faced:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;"You tried to assign the Null value to a variable that is not a Variant data type. "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;When you use AccessDataSource control to insert a record in database. If one of field type is autoincrement then above error will shoot on the screen.&lt;br /&gt;&lt;br /&gt;Normally you remove autoincrement data type fields from InsertCommand. This creates another problem. You don't face any error, but data is not saved in respective fields in database.&lt;br /&gt;&lt;br /&gt;So here is a solution.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;First&lt;/span&gt;, remove autoincrement field from &lt;span style="font-style: italic;"&gt;InsertCommand&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Second&lt;/span&gt;, Important step, remove autoincrement field line from &lt;span style="font-style: italic;"&gt;InsertParameters&lt;/span&gt; section of AccessDataSource control.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114322218814101570?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114322218814101570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114322218814101570' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114322218814101570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114322218814101570'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/03/solution-accessdatasource-control.html' title='Solution: AccessDataSource control generates error for autoincrement data type field while Inserting a record.'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-114054101786924935</id><published>2006-02-21T22:26:00.000+05:30</published><updated>2006-02-21T22:26:58.423+05:30</updated><title type='text'>Disclaimer</title><content type='html'>The views expressed on this weblog are mine and do not necessarily reflect the views of my employer.&lt;br /&gt;&lt;br /&gt;All postings are provided &lt;span style="font-weight: bold;"&gt;"AS IS"&lt;/span&gt; with no warranties, and confer no rights.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-114054101786924935?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/114054101786924935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=114054101786924935' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114054101786924935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/114054101786924935'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/02/disclaimer.html' title='Disclaimer'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113991296658792431</id><published>2006-02-14T15:56:00.000+05:30</published><updated>2006-02-14T16:02:46.350+05:30</updated><title type='text'>UPGRADE ASP.NET 2.0: New Code Behind Model</title><content type='html'>In ASP.NET 1.x, the code-behind file was a class file that inherited the System.Web.UI.Page class, and the web page inherited the code-behind file. As a result, all the controls that appeared on the page were declared in the code-behind file so they would be available to both the code-behind file and page file.&lt;br /&gt;&lt;br /&gt;Visual studio added a declaration to the code-behind file for each control. This declaration was placed in a region of the code-behind file which hidden. It was to hard to sync code-behind with page. Any control deletion, change in control name in page file might not affect the code region in code-behind file.&lt;br /&gt;&lt;br /&gt;The new code-behind file not includes any hidden code region. Instead, the new model uses a &lt;span style="font-style: italic;"&gt;partial class&lt;/span&gt; feature in VB 2005. Due to this control declarations are placed in separate file that's compiled together with the code-behind file to create final code-behind class file. All declarations created at compiled time by ASP.NET. So no mess-ups occurred.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Advantage&lt;/span&gt; is easier to keep the web page file in synchronization with the code-behind file.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113991296658792431?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113991296658792431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113991296658792431' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113991296658792431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113991296658792431'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/02/upgrade-aspnet-20-new-code-behind.html' title='UPGRADE ASP.NET 2.0: New Code Behind Model'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113933365608342590</id><published>2006-02-07T22:54:00.000+05:30</published><updated>2006-02-07T23:04:33.673+05:30</updated><title type='text'>VB.NET Bug: Toolbar Buttons Show No Text or Images  in run time, although they appear correct at design time</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;1. Expand the "Windows Form Designer generated code" section in the code view of the form.&lt;br /&gt;2. Find out following statement in intializecomponents. (Replace Toolbar with actual toolbar control name)&lt;br /&gt;&lt;br /&gt;ToolBar.Buttons.AddRange(...);&lt;br /&gt;                   &lt;br /&gt;3. Cut above single line statement and Paste that statement of code at the end, after all of the properties of that ToolBar control have been set. [IMP: If Image list is used then paste above line after imagelist code block]&lt;br /&gt;&lt;br /&gt;This will solve the problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[IMP: adding new controls or events, cause the IDE to regenerate the code, so the statement that causes the problem returns to its original location. Therefore, every time that you build and test the application, check the code file to make sure that above statement has been moved at the end]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113933365608342590?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113933365608342590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113933365608342590' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113933365608342590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113933365608342590'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/02/vbnet-bug-toolbar-buttons-show-no-text.html' title='VB.NET Bug: Toolbar Buttons Show No Text or Images  in run time, although they appear correct at design time'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113846841220450102</id><published>2006-01-28T22:41:00.000+05:30</published><updated>2007-02-07T14:49:03.850+05:30</updated><title type='text'>Maintain State (persistence) in ASP .NET</title><content type='html'>Here I described benefits and limitations of using various technique to store state:&lt;br /&gt;These techniques are other than InProc and OutProc(SQL Server) in web.config file.&lt;br /&gt;&lt;br /&gt;1. Hidden Fields&lt;br /&gt;2. View State&lt;br /&gt;3. Hidden Frames&lt;br /&gt;4. Cookies&lt;br /&gt;5. Query Strings&lt;br /&gt;&lt;br /&gt;one by one ...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Hidden Fields: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Benifits:&lt;br /&gt;A. All browser support Hidden Fields.&lt;br /&gt;B. Simpler to implement. (HTML hidden type tag)&lt;br /&gt;C. As data is cached on client side they work with web farms.&lt;br /&gt;D. No server side resources allocated.&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;A. Page performances decreases if you store large amount of data in a page.&lt;br /&gt;B. Not Secured.&lt;br /&gt;C  Accept only single value per tag.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. View State:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Benefits:&lt;br /&gt;A.  No server resources allocated.&lt;br /&gt;B.  Simple to implement.&lt;br /&gt;C.  States are retained automatically. (You can control wise enable/disable viewstate as per requirement)&lt;br /&gt;D.  Values stored in encoded fashion. More secure than hidden fields.&lt;br /&gt;E.  Good for caching data in Web Farm. (Same as hidden fields, clientside)&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;A.  Page performance and loading speed decreases if larger amount of data is stored. (Like Gridview data)&lt;br /&gt;B.  View state stores data in HTMl Hidden field on page so even if data is encoded not complete secure.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Hidden Frames:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Benefits:&lt;br /&gt;A.  You can cache more than one data field.&lt;br /&gt;B.  The ability to cache and access data items stored in different hidden forms.&lt;br /&gt;C.  The ability to access JScript variable values stored in different frames if they come from same site.&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;A.  Not supported by all browsers.&lt;br /&gt;B.  Stored data can be tampered.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Cookies:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Benefits:&lt;br /&gt;A.  No server resources are required to store data.&lt;br /&gt;B.  Light weight and simple to use. (to Write and read)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;A.  Limited size to store data 4096 byte or 8192 bytes.&lt;br /&gt;B.  User can disable cookies.&lt;br /&gt;C.  Cookies can be tampered.&lt;br /&gt;D.  Cookies expiry leads towards inconsistency.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Query String:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Benefits:&lt;br /&gt;A.  No server resources required.&lt;br /&gt;B.  All browser supports.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Limitations:&lt;br /&gt;A.  Values directly visible to user.&lt;br /&gt;B.  Limit is upto 255 characters for most browsers. (URL Length)&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113846841220450102?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113846841220450102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113846841220450102' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113846841220450102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113846841220450102'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/maintain-state-persistence-in-asp-net.html' title='Maintain State (persistence) in ASP .NET'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113803865942236773</id><published>2006-01-23T23:10:00.000+05:30</published><updated>2006-01-23T23:21:06.133+05:30</updated><title type='text'>Data Type Naming Conventions.</title><content type='html'>&lt;table style="width: 463px; height: 267px;"&gt;&lt;tbody&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; width: 109pt; padding-bottom: 0in; padding-top: 0in; font-weight: bold;" height="17" width="145"&gt;Data Type&lt;/td&gt;&lt;td class="xl22" style="width: 122pt; font-weight: bold;" width="163"&gt;Example&lt;/td&gt;&lt;td class="xl22" style="width: 106pt; font-weight: bold;" width="141"&gt;Prefix&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Boolean&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;blnResult&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;bln&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Byte&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;bytByte&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;byt&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Char&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;chrCase&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;chr&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Date&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;datStart&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;dat&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Double&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;dblSum&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;dbl&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Decimal&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;decAverage&lt;/td&gt;&lt;td class="xl22"&gt;dec&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Integer&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;intEmpId&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;int&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Long&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;lngCounter&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;lng&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Single&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;sngStock&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;sng&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Short&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;shoShort&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;sho&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;String&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;strName&lt;br /&gt;&lt;/td&gt;&lt;td class="xl22"&gt;str&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;Most commonly used &lt;span style="font-weight: bold;"&gt;Hungarian Notations &lt;/span&gt;for data types.  First three letters of a variable name to distinguish subtype. The fourth letter of the variable is then typed in uppercase, to indicate that this where the actual variable name starts.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113803865942236773?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113803865942236773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113803865942236773' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113803865942236773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113803865942236773'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/data-type-naming-conventions.html' title='Data Type Naming Conventions.'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113794633204255258</id><published>2006-01-22T21:41:00.000+05:30</published><updated>2006-01-22T21:50:24.480+05:30</updated><title type='text'>ASP .NET Control Naming Conventions</title><content type='html'>&lt;table&gt;&lt;tbody&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; width: 109pt; padding-bottom: 0in; padding-top: 0in; font-weight: bold;" height="17" width="145"&gt;Control Name&lt;/td&gt;&lt;td class="xl22" style="width: 122pt; font-weight: bold;" width="163"&gt;Example&lt;/td&gt;&lt;td class="xl22" style="width: 106pt; font-weight: bold;" width="141"&gt;Prefix&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Label&lt;/td&gt;&lt;td class="xl22"&gt;lblName&lt;/td&gt;&lt;td class="xl22"&gt;lbl&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;TextBox&lt;/td&gt;&lt;td class="xl22"&gt;txtName&lt;/td&gt;&lt;td class="xl22"&gt;txt&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;GridView&lt;/td&gt;&lt;td class="xl22"&gt;gvResult&lt;/td&gt;&lt;td class="xl22"&gt;gv&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Button&lt;/td&gt;&lt;td class="xl22"&gt;btnSave&lt;/td&gt;&lt;td class="xl22"&gt;btn&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;ImageButton&lt;/td&gt;&lt;td class="xl22"&gt;ibtnSave&lt;/td&gt;&lt;td class="xl22"&gt;ibtn&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Hyperlink&lt;/td&gt;&lt;td class="xl22"&gt;lnkHomePage&lt;/td&gt;&lt;td class="xl22"&gt;lnk&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;DropDownList&lt;/td&gt;&lt;td class="xl22"&gt;ddlCompany&lt;/td&gt;&lt;td class="xl22"&gt;ddl&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;ListBox&lt;/td&gt;&lt;td class="xl22"&gt;lstCompany&lt;/td&gt;&lt;td class="xl22"&gt;lst&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;DataList&lt;/td&gt;&lt;td class="xl22"&gt;dlstAddress&lt;/td&gt;&lt;td class="xl22"&gt;dlst&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Repeater&lt;/td&gt;&lt;td class="xl22"&gt;repSection&lt;/td&gt;&lt;td class="xl22"&gt;rep&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Checkbox&lt;/td&gt;&lt;td class="xl22"&gt;chkMailList&lt;/td&gt;&lt;td class="xl22"&gt;chk&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;CheckBoxList&lt;/td&gt;&lt;td class="xl22"&gt;chkAddress&lt;/td&gt;&lt;td class="xl22"&gt;chk&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;RadioButton&lt;/td&gt;&lt;td class="xl22"&gt;rdoSex&lt;/td&gt;&lt;td class="xl22"&gt;rdo&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;RadioButtonList&lt;/td&gt;&lt;td class="xl22"&gt;rdoAgeGroup&lt;/td&gt;&lt;td class="xl22"&gt;rdo&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Image&lt;/td&gt;&lt;td class="xl22"&gt;imgLogo&lt;/td&gt;&lt;td class="xl22"&gt;img&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Panel&lt;/td&gt;&lt;td class="xl22"&gt;panSection&lt;/td&gt;&lt;td class="xl22"&gt;pan&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;PlaceHolder&lt;/td&gt;&lt;td class="xl22"&gt;plhHeader&lt;/td&gt;&lt;td class="xl22"&gt;plh&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Calender&lt;/td&gt;&lt;td class="xl22"&gt;calMyDate&lt;/td&gt;&lt;td class="xl22"&gt;cal&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Adrotator&lt;/td&gt;&lt;td class="xl22"&gt;adrBanner&lt;/td&gt;&lt;td class="xl22"&gt;adr&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;Table&lt;/td&gt;&lt;td class="xl22"&gt;tblResults&lt;/td&gt;&lt;td class="xl22"&gt;tbl&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt;" height="17"&gt;[All]Validators&lt;/td&gt;&lt;td class="xl22"&gt;valCreditCardNumber&lt;/td&gt;&lt;td class="xl22"&gt;val&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height: 12.75pt;" height="17"&gt;&lt;td class="xl22" style="height: 12.75pt; padding-bottom: 0in; padding-top: 0in;" height="17"&gt;ValidationSummary&lt;/td&gt;&lt;td class="xl22"&gt;valsErrors&lt;/td&gt;&lt;td class="xl22"&gt;vals&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113794633204255258?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113794633204255258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113794633204255258' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113794633204255258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113794633204255258'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/asp-net-control-naming-conventions_22.html' title='ASP .NET Control Naming Conventions'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113723819578642723</id><published>2006-01-14T16:58:00.000+05:30</published><updated>2006-01-21T17:21:59.356+05:30</updated><title type='text'>.NET, VB.NET, ASP.NET Questions with small hints:</title><content type='html'>Q. What is base class in .NET?&lt;br /&gt;&lt;br /&gt;Hint: System.Object&lt;br /&gt;&lt;br /&gt;Q. What is main difference between ASP and ASP.NET?&lt;br /&gt;&lt;br /&gt;Hint: In ASP (i.e. classic one) scripts/code is not complied. ASP.NET come with nice feature code behind.&lt;br /&gt;&lt;br /&gt;Q. Name some languages supported by .NET?&lt;br /&gt;&lt;br /&gt;Hint: VB.NET, Visual J#, Visual C#, Visual C++&lt;br /&gt;&lt;br /&gt;Q. What is assembly?&lt;br /&gt;&lt;br /&gt;Hint: Deployment Units. Assemblies are similar to DLL files. Both have the reusable pieces of code in the form of classes/ functions. DLL needs to be registered but assemblies have its own metadata (i.e. includes name and version of the assembly, security information, information about the dependencies and the list of files that constitute the assembly).&lt;br /&gt;&lt;br /&gt;Q. Difference between Panel and Group box?&lt;br /&gt;&lt;br /&gt;Hint: Panel is scrollable. In panel you can’t set caption like Group box.&lt;br /&gt;&lt;br /&gt;Q. What’s the difference between Response.Write() andResponse.Output.Write()?&lt;br /&gt;&lt;br /&gt;Hint: Response.Output.Write() allows you to write formatted output.&lt;br /&gt;&lt;br /&gt;Q. What is Delegate?&lt;br /&gt;&lt;br /&gt;Hint: Delegate is like a pointer to a function in C++ or like an event handler in Java&lt;br /&gt;&lt;br /&gt;You can use it to “multicast” which means running multiple functions in different instances of object already created.&lt;br /&gt;&lt;br /&gt;This is useful when you want your objects to “register” to an event raised by another object.&lt;br /&gt;&lt;br /&gt;The way it works is the object you are registered to listen to receive the delegate of the function it is supposed to run in your object, the delegate is then run from it. (If you switch the word delegate for pointer, this would be much simpler)&lt;br /&gt;&lt;br /&gt;Q. What is serialization?&lt;br /&gt;&lt;br /&gt;Hint: Serialization is when you persist the state of an object to a storage medium so an exact copy can be re-created at a later stage. Serialization is used to save session state in ASP.NET. Serialization is to copy objects to the Clipboard in Windows Forms Serialization is used by remoting to pass objects by value from one application domain to another.&lt;br /&gt;&lt;br /&gt;Q. What is Viewstate?&lt;br /&gt;&lt;br /&gt;Hint: Server control’s view state is the accumulation of all its property values. In order to preserve these values across HTTP requests, ASP.NET server controls use this property, which is an instance of the StateBag class, to store the property values.&lt;br /&gt;&lt;br /&gt;Q. Where Viewstate is stored?&lt;br /&gt;&lt;br /&gt;Hint: Viewstate is stored in the hidden field __VIEWSTATE.&lt;br /&gt;&lt;br /&gt;Q. What is an Abstract class?&lt;br /&gt;&lt;br /&gt;Hint: An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes to inherit from it but cannot be instantiated. The advantage is that it enforces certain hierarchies for all the subclasses. In simple words, it is a kind of contract that forces all the subclasses to carry on the same hierarchies or standards.&lt;br /&gt;&lt;br /&gt;Q. What is an Interface?&lt;br /&gt;&lt;br /&gt;Hint: An interface is not a class. It is an entity that is defined by the word Interface. An interface has no implementation; it only has the signature or in other words, just the definition of the methods without the body. As one of the similarities to Abstract class, it is a contract that is used to define hierarchies for all subclasses or it defines specific set of methods and their arguments. The main difference between them is that a class can implement more than one interface but can only inherit from one abstract class&lt;br /&gt;&lt;br /&gt;Q. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.&lt;br /&gt;&lt;br /&gt;Hint: inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things. When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe.&lt;br /&gt;&lt;br /&gt;Q. What’s a bubbled event?&lt;br /&gt;&lt;br /&gt;Hint: When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.&lt;br /&gt;&lt;br /&gt;Q. Explain the differences between Server-side and Client-side code?&lt;br /&gt;&lt;br /&gt;Hint: Server-side code executes on the server. Client-side code executes in the client's browser.&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113723819578642723?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113723819578642723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113723819578642723' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113723819578642723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113723819578642723'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/net-vbnet-aspnet-questions-with-small.html' title='.NET, VB.NET, ASP.NET Questions with small hints:'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113697828064241935</id><published>2006-01-11T16:46:00.000+05:30</published><updated>2006-01-21T17:27:45.903+05:30</updated><title type='text'>LIST OF NEW CONTROLS IN ASP.NET 2.0</title><content type='html'>(Category wise list)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(I) View Controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. MultiView&lt;br /&gt;&lt;br /&gt;2. View&lt;br /&gt;&lt;br /&gt;3. FormView&lt;br /&gt;&lt;br /&gt;4. DetailsView&lt;br /&gt;&lt;br /&gt;5. GridView&lt;br /&gt;&lt;br /&gt;6. LoginView&lt;br /&gt;&lt;br /&gt;7. TreeView&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(II) DataSource Controls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. SqlDataSource&lt;br /&gt;&lt;br /&gt;2. AccessDataSource&lt;br /&gt;&lt;br /&gt;3. XMLDataSource&lt;br /&gt;&lt;br /&gt;4. ObjectDataSource&lt;br /&gt;&lt;br /&gt;5. SiteMapDataSource&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(III) Navigation Controls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. SiteMapPath&lt;br /&gt;&lt;br /&gt;2. TreeView&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(IV) Login Controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. LoginStatus&lt;br /&gt;&lt;br /&gt;2. LoginView&lt;br /&gt;&lt;br /&gt;3. ChangePassword&lt;br /&gt;&lt;br /&gt;4. PasswordRecovery&lt;br /&gt;&lt;br /&gt;5. LoginName&lt;br /&gt;&lt;br /&gt;6. CreateUserWizard&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(V) WebPart Controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. WebPartManager&lt;br /&gt;&lt;br /&gt;2. WebPartZone&lt;br /&gt;&lt;br /&gt;3. CatalogZone (contains DeclarativeCatalogPart, PageCatalogPart, and ImportCatalogPart)&lt;br /&gt;&lt;br /&gt;4. EditorPart controls (contains AppearanceEditorPart, BehaviorEditorPart, LayoutEditorPart, and PropertyGridEditorPart&lt;br /&gt;&lt;br /&gt;5. EditorZone&lt;br /&gt;&lt;br /&gt;6. ConnectionZone&lt;br /&gt;&lt;br /&gt;7. ConnectionPart&lt;br /&gt;&lt;br /&gt;8. ProxyWebPartManager&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(VI) Report Controls:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. ReportViewer&lt;br /&gt;&lt;br /&gt;2. CrystalReportPartsViewer&lt;br /&gt;&lt;br /&gt;3. CrystalReportSource&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113697828064241935?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113697828064241935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113697828064241935' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113697828064241935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113697828064241935'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/list-of-new-controls-in-aspnet-20.html' title='LIST OF NEW CONTROLS IN ASP.NET 2.0'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113681208363039431</id><published>2006-01-09T18:28:00.000+05:30</published><updated>2006-12-10T11:02:13.456+05:30</updated><title type='text'>Posting to Other Pages -  ASP.NET 2.0</title><content type='html'>Posting to other pages or cross page posting is now possible in ASP.NET 2.0. This is a new feature over ASP.NET 1.0 and 1.1.&lt;br /&gt;&lt;br /&gt;Following code snippet will give you clear-cut idea.&lt;br /&gt;&lt;br /&gt;Here button tag to have an attribute called 'PostbackUrl' that post to another page.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4523/2042/1600/crosspage.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/4523/2042/320/crosspage.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113681208363039431?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113681208363039431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113681208363039431' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113681208363039431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113681208363039431'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/posting-to-other-pages-aspnet-20.html' title='Posting to Other Pages -  ASP.NET 2.0'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-20395424.post-113612077564163384</id><published>2006-01-01T18:35:00.000+05:30</published><updated>2006-01-01T18:36:15.646+05:30</updated><title type='text'>Happy New Year</title><content type='html'>Hi Friends&lt;br /&gt;Wish you all a very happy and prosperous new year.&lt;br /&gt;Bye&lt;div class="blogger-post-footer"&gt;&lt;div class='adsense' style='text-align:center; padding: 0px 3px 0.5em 3px;'&gt;
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client="ca-pub-8532061879083525";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text";
google_color_border="FF9933";
google_color_bg="E0E0E0";
google_color_link="FF6633";
google_color_url="FF6633";
google_color_text="FF9933";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;embed src="http://www.clocklink.com/clocks/0006-Gray.swf?TimeZone=GMT0530" width="150" height="180" wmode="transparent" type="application/x-shockwave-flash"&gt;

&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20395424-113612077564163384?l=dkuldeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dkuldeep.blogspot.com/feeds/113612077564163384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=20395424&amp;postID=113612077564163384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113612077564163384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/20395424/posts/default/113612077564163384'/><link rel='alternate' type='text/html' href='http://dkuldeep.blogspot.com/2006/01/happy-new-year.html' title='Happy New Year'/><author><name>Kuldeep Deokule</name><uri>http://www.blogger.com/profile/05089252346998873344</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
