<?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-9018409918280339389</id><updated>2012-01-29T22:05:31.562-08:00</updated><category term='mobile'/><category term='dot net'/><category term='reflection'/><category term='linq'/><category term='Asp.net'/><category term='CLR'/><category term='blog'/><category term='Ajax'/><category term='tip'/><category term='.Net'/><title type='text'>The Pursuit</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>dc69</name><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>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9018409918280339389.post-6503538879187751643</id><published>2012-01-03T17:56:00.001-08:00</published><updated>2012-01-16T13:04:59.439-08:00</updated><title type='text'>Go2Wifi</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://3.bp.blogspot.com/-aibkUakuARI/TwUpsnAN6-I/AAAAAAAAAGk/i6c_CNkrpyo/s1600/iOS%2BSimulator%2BScreen%2Bshot%2BJan%2B3%252C%2B2012%2B8.35.03%2BPM.png"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5694003150240738274" src="http://3.bp.blogspot.com/-aibkUakuARI/TwUpsnAN6-I/AAAAAAAAAGk/i6c_CNkrpyo/s320/iOS%2BSimulator%2BScreen%2Bshot%2BJan%2B3%252C%2B2012%2B8.35.03%2BPM.png" style="cursor: hand; cursor: pointer; float: left; height: 320px; margin: 0 10px 10px 0; width: 214px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;Go2Wifi provides single touch shortcut to your iPhone Wifi settings screen.&lt;br /&gt;&lt;br /&gt;* Now there is no need to install any third party profiles on your iPhone.&lt;br /&gt;* No need to install any icons.&lt;br /&gt;* This app does not require a 3G connection.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; font-weight: bold;"&gt;To report a bug kindly email to: gandhi.rohan@gmail.com&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-6503538879187751643?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/6503538879187751643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=6503538879187751643' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6503538879187751643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6503538879187751643'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2012/01/go2wifi.html' title='Go2Wifi'/><author><name>dc69</name><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-aibkUakuARI/TwUpsnAN6-I/AAAAAAAAAGk/i6c_CNkrpyo/s72-c/iOS%2BSimulator%2BScreen%2Bshot%2BJan%2B3%252C%2B2012%2B8.35.03%2BPM.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018409918280339389.post-3549949380762810639</id><published>2008-08-13T12:38:00.001-07:00</published><updated>2008-08-13T12:44:31.251-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reflection'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Reflection , qualify nested class</title><content type='html'>&lt;p&gt;This thing got my attention today when I came across a runtime error in the &lt;/p&gt;  &lt;p&gt;code trying to access a nested class via reflection.&lt;/p&gt;  &lt;p&gt;The code was something like this:&lt;/p&gt;  &lt;p&gt;&lt;font color="#0000ff" size="1"&gt;// The code below gives error &amp;quot;cannot find MyClass.NestedClass in assembly .... bla bla...bla&amp;quot;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" color="#800000" size="2"&gt;Type nestedType = assembly.GetType(&amp;quot;MyClass.NetstedClass&amp;quot;);&lt;/font&gt; &lt;/p&gt;  &lt;p&gt;Looking at it for a few minutes I could not think of anything obvious that's wrong until I figured out the use of '+' when qualifying nested class.&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New" color="#800000" size="2"&gt;Type nestedType = assembly.GetType(&amp;quot;MyClass&lt;strong&gt;+&lt;/strong&gt;NetstedClass&amp;quot;); &lt;font color="#0000ff"&gt;// work just fine :)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-3549949380762810639?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/3549949380762810639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=3549949380762810639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3549949380762810639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3549949380762810639'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/08/reflection-qualify-nested-class.html' title='Reflection , qualify nested class'/><author><name>dc69</name><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-9018409918280339389.post-4302116203208616339</id><published>2008-08-11T04:26:00.001-07:00</published><updated>2008-08-11T04:28:23.414-07:00</updated><title type='text'>Error installing SQL server management studio ( missing prerequisites msxml6 )</title><content type='html'>&lt;p&gt;Installed visual studio 2008 that comes bundled with SQL server 2005 express database.&lt;/p&gt;  &lt;p&gt;But does not include a enterprise manager to browse and manage the database. You can get a free download sql server management studio separately (&lt;a title="Download details- Microsoft SQL Server Management Studio Express" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796"&gt;&lt;em&gt;Download details- Microsoft SQL Server Management Studio Express&lt;/em&gt;&lt;/a&gt;)&lt;/p&gt;  &lt;p&gt;While installing this I got an error after which the installation aborts :&lt;/p&gt;  &lt;p&gt;error: &lt;em&gt;&lt;font size="1"&gt;Setup is missing prerequisites:       &lt;br /&gt;- MSXML6&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;To fix the problem&amp;#160; , &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Go to control panel&amp;gt;add/remove programs&lt;/li&gt;    &lt;li&gt;and select msxml &lt;/li&gt;    &lt;li&gt;click on change&lt;/li&gt;    &lt;li&gt;It will give an option to repair the installation , select that.&lt;/li&gt;    &lt;li&gt;This should fix the registry with the correct keys and you can now proceed installing SQL server management studio.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/dot.NetCoders/SKAh5C8cI-I/AAAAAAAAAEI/zNU6TiNETSs/msxml%5B2%5D.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="135" alt="msxml" src="http://lh6.ggpht.com/dot.NetCoders/SKAh7I952BI/AAAAAAAAAEM/1STlU4-q-Ak/msxml_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/dot.NetCoders/SKAh9RCyu0I/AAAAAAAAAEQ/FwgADwx2aiY/msxml2%5B2%5D.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="180" alt="msxml2" src="http://lh5.ggpht.com/dot.NetCoders/SKAh-BgsQaI/AAAAAAAAAEU/d0vYgnaLj4g/msxml2_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-4302116203208616339?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/4302116203208616339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=4302116203208616339' title='32 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/4302116203208616339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/4302116203208616339'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/08/error-installing-sql-server-management.html' title='Error installing SQL server management studio ( missing prerequisites msxml6 )'/><author><name>dc69</name><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/dot.NetCoders/SKAh7I952BI/AAAAAAAAAEM/1STlU4-q-Ak/s72-c/msxml_thumb.jpg' height='72' width='72'/><thr:total>32</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018409918280339389.post-3413760413194711763</id><published>2008-08-11T00:25:00.000-07:00</published><updated>2008-08-11T00:49:18.643-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linq'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>LINQ</title><content type='html'>&lt;p&gt;&lt;a href="http://lh6.ggpht.com/dot.NetCoders/SJ_u19_X2dI/AAAAAAAAAEA/nbYuMe6dEeo/image12%5B2%5D.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="44" alt="image12" src="http://lh6.ggpht.com/dot.NetCoders/SJ_u2ZTZR9I/AAAAAAAAAEE/vL00R5pPmbM/image12_thumb.png" width="45" border="0" /&gt;&lt;/a&gt;Linq is a set of extensions to Microsoft dotnet framework that encompasses language integrated query and provides the ability to query native data via simple SQL like syntax.&lt;/p&gt;  &lt;p&gt;It allows any data source to be queried that exists as &lt;em&gt;&lt;a href="http://en.wikipedia.org/wiki/Object_(computer_science)"&gt;object&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Its possible to query for similar information without the use of linq. However here linq provides syntactic sugar for writing these queries which result in less lines of code. &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-3413760413194711763?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/3413760413194711763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=3413760413194711763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3413760413194711763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3413760413194711763'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/08/linq.html' title='LINQ'/><author><name>dc69</name><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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/dot.NetCoders/SJ_u2ZTZR9I/AAAAAAAAAEE/vL00R5pPmbM/s72-c/image12_thumb.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018409918280339389.post-1589539864357815671</id><published>2008-02-23T11:27:00.001-08:00</published><updated>2008-02-23T11:55:39.031-08:00</updated><title type='text'>Immutable Type</title><content type='html'>&lt;p&gt;When a type offers no members that can change its state , its called an immutable type.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-1589539864357815671?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/1589539864357815671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=1589539864357815671' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/1589539864357815671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/1589539864357815671'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/immutable-type.html' title='Immutable Type'/><author><name>dc69</name><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-9018409918280339389.post-9035203811490753856</id><published>2008-02-23T10:38:00.001-08:00</published><updated>2008-02-23T10:40:16.627-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='CLR'/><title type='text'>int and Int32</title><content type='html'>&lt;p&gt;Int32 and int are the same.&lt;/p&gt;  &lt;p&gt;int is the 'C# type' that actually maps to the primitive type 'Int32' which is the actual FCL Type.&lt;/p&gt;  &lt;p align="center"&gt;&lt;em&gt;Any data types the compiler directly supports are called primitive types. Primitive types map directly to types existing in the Framework Class Library (FCL).&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;CLS ( Common Language Specification ) is a sub-set of the primitive types that are supported by all dot.net languages.&lt;/p&gt;  &lt;p&gt;C# Primitives not CLS complaint:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;System.SByte - Signed 8 bit value&lt;/li&gt;    &lt;li&gt;System.UInt16&lt;/li&gt;    &lt;li&gt;System.UInt32&lt;/li&gt;    &lt;li&gt;System.UInt64&lt;/li&gt; &lt;/ol&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-9035203811490753856?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/9035203811490753856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=9035203811490753856' title='113 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/9035203811490753856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/9035203811490753856'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/int-and-int32.html' title='int and Int32'/><author><name>dc69</name><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>113</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9018409918280339389.post-6840930773663358965</id><published>2008-02-23T07:26:00.001-08:00</published><updated>2008-02-23T07:26:54.449-08:00</updated><title type='text'>Namespace</title><content type='html'>&lt;ul&gt;   &lt;li&gt;Provides logical grouping of related types.&lt;/li&gt;    &lt;li&gt;Increases code readability&lt;/li&gt; &lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-6840930773663358965?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/6840930773663358965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=6840930773663358965' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6840930773663358965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6840930773663358965'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/namespace.html' title='Namespace'/><author><name>dc69</name><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-9018409918280339389.post-768690273544685257</id><published>2008-02-23T06:33:00.001-08:00</published><updated>2008-02-23T07:21:49.342-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='CLR'/><title type='text'>Type Spoofing and CLR</title><content type='html'>&lt;p&gt;&amp;#xA0;&lt;/p&gt;  &lt;p align="center"&gt;&lt;em&gt;Type spoofing is the cause of many security breaches and     &lt;br /&gt;compromises an application's stability and robustness. Type safety is therefore an extremely      &lt;br /&gt;important part of the CLR.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&amp;#xA0;&lt;/p&gt;  &lt;p&gt;CLR checks the type security at runtime &lt;/p&gt;  &lt;p&gt;Casting Object to a specific type will compile all fine, but at run time an exception 'InvalidCastException' is thrown if the type boxed in Object cannot be converted to the specific type ( i.e is not of the specific type or its base type )&lt;/p&gt;  &lt;p&gt;&lt;u&gt;Use &lt;em&gt;As&lt;/em&gt; Over &lt;em&gt;Is&lt;/em&gt;&lt;/u&gt; : using &lt;em&gt;Is&lt;/em&gt; and then casting results in type checking twice. Once for &lt;em&gt;Is&lt;/em&gt; and then while casting the CLR does the default type check. To avoid this use the &lt;em&gt;As &lt;/em&gt;operator.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-768690273544685257?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/768690273544685257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=768690273544685257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/768690273544685257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/768690273544685257'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/type-spoofing-and-clr.html' title='Type Spoofing and CLR'/><author><name>dc69</name><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-9018409918280339389.post-9186204513010253779</id><published>2008-02-23T06:12:00.001-08:00</published><updated>2008-02-23T07:44:28.479-08:00</updated><title type='text'>Where is System.Object ?</title><content type='html'>&lt;p&gt;System.Object is defined in MSCorLib.dll . This dll contains all the FCL types like Object ,Int32, String,etc.&lt;/p&gt;  &lt;p&gt;All the objects in C# are derived from System.Object class. &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;There are not data members in this class. &lt;/li&gt;    &lt;li&gt;This class offers 4 public instance methods:      &lt;ul&gt;       &lt;li&gt;Equals() &lt;/li&gt;        &lt;li&gt;ToString() &lt;/li&gt;        &lt;li&gt;GetHashCode() &lt;/li&gt;        &lt;li&gt;GetType() &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Two protected methods:      &lt;ul&gt;       &lt;li&gt;MemberwiseClone &lt;/li&gt;        &lt;li&gt;Finalize &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-9186204513010253779?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/9186204513010253779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=9186204513010253779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/9186204513010253779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/9186204513010253779'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/where-is-systemobject.html' title='Where is System.Object ?'/><author><name>dc69</name><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-9018409918280339389.post-2446106627267278478</id><published>2008-02-21T01:24:00.000-08:00</published><updated>2008-02-21T01:28:14.195-08:00</updated><title type='text'>Property , C#</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Use of Properties&lt;/strong&gt;&lt;br /&gt;In a way exposing the data members in a class as 'public' serves the same purpose as having the same member exposed via Property with simple get/set definitions.However the former is against the concept of Data Encapsulation , which states that the your type's fields should never be public exposed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Usual Practice&lt;/strong&gt;: To have a public 'get' and a protected 'set' accessor. Property in this case is listed with least restrictive accessibility ( I.e public in this example)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;GetSetMethod Vs Property&lt;/strong&gt; : is the same thing , just that with the method the code does not look that pretty.Properties offers more simplified syntax.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Backing Field&lt;/strong&gt;: is the underlying private member access-wrapped in a property.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Code Inlining &lt;/strong&gt;: At compile time the code for simple get set methods is Inlined by the compiler , in the method the property is accessed.This is only true for Release build and not Debug.&lt;br /&gt;Assign a custom name to a Parameterful Properties ( Indexer) : System.Runtime.CompilerServices.IndexerNamee.g [lndexerName("Update")]&lt;br /&gt;&lt;br /&gt;Still this cannot be used in C# to overload Indexers by Name ,we can only overload by parameter type.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;System.Reflection.PropertyInfo : used to read the Property at runtime.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Deceptive:&lt;br /&gt;- property may return data that's not part of its state.&lt;br /&gt;- Confusing to tell by looking at the code if the property is full read-only or write only.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-2446106627267278478?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/2446106627267278478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=2446106627267278478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/2446106627267278478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/2446106627267278478'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/property-c.html' title='Property , C#'/><author><name>dc69</name><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-9018409918280339389.post-5291225303488486931</id><published>2008-02-18T11:42:00.000-08:00</published><updated>2008-02-18T11:42:20.242-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='CLR'/><title type='text'>Exceptions</title><content type='html'>&lt;p&gt;Exceptions allow the developers to isolate the failure recovery code from the code required to get the work done.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-5291225303488486931?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/5291225303488486931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=5291225303488486931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5291225303488486931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5291225303488486931'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/exceptions.html' title='Exceptions'/><author><name>dc69</name><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-9018409918280339389.post-3661344154850936931</id><published>2008-02-18T11:37:00.001-08:00</published><updated>2008-02-19T10:46:45.828-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='CLR'/><title type='text'>CLR Compilers</title><content type='html'>&lt;p&gt;Microsoft provides several compilers that produce the code targeting the runtime: &lt;a href="http://en.wikipedia.org/wiki/C%2B%2B/CLI"&gt;C++/CLI&lt;/a&gt;, C# , Visual Basic.NET and JScript.&lt;/p&gt;  &lt;p&gt;C++/CLI(&lt;a href="http://en.wikipedia.org/wiki/Common_Language_Infrastructure"&gt;Common Language Infrastructure&lt;/a&gt;) is Microsoft's language specification to supersede &lt;a href="http://en.wikipedia.org/wiki/Managed_Extensions_for_C%2B%2B"&gt;MC++&lt;/a&gt; ( Managed Extensions for C++ )&lt;/p&gt;  &lt;p&gt;Microsoft has a version of .NET available for FreeBSD, Windows and Mac OS X called the Shared Source CLI (&lt;a href="http://en.wikipedia.org/wiki/Shared_Source_Common_Language_Infrastructure"&gt;Rotor&lt;/a&gt;).&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-3661344154850936931?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/3661344154850936931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=3661344154850936931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3661344154850936931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3661344154850936931'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/clr-compilers.html' title='CLR Compilers'/><author><name>dc69</name><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-9018409918280339389.post-2820028224753248598</id><published>2008-02-18T10:56:00.000-08:00</published><updated>2008-02-18T11:42:33.209-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='CLR'/><title type='text'>Technology</title><content type='html'>&lt;p&gt;Technology has evolved providing abstraction layers to developers to allow them to focus more on the problem by caring less on the micro implementation details. When there are various different technologies offering abstractions over different areas ( web,win, com, etc ) the developers face the challenge when integrating these together to make them talk to each other. &lt;/p&gt;  &lt;p&gt;The dot net framework (CLR + FCL) offers all of these abstraction layers on a common platform (IL).&lt;/p&gt;  &lt;p&gt;CLR offers an object oriented &lt;em&gt;programming model&lt;/em&gt; that defines what types and objects are and how they behave.&lt;/p&gt;  &lt;p&gt;FCL - Framework Class Library offers an object oriented &lt;em&gt;API set&lt;/em&gt; that all applications use.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-2820028224753248598?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/2820028224753248598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=2820028224753248598' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/2820028224753248598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/2820028224753248598'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/technology.html' title='Technology'/><author><name>dc69</name><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-9018409918280339389.post-6459169046181877579</id><published>2008-02-16T11:59:00.001-08:00</published><updated>2008-02-16T11:59:42.099-08:00</updated><title type='text'>Test post from Windows live</title><content type='html'>&lt;p&gt;test post&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-6459169046181877579?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/6459169046181877579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=6459169046181877579' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6459169046181877579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6459169046181877579'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2008/02/test-post-from-windows-live.html' title='Test post from Windows live'/><author><name>dc69</name><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-9018409918280339389.post-3610612533720446437</id><published>2007-10-14T13:41:00.001-07:00</published><updated>2007-10-14T13:45:22.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mobile'/><title type='text'>m600i , sync google calendar</title><content type='html'>&lt;p&gt;&lt;a href="http://lh4.google.com/dot.NetCoders/RxJ-4jknpoI/AAAAAAAAADk/hsZwnVMMxGM/M600black%5B2%5D.png"&gt;&lt;img id="id" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="68" alt="M600black" src="http://lh4.google.com/dot.NetCoders/RxJ-5jknppI/AAAAAAAAADs/wfaBdoOocaU/M600black_thumb.png" width="68" border="0" /&gt;&lt;/a&gt; I read about this cool service today&amp;#xA0; &lt;a href="https://www.goosync.com"&gt;goosync&lt;/a&gt; and tired it , works very well. I was ignorant that to sync the events on my m600 and google cal&amp;#xA0; it was just a click away. &lt;/p&gt;  &lt;p&gt;how...&lt;/p&gt;  &lt;p&gt;first step : register at goosync&lt;/p&gt;  &lt;p&gt;1. Goto the calendar in from your m600 menu.&lt;/p&gt;  &lt;p&gt;2. Select 'more' &amp;gt; 'calendar manager' &amp;gt; 'synchronize'.&lt;/p&gt;  &lt;p&gt;3. Check Calendar from the list.&lt;/p&gt;  &lt;p&gt;4. Now create a new profile and enter the following details:&lt;/p&gt;  &lt;p&gt;server : &lt;a title="http://sync.goosync.com " href="http://sync.goosync.com "&gt;http://sync.goosync.com &lt;/a&gt;&lt;/p&gt;  &lt;p&gt;username: your goosync username&lt;/p&gt;  &lt;p&gt;password: your goosync password&lt;/p&gt;  &lt;p&gt;5. That's it , you are done. Save your settings and hit 'Sync'.&lt;/p&gt;  &lt;p&gt;&amp;#xA0;&lt;/p&gt;  &lt;p&gt;This service is going to also introduce another option for us to sync google contacts with a mobile device.&lt;/p&gt;  &lt;p&gt;goosync works with almost all mobile phones as you do not have to install any extra software on your phone. Calendar application is already part of the operating system on the mobile device. GooSync plays the role of proxy to interact with google ( remember you have to authenticate goosync to read in your google cal when you sign up!) and feed in/out the cal events.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-3610612533720446437?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/3610612533720446437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=3610612533720446437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3610612533720446437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3610612533720446437'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/m600i-sync-google-calendar.html' title='m600i , sync google calendar'/><author><name>dc69</name><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-9018409918280339389.post-7693330818105066125</id><published>2007-10-06T16:44:00.001-07:00</published><updated>2007-10-07T11:13:03.832-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tip'/><title type='text'>Rss feed your Gamil</title><content type='html'>&lt;p&gt;Not very commonly known, you can receive your top email subjects via rss feed. Read on to know how &lt;em&gt;&lt;a href="http://mail.google.com/support/bin/answer.py?hl=en&amp;amp;answer=13474"&gt;How do I view Gmail messages with my aggregator?&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-7693330818105066125?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/7693330818105066125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=7693330818105066125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/7693330818105066125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/7693330818105066125'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/rss-feed-your-gamil.html' title='Rss feed your Gamil'/><author><name>dc69</name><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-9018409918280339389.post-6743624796425789297</id><published>2007-10-06T16:38:00.001-07:00</published><updated>2007-10-06T16:38:24.296-07:00</updated><title type='text'>What's your real age ;)</title><content type='html'>check this out , &lt;a href="http://www.poodwaddle.com/realage.swf"&gt;click here&lt;/a&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-6743624796425789297?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/6743624796425789297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=6743624796425789297' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6743624796425789297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/6743624796425789297'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/what-your-real-age.html' title='What&amp;#39;s your real age ;)'/><author><name>dc69</name><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-9018409918280339389.post-5196468776260525974</id><published>2007-10-06T16:25:00.001-07:00</published><updated>2007-10-06T16:32:11.092-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><title type='text'>CodeSnippet Plugin for WindowsLiveWriter</title><content type='html'>This tools is just great , so very often writing a code article one needs to   &lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; background-color: #f4f4f4"&gt;   &lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;     &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 1:&lt;/span&gt; Class CodeSnippet&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 2:&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 3:&lt;/span&gt; &lt;span style="color: #008000"&gt;// with text hilighting&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 4:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;int&lt;/span&gt; a = &lt;span style="color: #0000ff"&gt;int&lt;/span&gt;.MinValue;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 5:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;string&lt;/span&gt; s = &lt;span style="color: #0000ff"&gt;string&lt;/span&gt;.Empty;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 6:&lt;/span&gt;&amp;#xA0; &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 7:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;public&lt;/span&gt; CodeSnippet() &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 8:&lt;/span&gt; {&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#x27;Courier New&amp;#x27;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt; 11:&lt;/span&gt; }&lt;/pre&gt;&lt;br /&gt;  &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;format the code snippets. Not anymore simply paste your code and &lt;a href="http://gallery.live.com/results.aspx?c=0&amp;amp;bt=9&amp;amp;pl=8&amp;amp;st=5"&gt;CodeSnippet&lt;/a&gt; plug-in will do the rest. All you need to do is focus on the content and hit publish! &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-5196468776260525974?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/5196468776260525974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=5196468776260525974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5196468776260525974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5196468776260525974'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/codesnippet-plugin-for.html' title='CodeSnippet Plugin for WindowsLiveWriter'/><author><name>dc69</name><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-9018409918280339389.post-3675801838863520151</id><published>2007-10-06T16:04:00.001-07:00</published><updated>2007-10-06T16:04:00.338-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Atlas ScriptManager Control</title><content type='html'>&lt;p&gt;Very important to learn the basics in atlas ajax programming. NK's &lt;a href="http://www.nikhilk.net/AtlasScriptManager.aspx"&gt;blog&lt;/a&gt; once agian has a sexy introduction to this&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-3675801838863520151?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/3675801838863520151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=3675801838863520151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3675801838863520151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/3675801838863520151'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/atlas-scriptmanager-control.html' title='Atlas ScriptManager Control'/><author><name>dc69</name><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-9018409918280339389.post-5923756029938661682</id><published>2007-10-06T15:58:00.001-07:00</published><updated>2007-10-06T16:04:47.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><title type='text'>Windows Live Writer</title><content type='html'>&lt;p&gt;This is my first 'test' post from windows live writer. It looks very cool and simple to use. Download from &lt;a href="http://windowslivewriter.spaces.live.com/blog/"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-5923756029938661682?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/5923756029938661682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=5923756029938661682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5923756029938661682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/5923756029938661682'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/10/windows-live-writer.html' title='Windows Live Writer'/><author><name>dc69</name><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-9018409918280339389.post-7188700274980484582</id><published>2007-09-05T12:44:00.000-07:00</published><updated>2007-10-06T15:52:02.882-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dot net'/><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Dynamic CascadingDropDownExtender Control and Viewsate</title><content type='html'>Spent some time at work trying to get the cascadingdropdown extender control (that comes with AJAX tollkit ) to work according to my needs. The intention was not to do some thing very complicated , a simple page with dynamic controls ( parent-child chain of dropdowns) being added at runtime. Looking at the sample app that ships with the ajax toolkint tells at best the different usage of each controls\extenders.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Preset a default value: &lt;/strong&gt;One bit where I was challanged in the start was to get my drop downs populated with a default value ( like when you open a page in edit mode ) , it took me a while to figure out that setting &lt;strong&gt;&lt;span style="font-family:courier new;color:#cc0000;"&gt;SelectedValue&lt;/span&gt;&lt;/strong&gt; property of the cacading extender control actually sets the default value and not by simply adding items to the dropdown , something that we would usually do. Another interesting thing to notice was that the default value gets set via &lt;em&gt;an ajax call &lt;/em&gt;after the page is rendered on client side ( browser ).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Viewstate&lt;/strong&gt;: Another thing I did not get working in the first go was , persisting the dropdown viewstate after a post back. The client side script was working its job all fine with the parent-child data coming as response with the asynchronous ajax calls,etc. It was in the end ( when I thot all the hardship is over ) I realised that the selected value of the dropdowns wre not available after a postback ( dejavu... dynamically added controls ). Although I did make sure to give the same ID for the respective dropdowns to have the 'dynamic control viewstate' theory do the rest of the job for me , but not so lucky. After a bit of googling found out that if I add these controls in the &lt;span style="font-family:courier new;color:#cc0000;"&gt;&lt;strong&gt;OnInit&lt;/strong&gt;&lt;/span&gt; function ( override OnInit and add the control dynamically here ) rather than page load it works perfect. .... i always have hate this solution. I ended up using the old asp way of getting the value from the form request bag. ( &lt;span style="font-family:courier new;color:#cc0000;"&gt;&lt;strong&gt;Request.Form[dropdownList1.UniqueID]&lt;/strong&gt;&lt;/span&gt; )&lt;/li&gt;&lt;/ul&gt;&lt;p align="center"&gt;Asp.Net &lt;a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx"&gt;link&lt;/a&gt; for this control. ( &lt;a href="http://forums.asp.net/p/1013839/1944357.aspx#1944357"&gt;forum&lt;/a&gt; )&lt;/p&gt;&lt;p align="center"&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9018409918280339389-7188700274980484582?l=gandhirohan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gandhirohan.blogspot.com/feeds/7188700274980484582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9018409918280339389&amp;postID=7188700274980484582' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/7188700274980484582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9018409918280339389/posts/default/7188700274980484582'/><link rel='alternate' type='text/html' href='http://gandhirohan.blogspot.com/2007/09/cascadingdropdown-control.html' title='Dynamic CascadingDropDownExtender Control and Viewsate'/><author><name>dc69</name><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></feed>
