<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8637201164546148588</atom:id><lastBuildDate>Thu, 19 Dec 2024 03:21:35 +0000</lastBuildDate><category>Asp .Net</category><category>Fun</category><category>Sql Server</category><category>Sql Server 2000</category><category>Asp.Net Interview Question</category><category>C# Interview Questions</category><category>Interview Questions</category><category>Useful Javascript with Asp.Net</category><category>.Net</category><category>Asp .net2.0</category><category>Gridview</category><category>Interview Tips</category><category>Java Script</category><category>.Net 2.0</category><category>.Net Framework</category><category>Asp.net</category><category>C# Charts</category><category>CSS Friendly Toolkit</category><category>Custom Paging</category><category>Decryption</category><category>Encrypt and Decrypt</category><category>Encryption</category><category>Fade Effects With Javascript</category><category>Proper Case Function</category><category>Resize Image with asp .net</category><category>SQL Server function for Count the Occurrence of Character in the string</category><category>SW DEVELOPER&#39;S PROFILE</category><category>.NET 2.0 Repeater</category><category>.NET Framework Conceptual Overview</category><category>.Net Remoting Interview Question</category><category>Adobe PDF Forms with iTextSharp</category><category>Asp .net Cookies</category><category>Blur on Text Image</category><category>CSS In Asp .Net</category><category>Chart</category><category>Charts</category><category>Conceptual Asp .NET</category><category>Conceptual Overview</category><category>Config File</category><category>Config File Overview</category><category>Convert a string to Proper Case</category><category>Cookie In .Net</category><category>Cookies</category><category>Count Occurence</category><category>Custom Paging In Gridview And Datalist</category><category>Datalist</category><category>Datalist Paging</category><category>Delegate and Events</category><category>Dynamic CSS</category><category>Dynamic Style Sheet</category><category>Dynamicly Change Config File</category><category>Encrypt - Decrypt with DES and MD5 Algorithm</category><category>Events</category><category>Export</category><category>Export Import in .Net</category><category>Fade Effects</category><category>Faster Performance</category><category>Field Validator</category><category>Files Reading</category><category>Form Based Authentaction</category><category>Formating In C#</category><category>Forms with iTextSharp</category><category>Function</category><category>GDI +</category><category>Gridview paging</category><category>ICallbackEventHandler</category><category>Image Reflection</category><category>Import</category><category>Import Export Of Excel</category><category>Index and Cursor</category><category>Indexes And Cursors</category><category>Line Chart</category><category>Line Chart in .net</category><category>MD5 and DES</category><category>Normal string Encrypt and Decrypt</category><category>Numeric TextBox</category><category>Occurence Of Character In String</category><category>Overview</category><category>PadLeft Function</category><category>PadRight Function</category><category>Pading Functions</category><category>Paging In Gridview Datalist</category><category>Password</category><category>Questions</category><category>Read File In .Net</category><category>Read Write Cookie</category><category>Read-Write a Cookie in Asp.Net</category><category>Remoting Question</category><category>Rendom password</category><category>Some reading before Interview</category><category>Special Effects</category><category>Sql Server2000</category><category>Store And Retrive File</category><category>String Format</category><category>String Function</category><category>String Methods In C#</category><category>String.Format Method</category><category>Style Sheet</category><category>Techniques</category><category>Templates</category><category>Tips</category><category>Tree View</category><category>Use Custom Paging in Asp.Net With Page Size (Faster Performance)</category><category>Use Delegate and Events in Asp.Net</category><category>Use Form Based Authentication in Asp.Net</category><category>Use Index and Cursor in SQL Server 2000</category><category>Use Regular Expression by JavaScript</category><category>Useful Techniques in Asp.Net</category><category>Validation Expression</category><category>Validations</category><category>iTextSharp</category><title>Milind K Kansagara</title><description></description><link>http://milindkansagara1984.blogspot.com/</link><managingEditor>noreply@blogger.com (MILIND KANSAGARA)</managingEditor><generator>Blogger</generator><openSearch:totalResults>97</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-6040502408689034133</guid><pubDate>Tue, 05 Aug 2014 12:11:00 +0000</pubDate><atom:updated>2014-08-05T05:11:34.879-07:00</atom:updated><title>Magento – Get Current Store Details (ID, Code, Name and Status)</title><description>&lt;DIV dir=ltr&gt;  &lt;DIV style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number1 index0 alt2&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s details&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number2 index1 alt1&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$store&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number3 index2 alt2&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number4 index3 alt1&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s id&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number5 index4 alt2&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeId&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getStoreId();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number6 index5 alt1&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number7 index6 alt2&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s code&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number8 index7 alt1&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeCode&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getCode();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number9 index8 alt2&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number10 index9 alt1&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current website&#39;s id&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number11 index10 alt2&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$websiteId&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getWebsiteId();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number12 index11 alt1&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number13 index12 alt2&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s group id&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number14 index13 alt1&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeGroupId&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getGroupId();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number15 index14 alt2&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number16 index15 alt1&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s name&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number17 index16 alt2&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeName&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getName();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number18 index17 alt1&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number19 index18 alt2&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s sort order&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number20 index19 alt1&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeSortOrder&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getSortOrder();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number21 index20 alt2&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number22 index21 alt1&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s status&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number23 index22 alt2&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeIsActive&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getIsActive();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number24 index23 alt1&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number25 index24 alt2&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s locale&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number26 index25 alt1&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeLocaleCode&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getLocaleCode();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number27 index26 alt2&quot; align=left&gt;&lt;FONT color=#333333   face=Consolas&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number28 index27 alt1&quot; align=left&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php comments&quot;&gt;&lt;FONT color=#008200 face=Consolas&gt;// Gets   the current store&#39;s home url&lt;/FONT&gt;&lt;/CODE&gt;&lt;/DIV&gt;  &lt;DIV   style=&quot;BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 17px; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 16px; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; LETTER-SPACING: normal; PADDING-RIGHT: 16px; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: pre !important; BACKGROUND: white; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; WORD-SPACING: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none; -webkit-text-stroke-width: 0px&quot;   class=&quot;line number29 index28 alt2&quot; align=left&gt;&lt;FONT face=Consolas&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php variable&quot;&gt;&lt;FONT   color=#aa7700&gt;$storeHomeUrl&lt;/FONT&gt;&lt;/CODE&gt;&lt;FONT color=#333333&gt; &lt;/FONT&gt;&lt;CODE   style=&quot;BACKGROUND-IMAGE: none; BOX-SIZING: content-box !important; BORDER-BOTTOM: 0px; POSITION: static !important; TEXT-ALIGN: left !important; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 13.2pt; MARGIN: 0px; OUTLINE-STYLE: none !important; OUTLINE-COLOR: invert !important; PADDING-LEFT: 0px !important; OUTLINE-WIDTH: 0px !important; WIDTH: auto !important; BOTTOM: auto !important; BACKGROUND-ATTACHMENT: scroll; PADDING-RIGHT: 0px !important; DISPLAY: inline !important; BACKGROUND-REPEAT: repeat; FONT-FAMILY: ; DIRECTION: ltr !important; WHITE-SPACE: nowrap; BACKGROUND-POSITION: 0% 0%; FLOAT: none !important; HEIGHT: auto !important; COLOR: ; VERTICAL-ALIGN: baseline !important; OVERFLOW: visible !important; BORDER-TOP: 0px; RIGHT: auto !important; BORDER-RIGHT: 0px; PADDING-TOP: 0px !important; TOP: auto !important; LEFT: auto !important; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; -webkit-box-shadow: none; box-shadow: none&quot; class=&quot;php plain&quot;&gt;=   Mage::app()-&amp;gt;getStore()-&amp;gt;getHomeUrl();&lt;/CODE&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2014/08/magento-get-current-store-details-id.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-5009430184364386141</guid><pubDate>Tue, 22 Jul 2014 12:46:00 +0000</pubDate><atom:updated>2014-07-22T05:46:53.789-07:00</atom:updated><title>Paypal IPN History page</title><description>&lt;DIV dir=ltr&gt;  &lt;DIV style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt;  &lt;H1&gt;&lt;FONT size=5&gt;Paypal IPN History page&lt;/FONT&gt;&lt;/H1&gt;  &lt;DIV&gt;&lt;SPAN&gt;To view the Instant Payment Notification (IPN) sent to your server,   and the status, go to &quot;History&quot; at the top of the page, and select &quot;IPN History&quot;   from the list. &lt;/SPAN&gt;&lt;/DIV&gt;  &lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;  &lt;P&gt;&lt;SPAN&gt;You can also follow these steps: &lt;/SPAN&gt;&lt;/P&gt;  &lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;  &lt;OL style=&quot;LIST-STYLE-TYPE: decimal&quot;&gt;    &lt;LI&gt;Go to the PayPal website and log in to your account.     &lt;LI&gt;Click &quot;Profile&quot; at the top of the page.     &lt;LI&gt;Click &quot;Instant Payment Notification Preferences&quot; in the Selling     Preferences column.     &lt;LI&gt;Click &quot;IPN History page&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2014/07/paypal-ipn-history-page.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8833534921778101069</guid><pubDate>Tue, 22 Jul 2014 10:09:00 +0000</pubDate><atom:updated>2014-07-22T03:09:07.329-07:00</atom:updated><title>Genrate Excel and CSV File in Asp.Net</title><description>&lt;DIV dir=ltr&gt;  &lt;DIV style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt;  &lt;H1 class=&quot;title entry-title&quot; itemprop=&quot;name&quot;&gt;&lt;A   href=&quot;http://abhimjoshi.blogspot.com/2007/04/genrate-excel-and-csv-file-in-aspnet.html&quot;   rel=bookmark itemprop=&quot;url&quot;&gt;&lt;FONT face=&quot;Times New Roman&quot;&gt;Genrate Excel and CSV   File in Asp.Net&lt;/FONT&gt;&lt;/A&gt;&lt;/H1&gt;  &lt;DIV class=&quot;title entry-title&quot; itemprop=&quot;name&quot;&gt;&amp;nbsp;&lt;/DIV&gt;  &lt;DIV&gt;&lt;SPAN style=&quot;FONT-FAMILY: &quot;&gt;&lt;FONT   face=&quot;Trebuchet MS&quot;&gt;&lt;STRONG&gt;&lt;SPAN&gt;Generate Excel File from Datagrid or GridView   in   Asp.Net&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN&gt;=================================================&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR&gt;[code]&lt;BR&gt;private   void GenerateExcelFile(DataSet dsData)&lt;BR&gt;{&lt;BR&gt;DataTable objDataTable = new   DataTable();&lt;BR&gt;&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;PageTitle&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;MetaData&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;Title&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;Price&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;PriceRetail&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;StyleNumber&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;DescShort&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;DescLong&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;SmallImage&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;LargeImage&quot;));&lt;BR&gt;objDataTable.Columns.Add(new   DataColumn(&quot;DateDownload&quot;));&lt;BR&gt;&lt;BR&gt;foreach (DataRow dr in   dsData.Tables[0].Rows)&lt;BR&gt;{&lt;BR&gt;DataRow ObjDr =   objDataTable.NewRow();&lt;BR&gt;&lt;BR&gt;ObjDr[&quot;PageTitle&quot;] =   dr[&quot;PageTitle&quot;];&lt;BR&gt;ObjDr[&quot;MetaData&quot;] = dr[&quot;MetaData&quot;];&lt;BR&gt;ObjDr[&quot;Title&quot;] =   dr[&quot;Title&quot;];&lt;BR&gt;ObjDr[&quot;Price&quot;] = dr[&quot;Price&quot;];&lt;BR&gt;ObjDr[&quot;PriceRetail&quot;] =   dr[&quot;PriceRetail&quot;];&lt;BR&gt;ObjDr[&quot;StyleNumber&quot;] =   dr[&quot;StyleNumber&quot;];&lt;BR&gt;ObjDr[&quot;DescShort&quot;] = dr[&quot;DescShort&quot;];&lt;BR&gt;ObjDr[&quot;DescLong&quot;]   = dr[&quot;DescLong&quot;];&lt;BR&gt;ObjDr[&quot;SmallImage&quot;] =   dr[&quot;SmallImage&quot;];&lt;BR&gt;ObjDr[&quot;LargeImage&quot;] =   dr[&quot;LargeImage&quot;];&lt;BR&gt;ObjDr[&quot;DateDownload&quot;] =   dr[&quot;DateDownload&quot;];&lt;BR&gt;&lt;BR&gt;objDataTable.Rows.Add(ObjDr);&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;System.IO.StringWriter   objStringWriter = new System.IO.StringWriter();&lt;BR&gt;HtmlTextWriter   objHtmlTextWriter = new   HtmlTextWriter(objStringWriter);&lt;BR&gt;Response.Clear();&lt;BR&gt;Response.Charset =   &quot;&quot;;&lt;BR&gt;Response.ContentType =   &quot;application/vnd.ms-excel&quot;;&lt;BR&gt;Response.AddHeader(&quot;Content-Disposition&quot;,   &quot;attachment; filename=File.xls;&quot;);&lt;BR&gt;&lt;BR&gt;DataGrid dg = new   DataGrid();&lt;BR&gt;dg.DataSource =   objDataTable;&lt;BR&gt;dg.DataBind();&lt;BR&gt;&lt;BR&gt;dg.RenderControl(objHtmlTextWriter);&lt;BR&gt;Response.Write(objStringWriter.ToString());&lt;BR&gt;Response.End();&lt;BR&gt;}&lt;BR&gt;[/code]&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN   style=&quot;FONT-FAMILY: &quot;&gt;&lt;FONT face=&quot;Trebuchet MS&quot;&gt;  &lt;DIV&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face=&quot;Trebuchet MS&quot;&gt;&lt;SPAN&gt;Generate CSV File in   Asp.Net&lt;/SPAN&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT   face=&quot;Trebuchet MS&quot;&gt;========================&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;  &lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT   face=&quot;Trebuchet MS&quot;&gt;[code]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT   face=&quot;Trebuchet MS&quot;&gt;private void GenerateCSV(DataSet   dsData)&lt;BR&gt;{&lt;BR&gt;System.Text.StringBuilder objSB = new   System.Text.StringBuilder();&lt;BR&gt;&lt;BR&gt;// Looping trough Fields name of   Database&lt;BR&gt;for (int i = 0; i &amp;lt;= dsData.Tables[0].Columns.Count - 1;   i++)&lt;BR&gt;{&lt;BR&gt;if (i &amp;lt; dsData.Tables[0].Columns.Count -   1)&lt;BR&gt;{&lt;BR&gt;objSB.Append(dsData.Tables[0].Columns[i].ColumnName.ToString() +   &quot;\t&quot;);&lt;BR&gt;}&lt;BR&gt;else&lt;BR&gt;{&lt;BR&gt;objSB.Append(dsData.Tables[0].Columns[i].ColumnName.ToString()   + &quot;\r\n&quot;);&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;// Looping through Every rows and column.&lt;BR&gt;for (int i   = 0; i &amp;lt;= dsData.Tables[0].Rows.Count - 1; i++)&lt;BR&gt;{&lt;BR&gt;for (int j = 0; j   &amp;lt;= dsData.Tables[0].Columns.Count - 1; j++)&lt;BR&gt;{&lt;BR&gt;if (j &amp;lt;   dsData.Tables[0].Columns.Count -   1)&lt;BR&gt;{&lt;BR&gt;objSB.Append(dsData.Tables[0].Rows[i][j].ToString() +   &quot;\t&quot;);&lt;BR&gt;}&lt;BR&gt;else&lt;BR&gt;{&lt;BR&gt;objSB.Append(string.IsNullOrEmpty(dsData.Tables[0].Rows[i][j].ToString())   ? &quot;-&quot; : dsData.Tables[0].Rows[i][j].ToString() +   &quot;\r\n&quot;);&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;}&lt;BR&gt;&lt;BR&gt;Response.Clear();&lt;BR&gt;Response.Charset =   &quot;&quot;;&lt;BR&gt;Response.ContentType =   &quot;application/vnd.ms-excel&quot;;&lt;BR&gt;Response.AddHeader(&quot;Content-Disposition&quot;,   &quot;attachment;   filename=File.csv;&quot;);&lt;BR&gt;&lt;BR&gt;Response.Write(objSB.ToString());&lt;BR&gt;Response.End();&lt;BR&gt;}&lt;/FONT&gt;&lt;/DIV&gt;  &lt;DIV&gt;&lt;FONT   face=&quot;Trebuchet MS&quot;&gt;[/code]&lt;/FONT&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2014/07/genrate-excel-and-csv-file-in-aspnet.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-963795352978913915</guid><pubDate>Tue, 13 Mar 2012 13:47:00 +0000</pubDate><atom:updated>2012-03-13T06:47:30.380-07:00</atom:updated><title>Display youtube video in asp.net mvc using &quot;YouTubePlayerHelper&quot;</title><description>&lt;DIV dir=ltr&gt; &lt;DIV style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt; &lt;DIV&gt;Here i am explaining how you can display youtube video in asp.net mvc page  using &quot;YouTubePlayerHelper&quot;. Using &quot;YouTubePlayerHelper&quot; you have to just pass  youtube media file name and id of the player. You can also pass the you-tube  player option like width, height, color and border which are optional.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;How to used &quot;YouTubePlayerHelper&quot;in asp.net mvc page ?&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;It is simple just add namespace where your &quot;YouTubePlayerHelper&quot;class  reside and then add the following code in your asp.net mvc page.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;For &quot;YouTubePlayerHelper&quot; you can download from here.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;%@ Import Namespace=&quot;Lesson1.Helpers&quot; %&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;%= Html.YouTubePlayer(&quot;test&quot;,&quot;3sdJtQWlVrI&quot;, new YouTubePlayerOption {  Width = 480, Height = 385, PrimaryColor = System.Drawing.Color.White,  SecondaryColor = System.Drawing.Color.Pink,Border= true })%&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[\code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Here i am just pass the youtube video file name &quot;3sdJtQWlVrI&quot; and pass the  some option for displaying youtube video in my asp.net mvc page.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Here one question arise in your mide that Why i am creating  &quot;YouTubePlayerHelper&quot; class?? It is simple to just right down the embedded code  and give all the option and display youtube video just simple then.....&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Because of creating &quot;YouTubePlayerHelper&quot; class is you have not right down  the whole embedded code each and every page where you need ti display youtube  video. If changes occurs in embedded code you have to just change  &quot;YouTubePlayerHelper&quot; class nothing else.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2012/03/display-youtube-video-in-aspnet-mvc.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-3600003656543445033</guid><pubDate>Tue, 13 Mar 2012 12:56:00 +0000</pubDate><atom:updated>2012-03-13T05:56:14.369-07:00</atom:updated><title>jQuery AdRotator like ASP.NET AdRotator Control</title><description>&lt;DIV dir=ltr&gt; &lt;DIV style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt; &lt;DIV&gt;ASP.NET AdRotator control is a useful to randomly display advertisements on  the page. But asp.net AdRotator control only display adv when page is refresh.  In this article i describe how to create AdRotator control using jQuery without  adding asp.net Adrotator control and it refresh Adv at interval time no need to  refresh the page. Using jQuery you have to just pass only three parameters  intervalTime,&lt;/DIV&gt; &lt;DIV&gt;xmlFileName and keywords.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Following steps are used to create jQuery AdRotator&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step1 : Here i am using same xml file which is used by asp.net AdRotator  control. But i have changed little bit in the xml file. Here i have add  &quot;Keywords&quot; as a attribute of the tag and also remove tag from the tag. So create  one xml file say &quot;AR.xml&quot; file using following xml.&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;Advertisements&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;Ad Keyword=&quot;big&quot;&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;ImageUrl&amp;gt;image/AR1.jpg&amp;lt;/ImageUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;NavigateUrl&amp;gt;&lt;A  href=&quot;http://www.google.com&quot;&gt;http://www.google.com&lt;/A&gt;&amp;lt;/NavigateUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;AlternateText&amp;gt;ASP.NET MVC 1.0 Quickly&amp;lt;/AlternateText&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;/Ad&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;Ad Keyword=&quot;small&quot;&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;ImageUrl&amp;gt;image/AR2.jpg&amp;lt;/ImageUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;NavigateUrl&amp;gt;&lt;A  href=&quot;http://www.yahoo.com&quot;&gt;http://www.yahoo.com&lt;/A&gt;&amp;lt;/NavigateUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;AlternateText&amp;gt;ASP.NET 3.5 Social  Networking&amp;lt;/AlternateText&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;/Ad&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;Ad Keyword=&quot;small&quot;&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;ImageUrl&amp;gt;image/AR3.jpg&amp;lt;/ImageUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;NavigateUrl&amp;gt;&lt;A  href=&quot;http://www.live.com&quot;&gt;http://www.live.com&lt;/A&gt;&amp;lt;/NavigateUrl&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;AlternateText&amp;gt;ASP.NET 3.5 Application  Architecture&amp;lt;/AlternateText&amp;gt; &lt;/DIV&gt; &lt;DIV&gt;&amp;lt;/Ad&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;/Advertisements&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 2: Then add following four script file in &quot;js&quot; folder and refrence  this four file in your page&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot;  src=&quot;js/jquery-1.4.1.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot;  src=&quot;js/jquery.xml2json.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot;  src=&quot;js/jquery.metadata.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;js/AR.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 3: Here i have create two diffrent way to display Adv&lt;/DIV&gt; &lt;DIV&gt;1) Without using metadata&lt;/DIV&gt; &lt;DIV&gt;2) Using metadata&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;1) Without using metadata&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 1: In without using metadata you have to pass three parameter that is  intervalTime,xmlFileName and keywords in the javascript block.Add one javscript  block in the header section after adding four javascript refrence file.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;$(document).ready(function () {&lt;/DIV&gt; &lt;DIV&gt;$(&quot;#ARDiv&quot;).adrotator({ intervalTime: 10000, xmlFileName: &#39;AR.xml&#39;,  keywords: &#39;small&#39; }); &lt;/DIV&gt; &lt;DIV&gt;});&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 2: Now add one div tag between the body tag and give id &quot;ARDiv&quot; to  that tag&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;div id=&quot;ARDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 3: Now run the page and see the result after 10 second Adv image will  be changed and only display those Adv image which have keywords &quot;small&quot;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;1) Using metadata&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 1: In using metadata you have to pass three parameter that is  intervalTime, xmlFileName and keywords not in the javascript block but you have  to pass tree paramter to div tag this way and add this div tag between body  tag.&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;div id=&quot;ARDiv1&quot; class=&quot;{ intervalTime: 10000, xmlFileName: &#39;AR.xml&#39;,  keywords: &#39;small&#39; }&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 2: Now add one javscript block in the header section&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;[code]&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;$(document).ready(function () {&lt;/DIV&gt; &lt;DIV&gt;$(&quot;#ARDiv1&quot;).adrotator(); &lt;/DIV&gt; &lt;DIV&gt;});&lt;/DIV&gt; &lt;DIV&gt;&amp;lt;/script&amp;gt;&lt;/DIV&gt; &lt;DIV&gt;[/code]&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Step 3: Now run the page and see the result after 10 second Adv image will  be changed and only display those Adv image which have keywords &quot;small&quot;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;Here i am just do simple way. But your suggestion give me better idea to  improve this script.&lt;/DIV&gt; &lt;DIV&gt;You can download code from here.&lt;/DIV&gt; &lt;DIV  style=&quot;FONT-FAMILY: &#39;Calibri&#39;; COLOR: #000000; FONT-SIZE: 12pt&quot;&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2012/03/jquery-adrotator-like-aspnet-adrotator.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-484813612686787942</guid><pubDate>Wed, 08 Dec 2010 08:38:00 +0000</pubDate><atom:updated>2010-12-27T01:29:36.991-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><title>Fw: Pencil and Eraser-Inspirational</title><description>&lt;div&gt;&lt;/div&gt;&lt;a href=&quot;http://groups.yahoo.com/group/kanika-sweet/join&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Fun, Celebrities, Bollywood, Poems, Jokes, Videos &amp;amp; More Only @                                Kanika-sweetz.blogspot.com&quot;&gt;&lt;span style=&quot;color: green; font-family: Tahoma; font-size: medium;&quot;&gt;&lt;b title=&quot;http://groups.yahoo.com/group/kanika-sweet/join
CTRL + Click to follow link&quot;&gt;Pencil  : I&#39;m sorry....&lt;br /&gt;
&lt;br /&gt;
Eraser : For what? You didn&#39;t do anything  wrong.&lt;br /&gt;
&lt;br /&gt;
Pencil : I&#39;&lt;span title=&quot;http://groups.yahoo.com/group/kanika-sweet/join
CTRL + Click to follow link&quot;&gt;m  so&lt;/span&gt;rry because you get hurt because of me. Whenever I made a mistake,  &lt;br /&gt;
you&#39;re always there to erase it. But as you make my mistakes vanish, you  &lt;br /&gt;
lose a part of yourself. You get smaller and smaller each  time.&lt;br /&gt;
&lt;br /&gt;
Eraser : That&#39;s true. But I don&#39;t really mind. You see, I was made  to do this. &lt;br /&gt;
I was made to help you whenever you do something wrong. Even  though one day, &lt;br /&gt;
I know I&#39;ll be gone and you&#39;ll replace me with a new one,  I&#39;m actually happy with &lt;br /&gt;
my job. So please, stop worrying. &lt;br /&gt;
I hate seeing  you sad. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I found this conversation between the pencil and the  eraser very inspirational. &lt;br /&gt;
Parents are like the eraser whereas their  children are the pencil. They&#39;re always &lt;br /&gt;
there for their children, cleaning  up their mistakes. Sometimes along the way... &lt;br /&gt;
they get hurt, and become  smaller (older, and eventually pass on). Though their &lt;br /&gt;
children will  eventually find someone new (spouse), but parents are still happy &lt;br /&gt;
with what  they do for their children, and will always hate seeing their precious ones  worrying, or sad.&lt;br /&gt;
&lt;br /&gt;
This Is for all Parents Out  There.....&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/12/fw-pencil-and-eraser-inspirational.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-9190420803452281753</guid><pubDate>Wed, 08 Dec 2010 08:37:00 +0000</pubDate><atom:updated>2010-12-27T01:29:50.573-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><title>Pencil and Eraser-Inspirational</title><description>&lt;a href=&quot;http://groups.yahoo.com/group/kanika-sweet/join&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Fun, Celebrities, Bollywood, Poems, Jokes, Videos &amp;amp; More Only @                                Kanika-sweetz.blogspot.com&quot;&gt;&lt;span style=&quot;color: green; font-family: Tahoma; font-size: medium;&quot;&gt;&lt;b title=&quot;http://groups.yahoo.com/group/kanika-sweet/join
CTRL + Click to follow link&quot;&gt;Pencil  : I&#39;m sorry....&lt;br /&gt;
&lt;br /&gt;
Eraser : For what? You didn&#39;t do anything  wrong.&lt;br /&gt;
&lt;br /&gt;
Pencil : I&#39;&lt;span title=&quot;http://groups.yahoo.com/group/kanika-sweet/join
CTRL + Click to follow link&quot;&gt;m  so&lt;/span&gt;rry because you get hurt because of me. Whenever I made a mistake,  &lt;br /&gt;
you&#39;re always there to erase it. But as you make my mistakes vanish, you  &lt;br /&gt;
lose a part of yourself. You get smaller and smaller each  time.&lt;br /&gt;
&lt;br /&gt;
Eraser : That&#39;s true. But I don&#39;t really mind. You see, I was made  to do this. &lt;br /&gt;
I was made to help you whenever you do something wrong. Even  though one day, &lt;br /&gt;
I know I&#39;ll be gone and you&#39;ll replace me with a new one,  I&#39;m actually happy with &lt;br /&gt;
my job. So please, stop worrying. &lt;br /&gt;
I hate seeing  you sad. :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I found this conversation between the pencil and the  eraser very inspirational. &lt;br /&gt;
Parents are like the eraser whereas their  children are the pencil. They&#39;re always &lt;br /&gt;
there for their children, cleaning  up their mistakes. Sometimes along the way... &lt;br /&gt;
they get hurt, and become  smaller (older, and eventually pass on). Though their &lt;br /&gt;
children will  eventually find someone new (spouse), but parents are still happy &lt;br /&gt;
with what  they do for their children, and will always hate seeing their precious ones  worrying, or sad.&lt;br /&gt;
&lt;br /&gt;
This Is for all Parents Out  There.....&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;  &lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/12/pencil-and-eraser-inspirational.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-4435295928779452036</guid><pubDate>Fri, 19 Nov 2010 13:15:00 +0000</pubDate><atom:updated>2010-11-19T05:15:34.454-08:00</atom:updated><title>Tower Of Hanoi</title><description>&lt;DIV&gt;&lt;FONT face=Calibri&gt;[Code]&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT  face=Calibri&gt;&amp;nbsp;#include&amp;lt;stdio.h&amp;gt;&lt;BR&gt;&amp;nbsp;#include&amp;lt;conio.h&amp;gt;&lt;BR&gt;&amp;nbsp;#include&amp;lt;math.h&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&amp;nbsp;void hanoi(int x, char from,char to,char  aux)&lt;BR&gt;&amp;nbsp;{&lt;BR&gt;&amp;nbsp; if(x==1)&lt;BR&gt;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp; printf(&quot;Move Disk  From %c to %c\n&quot;,from,to);&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;&amp;nbsp; else&lt;BR&gt;&amp;nbsp;  {&lt;BR&gt;&amp;nbsp;&amp;nbsp; hanoi(x-1,from,aux,to);&lt;BR&gt;&amp;nbsp;&amp;nbsp; printf(&quot;Move Disk From  %c to %c\n&quot;,from,to);&lt;BR&gt;&amp;nbsp;&amp;nbsp; hanoi(x-1,aux,to,from);&lt;BR&gt;&amp;nbsp;  }&lt;BR&gt;}&lt;BR&gt;void main()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;int disk;&lt;BR&gt;&amp;nbsp;int  moves;&lt;BR&gt;&amp;nbsp;clrscr();&lt;BR&gt;&amp;nbsp;printf(&quot;Enter the number of disks you want to  play  with:&quot;);&lt;BR&gt;&amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;disk);&lt;BR&gt;&amp;nbsp;moves=pow(2,disk)-1;&lt;BR&gt;&amp;nbsp;printf(&quot;\nThe  No of moves required is=%d  \n&quot;,moves);&lt;BR&gt;&amp;nbsp;hanoi(disk,&#39;A&#39;,&#39;C&#39;,&#39;B&#39;);&lt;BR&gt;&amp;nbsp;getch();&lt;BR&gt;}&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;[/Code]&lt;/FONT&gt;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/tower-of-hanoi.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-484952463349054009</guid><pubDate>Thu, 18 Nov 2010 09:22:00 +0000</pubDate><atom:updated>2010-12-27T01:30:34.982-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><title>Law of simplicity</title><description>I came across an interesting set of principles that you might want to  keep&lt;br /&gt;
in mind the next time you set out to design an application, a website,  or even&lt;br /&gt;
improve your daily life. They are &lt;b&gt;&lt;i&gt;The Laws of  Simplicity&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
and were conceived by John Maeda, an artist and  noted computer scientist from&lt;br /&gt;
the MIT Media Lab. He compiled them in a short,  100-page book (and posted them&lt;br /&gt;
on his website as well). I found them in a  back issue of &lt;span class=&quot;GramE&quot;&gt;Wired&lt;/span&gt;&lt;br /&gt;
magazine, in an article  that&amp;nbsp;applied them&amp;nbsp;in&lt;br /&gt;
a&amp;nbsp;critique&amp;nbsp;some new gadget. I have  since found that they increasingly&lt;br /&gt;
influence my own analysis of UIs and  websites, and &lt;span class=&quot;SpellE&quot;&gt;occassionally&lt;/span&gt;&lt;br /&gt;
use them as&amp;nbsp;the  basis for discussions with clients to keep a design&lt;br /&gt;
session on track.&lt;br /&gt;
The Laws are:&lt;br /&gt;
1. Reduce – The simplest way to achieve simplicity is through&lt;br /&gt;
thoughtful  reduction of functionality.&lt;br /&gt;
2. Organize – Organization makes a system of many appear fewer.&lt;br /&gt;
3. Time – Savings in time feel like simplicity.&lt;br /&gt;
4. Learn – Knowledge makes everything simpler.&lt;br /&gt;
5. Differences – Simplicity and complexity need each other.&lt;br /&gt;
6. Context – What lies in the periphery of simplicity is &lt;span class=&quot;SpellE&quot;&gt;de&lt;span class=&quot;GramE&quot;&gt;?nitely&lt;/span&gt;&lt;/span&gt; not peripheral.&lt;br /&gt;
7. Emotion – More emotions are better than less.&lt;br /&gt;
8. Trust – In simplicity we trust.&lt;br /&gt;
9. Failure – Some things can never be made simple.&lt;br /&gt;
10. The One – Simplicity is about subtracting the obvious, and adding  the&lt;br /&gt;
meaningful.&lt;br /&gt;
You can find a more detailed explanation of each law on his &lt;a href=&quot;http://lawsofsimplicity.com/category/laws?order=ASC&quot; target=&quot;_blank&quot; title=&quot;http://lawsofsimplicity.com/category/laws?order=ASC&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue; text-decoration: none;&quot;&gt;site&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/law-of-simplicity.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8788293285353220962</guid><pubDate>Thu, 18 Nov 2010 09:21:00 +0000</pubDate><atom:updated>2010-11-18T01:21:50.445-08:00</atom:updated><title>guidelines for asp.net development</title><description>&lt;P&gt;&amp;lt;!–&lt;/P&gt; &lt;DIV class=Section1&gt; &lt;P style=&quot;TEXT-ALIGN: center&quot; class=MsoNormal&gt;ASP.NET  Development&lt;BR&gt;guidelines&lt;/P&gt; &lt;P style=&quot;TEXT-ALIGN: center&quot; class=MsoNormal&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;&lt;STRONG&gt;Guidelines&lt;BR&gt;for  ASP.NET AJAX&lt;BR&gt;Performance Improvement&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;Among the 95% of the .NET developers that said they  are&lt;BR&gt;using some flavor of Ajax either in production, development or prototype,  the&lt;BR&gt;most used AJAX Framework is ASP.NET AJAX, with 73,7%, followed by the  Ajax&lt;BR&gt;Control Toolkit which is used by almost half of the .NET developer that  are&lt;BR&gt;using Ajax.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;However ASP.NET AJAX model is showing performance  problem.&lt;BR&gt;The web application developed in ASP.NET AJAX makes the site slow  down.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;So following are the few of guideline which will help  you&lt;BR&gt;out to improve performance of ASP.NET AJAX application. This will  basically&lt;BR&gt;apply to the ASP.NET AJAX version 1.0 final release.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Use HttpWatch to check the network traffic.    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;This is one of important tool using which you can check      the data returned by&lt;BR&gt;the server. There is dedicated tool available for      this. Moreover to that&lt;BR&gt;you can also utilize Firebux extension of firefox      to watch network&lt;BR&gt;traffic. The dedicated tool is available for the      download from following&lt;BR&gt;URL: http://www.httpwatch.com/download/.      &lt;P&gt;This is a limited feature version. &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Use &quot;ScriptReferenceProfile&quot; to show Javascript reference    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;ScriptReferenceProfiler is an open source tool on      CodePlex, for analysis the JavaScript&lt;BR&gt;references of ASP.NET AJAX, we can      simply add the following code to our&lt;BR&gt;page in order to show the JavaScript      references imported by&lt;BR&gt;ScriptManager.      &lt;P&gt;&amp;lt;microsoft:scriptreferenceprofiler runat=&quot;server&quot;&amp;gt;  &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P style=&quot;MARGIN-LEFT: 0.75in&quot; class=MsoNormal&gt;&amp;lt;/microsoft&lt;SPAN  class=GramE&gt;:scriptreferenceprofiler&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; &lt;P style=&quot;MARGIN-LEFT: 0.75in&quot; class=MsoNormal&gt;&lt;/P&gt; &lt;P style=&quot;MARGIN-LEFT: 0.75in&quot; class=MsoNormal&gt;You can obtain it from the  following URL&lt;/P&gt; &lt;P style=&quot;MARGIN-LEFT: 0.75in&quot; class=MsoNormal&gt;&lt;/P&gt; &lt;P style=&quot;MARGIN-LEFT: 0.75in&quot; class=MsoNormal&gt;Reference:  http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=13356&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Web.Config Optimization    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;To have optimized web.config file our application, all      we need to do is to&lt;BR&gt;have a compression and caching is enabled in      web.config file for the&lt;BR&gt;ASP.NET AJAX Includes. You can use the following      code in web.config file&lt;BR&gt;to enable compression &amp;amp; caching for AJAX      includes.      &lt;P&gt;&amp;lt;system.web.extensions&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;scripting&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;scriptResourceHandler enableCompression=&quot;true&quot;      enableCaching=&quot;true&quot;/&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;/scripting&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;/system.web.extensions&amp;gt;&lt;/P&gt;     &lt;P&gt;Also check before and after result of before and after of      enabling&lt;BR&gt;caching &amp;amp; compression in network traffic.&lt;/P&gt;     &lt;P&gt;Now this is limited to the compression and caching for AJAX includes. In      our site we also&lt;BR&gt;generally have many other script files included. There      can also be no. of&lt;BR&gt;different CSS files, JS files etc. We can also      compress them so that &lt;SPAN class=GramE&gt;It&lt;/SPAN&gt; make fewer request in      bytes.&lt;/P&gt;     &lt;P&gt;Basically there is no any method available in ASP.NET which allows      the&lt;BR&gt;compression of JS &amp;amp; CSS files. We need to do it manually      and&lt;BR&gt;reference those compressed file in our application.&lt;/P&gt;     &lt;P&gt;One very key important point to consider is related to change      management&lt;BR&gt;of those files. Once you have compressed file in place and      referenced in&lt;BR&gt;your different pages, &lt;SPAN class=GramE&gt;If&lt;/SPAN&gt; your JS      file or CSS&lt;BR&gt;file need to have any modification, then you again have to      recompress it&lt;BR&gt;from newer version.&lt;/P&gt;     &lt;P&gt;So this method should be adopted for such scripts or CSS which are      less&lt;BR&gt;frequently changed.&lt;/P&gt;     &lt;P&gt;There are different tools available which allows your script and CSS      file&lt;BR&gt;compression. Following are the different methods which can be used      for&lt;BR&gt;this purpose.&lt;/P&gt;     &lt;P&gt;1) Yahoo compresser (http://yui.2clics.net/)&lt;/P&gt;     &lt;P&gt;2) &lt;A      href=&quot;http://www.vlead.in/resources/tools/minify-javascript/index.php&quot;&gt;http://www.vlead.in/resources/tools/minify-javascript/index.php&lt;/A&gt;&lt;BR&gt;(The      best one which I utilized) &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Optimization of ScriptManager    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;The ScriptManager control manages client script for      AJAX-enabled ASP.NET Web&lt;BR&gt;pages. By default, the ScriptManager control      registers the script for the&lt;BR&gt;Microsoft AJAX Library with the page. This      enables client script to use&lt;BR&gt;the type system extensions and to support      features such as partial-page&lt;BR&gt;rendering and Web-service calls. Following,      we need to &lt;SPAN class=GramE&gt;setting&lt;/SPAN&gt;&lt;BR&gt;the property of ScriptManager      to optimize the performance of ASP.NET&lt;BR&gt;AJAX.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 117pt&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;Set  &quot;scriptMode&quot; to Release.&lt;/P&gt; &lt;P&gt;for e.g.&lt;/P&gt; &lt;P&gt;&amp;lt;asp&lt;SPAN class=GramE&gt;:ScriptManager&lt;/SPAN&gt;  ID=&quot;ScriptManager1″&lt;BR&gt;runat=&quot;server&quot; ScriptMode=&quot;Release&quot;&amp;gt;&lt;/P&gt; &lt;P&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/P&gt; &lt;P&gt;Moreover to this set &quot;debug&quot; mode in &quot;compilation&quot; section of web.config  file&lt;BR&gt;to &lt;EM&gt;false&lt;/EM&gt;.&lt;/P&gt; &lt;P&gt;&amp;lt;!--[if !supportLineBreakNewLine]--&amp;gt;&lt;BR&gt;&amp;lt;!--[endif]--&amp;gt;&lt;/P&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 117pt&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;Disable  partial page rendering&lt;/P&gt; &lt;P&gt;If we using the UpdatePanel in the page, we must set this property to  true,&lt;BR&gt;conversely, if the UpdatePanel is not using in our page, it would be  better&lt;BR&gt;that we set the EnablePartialRendering to false.&lt;/P&gt; &lt;P&gt;For e.g.&lt;/P&gt; &lt;P&gt;&amp;lt;asp:ScriptManager ID=&quot;ScriptManager1″  runat=&quot;server&quot;&lt;BR&gt;EnablePartialRendering=&quot;false&quot;&amp;gt;&lt;/P&gt; &lt;P&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Move All Script Tags After Body Content    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;ASP.NET ScriptManager control has a property      &quot;LoadScriptsBeforeUI&quot;, when set to&lt;BR&gt;false, should load all      AJAX&lt;BR&gt;framework scripts after the content of the page. But it does      not&lt;BR&gt;effectively push down all scripts after the content. Some      framework&lt;BR&gt;scripts, extender scripts and other scripts registered by Ajax      Control&lt;BR&gt;Toolkit still load before the page content loads.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;So these are the basic general guidelines which can  be&lt;BR&gt;followed one by one to have an improved ASP.NET AJAX response.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&lt;BR  style=&quot;PAGE-BREAK-BEFORE: always&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;&lt;STRONG&gt;Guideline&lt;BR&gt;for  ASP.NET Application Performance&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;Following, I will demonstrate some of important  guideline&lt;BR&gt;for the improvement of ASP.NET application. These guidelines should  be&lt;BR&gt;implemented carefully by taking into consideration of development needs.  It is&lt;BR&gt;not necessary to have all following steps followed.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Removing unnecessary HTTP MODUES from site.    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;There&lt;SPAN class=GramE&gt; are&lt;/SPAN&gt; several ASP.NET      default HttpModules which&lt;BR&gt;sit in the request pipeline and intercept each      and every request.      &lt;P&gt;For example, if you aren&#39;t using Membership and Profile provider,      you&lt;BR&gt;don&#39;t need &quot;FormsAuthentication&quot; module. If you aren&#39;t using      Windows&lt;BR&gt;Authentication for your users, you don&#39;t need      &quot;WindowsAuthentication&quot;.&lt;/P&gt;     &lt;P&gt;We can remove those unnecessary references of HTTP modules      from&lt;BR&gt;web.config using &amp;lt;remove&amp;gt; tag.&lt;/P&gt;     &lt;P&gt;Generally following are the HTTP modules which are not generally used      in&lt;BR&gt;our current development architecture.&lt;/P&gt;     &lt;P&gt;&amp;lt;remove name=&quot;WindowsAuthentication&quot; /&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;remove name=&quot;PassportAuthentication&quot; /&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;remove name=&quot;AnonymousIdentification&quot; /&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;remove name=&quot;UrlAuthorization&quot; /&amp;gt;&lt;/P&gt;     &lt;P&gt;&amp;lt;remove name=&quot;FileAuthorization&quot; /&amp;gt; &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Removing or compressing &quot;VIEWSTATE&quot; from page    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;We can override few of method of default      System.Web.UI.Page class of .net&lt;BR&gt;framework.      &lt;P&gt;Use the following file and include it in your project&#39;s      APP_CODE.&lt;BR&gt;Inherits rest of all your pages from this page instead of      regular System.Web.UI.Page&lt;BR&gt;class.&lt;/P&gt;     &lt;P&gt;Ref: BasePage.vb&lt;BR&gt;&amp;lt;!--[if      !supportLineBreakNewLine]--&amp;gt;&lt;BR&gt;&amp;lt;!--[endif]--&amp;gt; &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Use caching for pages which changes less frequently    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;There are several ways to use the cache; we&#39;ll focus on      the easiest tricks to&lt;BR&gt;get you started, then point you toward some      resources that will help you&lt;BR&gt;tackle more advanced ways to utilize the      cache.      &lt;P&gt;The simplest solution is to use the OutputCache directive on your      pages&lt;BR&gt;or user controls. &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Disable VIEWSTATE for pages where no Grid related    functionality.    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;One should set the VIEWSTATE disabled in those pages      where there is no grid&lt;BR&gt;level manipulation. When we have a simple page      with no complex logic, it&lt;BR&gt;should be disabled.      &lt;P&gt;Moreover to that set the following pages which are not      security&lt;BR&gt;sensitive.&lt;/P&gt;     &lt;P&gt;1) EnableViewStateMac=&quot;false&quot;&lt;/P&gt;     &lt;P&gt;2) ViewStateEncryptionMode=&quot;never&quot;&lt;BR&gt;&amp;lt;!--[if      !supportLineBreakNewLine]--&amp;gt;&lt;BR&gt;&amp;lt;!--[endif]--&amp;gt; &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Use classical ASP type of page for normal pages.    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;Another important point is to use a classical ASP type      of pages which are simple.&lt;BR&gt;Those pages which do not have any complex      display should be developed&lt;BR&gt;like normal ASP pages. Please check the      following referenced page for&lt;BR&gt;this similar purpose.      &lt;P&gt;these are such files which do not have underlying code behind      file&lt;BR&gt;attached to it.&lt;/P&gt;     &lt;P&gt;We can also utilize the feature of &quot;include&quot; file method which is      there&lt;BR&gt;in classical ASP. &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&lt;BR  style=&quot;PAGE-BREAK-BEFORE: always&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;&lt;STRONG&gt;Guidelines&lt;BR&gt;for  structuring ASP.NET Application&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;In the following, I will demonstrate the basic  guidelines&lt;BR&gt;for the structuring of any web application.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;See these guidelines are generally be best suitable for  SEO&lt;BR&gt;oriented sites. It can also be adopted for general site also  keeping&lt;BR&gt;requirement in mind.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;These guidelines are prepared keeping  modularized&lt;BR&gt;development in mind. So there are no such tricks that by  following them you&lt;BR&gt;will be able to better structure your site. One should do  the do modularized&lt;BR&gt;development in their programming also to achieve this.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Use dedicated folders for JS &amp;amp; CSS files.In a site    generally there are different JS &amp;amp; CSS files for    different&lt;BR&gt;functionality. These JS &amp;amp; CSS files should be accordingly    structure&lt;BR&gt;inside your website. Please take a look at the following example    for the&lt;BR&gt;better illustration of this method.    &lt;P&gt;Say for e.g. in a site few pages have functionality to display a    jQuery&lt;BR&gt;zoom light box when anyone click on the image of product.&lt;/P&gt;   &lt;P&gt;So following should be the structure of JS &amp;amp; CSS files.&lt;/P&gt;   &lt;P&gt;In this example, assume there are also few global JS &amp;amp; CSS. So I    will&lt;BR&gt;also demonstrate the purpose of integrating them in site.&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;Root&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;|___&lt;STRONG&gt;js&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;| |___&lt;STRONG&gt;lightbox&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;| |___lightbox.js&lt;/P&gt;   &lt;P&gt;|____|___&lt;STRONG&gt;global&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;|____jquery-1.2.6.min.js&lt;/P&gt;   &lt;P&gt;|____common.js&lt;/P&gt;   &lt;P&gt;|___&lt;STRONG&gt;css&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;|&lt;STRONG&gt; |___lighbox&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;| &lt;STRONG&gt;|___ &lt;/STRONG&gt;lighbox.css&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;|________&lt;STRONG&gt;global&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;|____global.css&lt;/P&gt;   &lt;P&gt;&lt;SPAN class=GramE&gt;This&lt;/SPAN&gt; modularization can also be used    to&lt;BR&gt;differentiate CSS &amp;amp; JS for each page of site.&lt;/P&gt;   &lt;P&gt;Modularization is also not limited to the CSS &amp;amp; JS files, one    can&lt;BR&gt;follow same modularization concept across different type of files    also&lt;BR&gt;like XML content, flash content, image folders etc.&lt;STRONG&gt;    &lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&amp;lt;!--[if    !supportLineBreakNewLine]--&amp;gt;&lt;STRONG&gt;&lt;BR&gt;&amp;lt;!--[endif]--&amp;gt;&lt;/STRONG&gt; &lt;/P&gt;   &lt;LI class=MsoNormal&gt;Use proper naming conversion in CSS files.    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;Care full design of CSS classes and attributes provide      better traceability. As&lt;BR&gt;you just shown above that the CSS &amp;amp; JS can be      modularized. We should&lt;BR&gt;also use proper naming convention in those CSS      file. If you follow these&lt;BR&gt;conventions, you can easily identify respective      class.      &lt;P&gt;Say for e.g.&lt;/P&gt;     &lt;P&gt;you set naming abbreviation of respective CSS as per below.&lt;/P&gt;     &lt;P&gt;&lt;STRONG&gt;1) &lt;SPAN class=GramE&gt;global.css&lt;/SPAN&gt;&lt;BR&gt;= glb&lt;/STRONG&gt;&lt;/P&gt;     &lt;P&gt;&lt;STRONG&gt;2) lightbox.css = lg&lt;/STRONG&gt;&lt;/P&gt;     &lt;P&gt;so now you can have following CSS class/section defined in respective      css&lt;BR&gt;files.&lt;/P&gt;     &lt;P&gt;like in global.css&lt;/P&gt;     &lt;P&gt;glb-main&lt;/P&gt;     &lt;P&gt;{&lt;/P&gt;     &lt;P&gt;}&lt;/P&gt;     &lt;P&gt;.glb-title&lt;/P&gt;     &lt;P&gt;{&lt;/P&gt;     &lt;P&gt;color: #7D3D0D;&lt;/P&gt;     &lt;P&gt;font-family: Arial;&lt;/P&gt;     &lt;P&gt;font-size: 20px;&lt;/P&gt;     &lt;P&gt;font-weight: normal;&lt;/P&gt;     &lt;P&gt;text-decoration: none;&lt;/P&gt;     &lt;P&gt;clear: both;&lt;/P&gt;     &lt;P&gt;}&lt;/P&gt;     &lt;P&gt;in the same way, you can also different class in lighbox.css&lt;/P&gt;     &lt;P&gt;.lg-dvtop&lt;/P&gt;     &lt;P&gt;{&lt;/P&gt;     &lt;P&gt;width: 100%;&lt;/P&gt;     &lt;P&gt;margin: 20px 10px 10px 10px;&lt;/P&gt;     &lt;P&gt;}&lt;/P&gt;     &lt;P&gt;.lg-content&lt;/P&gt;     &lt;P&gt;{&lt;/P&gt;     &lt;P&gt;width: 700px;&lt;/P&gt;     &lt;P&gt;height: 600px;&lt;/P&gt;     &lt;P&gt;} &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Configure&lt;BR&gt;APP_CODE to have two sub directories. Each    sub directory can be used for&lt;BR&gt;different language. It is generally like    following.    &lt;P&gt;APP_CODE&lt;BR&gt;|___VB&lt;/P&gt;   &lt;P&gt;|___CS&lt;/P&gt;   &lt;P&gt;Respective programming files should be placed in respective folders.    Also&lt;BR&gt;make sure to configure code sub directory in web.config also.  &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&lt;BR  style=&quot;PAGE-BREAK-BEFORE: always&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in&quot; class=MsoNormal&gt;&amp;lt;!--[if  !supportLists]--&amp;gt;&lt;SPAN  style=&quot;FONT-FAMILY: Symbol&quot;&gt;·&lt;SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;lt;!--[endif]--&amp;gt;&lt;STRONG&gt;Guidelines&lt;BR&gt;before  final release of site&lt;/STRONG&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;Following, there are some important and necessary  checks&lt;BR&gt;that web-sites should be checked against before the official  launch.&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;/P&gt; &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=1&gt;   &lt;LI class=MsoNormal&gt;Favicon    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;A favicon icon the tab or window in which your website      is open in the&lt;BR&gt;user&#39;s browser. It is also saved with the bookmark so that      users can&lt;BR&gt;easily identify pages from your website.      &lt;P&gt;for e.g.&lt;/P&gt;     &lt;P&gt;&amp;lt;link href=&quot;images/fav_icon.ico&quot; rel=&quot;icon&quot;&lt;BR&gt;type=&quot;image/Jpeg&quot;      /&amp;gt;&lt;BR&gt;&amp;lt;!--[if !supportLineBreakNewLine]--&amp;gt;&lt;BR&gt;&amp;lt;!--[endif]--&amp;gt;      &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Title &amp;amp; Meta data    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;Your page title is the most important element for SEO      and is also important so&lt;BR&gt;that users know what&#39;s on the page. Make sure it      changes on every page&lt;BR&gt;and relates to that page&#39;s content.      &lt;P&gt;Also one should make sure that related &lt;SPAN class=GramE&gt;meta&lt;/SPAN&gt;      data&lt;BR&gt;details are also get placed in every pages and are changes as it      should&lt;BR&gt;be to different pages. &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Cross-Browser Check    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;The most popular browsers to check are Internet Explorer      6, 7 and 8, Firefox&lt;BR&gt;3, Safari 3. Following are the few methods used to do      cross browser check      &lt;P&gt;1) XecoCode (http://www.xenocode.com/browsers/)&lt;/P&gt;     &lt;P&gt;2) IETester (http://www.my-debugbar.com/wiki/IETester/HomePage)&lt;/P&gt;     &lt;P&gt;3) Browser shot (&lt;A      href=&quot;http://browsershots.org/&quot;&gt;http://browsershots.org/&lt;/A&gt;) &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;LI class=MsoNormal&gt;Links    &lt;OL style=&quot;MARGIN-TOP: 0pt&quot; type=a&gt;     &lt;LI class=MsoNormal&gt;Don&#39;t just assume all your links work. Click on them.      You may often forget to&lt;BR&gt;add &quot;http://&quot; to links to external websites.      There may be case when some&lt;BR&gt;URL rewriting related prefix or postfix would      be forgotten.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/guidelines-for-aspnet-development.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-4373791648003262610</guid><pubDate>Thu, 18 Nov 2010 09:20:00 +0000</pubDate><atom:updated>2010-11-18T01:20:31.043-08:00</atom:updated><title>Getting dig into SQL CLR</title><description>&lt;P&gt;SQL CLR is a new SQL Server feature that allows you to embed logic written in  C#, VB.Net, and other managed code into the body of T-SQL objects like stored  procedures, functions, triggers, aggregates and types. Client applications  interact with these resulting routines like they are written in native T-SQL.  Internally, things like string manipulations and complex calculations become  easier to program because you are no longer restricted to using T-SQL and now  have access to structured .Net languages and the reuse of base class libraries.  Externally, the logic you create is wrapped in T-SQL prototypes so that the  client application is not aware of the implementation details. This is  advantageous because you can employ SQL CLR where you need it without  rearchitecting your existing client code.&lt;/P&gt; &lt;P&gt;With SQL CLR, you are also freed from the constraint of logic that applies  only within the context of the database. You can with appropriate permissions  write logic to read and write to file systems, use logic contained in external  COM or .Net DLLs. These capabilities are exciting and concerning, especially in  the historical context of new feature overuse. To help you use this new feature  appropriately, we want to make sure that you understand how it integrates with  SQL Server and where this feature may be heading. In this chapter, we&#39;ll give  you this type of overview. We&#39;ll spend the rest of the book explaining these  concepts using real-world SQL CLR examples that you can use today.&lt;/P&gt; &lt;P&gt;Let&#39;s go through step by step for your first introduction on sql clr.&lt;/P&gt; &lt;P&gt;The first step in creating a stored procedure (or any database object) is to  create a SQL Server project in Visual Studio:&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;From the File menu, create a new project    &lt;LI&gt;In the New Project Dialog, select and expand a language node in the    Project Types area    &lt;LI&gt;Select the Database node    &lt;LI&gt;Select the SQL Server Project template    &lt;LI&gt;Click OK and you are done&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;Next you will be promted of of creating sql connection to connect to sql  server. But wait, before that your datebase and server need to be configured to  run/host SQL CLR.&lt;/P&gt; &lt;P&gt;If you dont know how to do that just run the following code in your query  window&lt;/P&gt; &lt;P&gt;sp_configure &#39;clr enabled&#39;, 1&lt;/P&gt; &lt;P&gt;GO&lt;/P&gt; &lt;P&gt;RECONFIGURE&lt;/P&gt; &lt;P&gt;GO&lt;/P&gt; &lt;P&gt;Creating your first user defined CLR function&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;Open an existing SQL Server Project, or create a new one. From the Project    menu, select Add New Item.    &lt;LI&gt;Select User Defined Function    &lt;LI&gt;Type a Name for the new user defined function.    &lt;LI&gt;Add code to run when the function is executed.    &lt;LI&gt;In the following code snippet, i have written a custom user defined SQL    CLR function which convert the european anccented characters into regular    english character.&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;[Code]public partial class  UserDefinedFunctions &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;{ &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=&quot;Courier New&quot;&gt;&lt;CODE&gt;[Microsoft.SqlServer.Server.SqlFunction(  &lt;/CODE&gt;&lt;CODE&gt;DataAccess = DataAccessKind.None, Name =  &quot;fnReplaceAccentedCharacters&quot;, IsDeterministic = true)] public static SqlString  fnReplaceAccentedCharacters(SqlString inputString) &lt;/CODE&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;{ &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;SqlString xReturnValue=&quot;&quot;; &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;Int16 a; &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;String[,] xCharGroup ={{&quot;à&quot;, &quot;a&quot;}, {&quot;â&quot;, &quot;a&quot;},  {&quot;ä&quot;, &quot;a&quot;}, {&quot;é&quot;, &quot;e&quot;}, {&quot;è&quot;, &quot;e&quot;}, {&quot;ê&quot;, &quot;e&quot;}, {&quot;ë&quot;, &quot;e&quot;}, {&quot;î&quot;, &quot;i&quot;}, {&quot;ï&quot;,  &quot;i&quot;}, {&quot;ô&quot;, &quot;o&quot;}, {&quot;ö&quot;, &quot;o&quot;}, {&quot;û&quot;, &quot;u&quot;}, {&quot;ü&quot;, &quot;u&quot;}, {&quot;ù&quot;, &quot;u&quot;}, {&quot;ç&quot;, &quot;c&quot;},  {&quot;&quot;, &quot;oe&quot;}, {&quot;&quot;, &quot;oe&quot;}, {&quot; &quot;, &quot;-&quot;}}; &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;for (a = 0; a &amp;lt;  xCharGroup.GetLongLength(0); a++)&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;inputString =  ((String)inputString).Replace(xCharGroup[a, 0], xCharGroup[a, 1]);  &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;return (xReturnValue=inputString);  &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;} &lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;&lt;CODE&gt;&lt;FONT face=&quot;Courier New&quot;&gt;};[/code]&lt;/FONT&gt;&lt;/CODE&gt;&lt;/P&gt; &lt;P&gt;Once the code is ready, you can build and deploy the code to the database by  pressing &#39;F5&amp;#8242;.&lt;/P&gt; &lt;P&gt;To test the deployment, there is a file in your project called test.sql. In  this file, you can add script calls to the obects you just created. For example,  to call the function created above, enter: Select  dbo.fnReplaceAccentedCharacters(&#39;des objets de très grande qualité, originaux,  épurés,&#39;)&lt;/P&gt; &lt;P&gt;That&#39;s it. If the stored procedure was written correctly, you will now see  this item in list of functions in your management stuidio. However, you&#39;ll see  the object has a lock icon next to it, as shown below. This is because the  object is not editable outside of the Visual Studio project.&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/getting-dig-into-sql-clr.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-4468666403411256234</guid><pubDate>Mon, 15 Nov 2010 11:44:00 +0000</pubDate><atom:updated>2010-12-27T01:30:15.482-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><title>Software engineering fundamental</title><description>&lt;b&gt;Introduction:&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
To understand the necessity for web engineering, we must pause briefly to  look back at the recent history of computing. This history will help us to  understand the problems that started to become obvious in the late sixties and  early seventies, and the solutions that have led to the creation of the field of  software &amp;amp; web engineering. These problems were referred to by some as &quot;The  software Crisis,&quot; so named for the symptoms of the problem. The situation might  also been called &quot;The Complexity Barrier,&quot; so named for the primary cause of the  problems. Some refer to the software crisis in the past tense. The crisis is far  from over, but thanks to the development of many new techniques that are now  included under the title of software engineering, we have made and are  continuing to make progress.&lt;br /&gt;
Although the topic I have written on is about very tiresome, even thought the  importance of web/software engineering is very essential in all parts  development life cycle. It&#39;s all about making your development process more  sophisticated and well documented.&lt;br /&gt;
Let me first of all outline you the agenda which I am going to explain in  this article.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Nature of web/software project&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Engineering approach&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Software/web process&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;A process steps&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Characteristics of a good process&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Role of waterfull model in the development&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Project planning&lt;/li&gt;
&lt;/ul&gt;First of all we will see the different kind of software or web. How they  affect in the day to day life of human being. It may be different complexity,  from the different domain.&lt;br /&gt;
Next we will examine the different engineering approach that we can apply on  our development process. Generally we understand the engineering is of field  civil, mechanical, architectural etc. But engineering approaches can also be  used in the development process to make it more simpler.&lt;br /&gt;
Then after we will take a look at the different software engineering process  models available. We will then define the a practical software process steps and  then we will also examine the characteristics of a good software process.&lt;br /&gt;
&lt;b&gt;Nature of web/software project &lt;/b&gt;&lt;br /&gt;
We encounter may software or web application in the our day to day life. It  may be of different domain, it may be simple, it can a large enterprise portal  or can be a scientific for purpose.&lt;br /&gt;
Typically the nature of a software system can be:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Ubiquitous, used in variety of area&lt;br /&gt;
Business, engineering etc.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It can be simple to complex, internal or public, one location centric or    distributed, real time, information purpose, help desk etc.&lt;/li&gt;
&lt;/ol&gt;Now there are many major challenges in the life of development process. Our  main intension in this article is to outline the different kind of hurdles that  a software developer or manager encounter in the development. They are as per  below:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Effort intensive&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;High cost&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Continuous and log development&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;User requirements frequently changes&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Risk of failure that can be performance issue, unable to accept response    of user, maintainability of project etc.&lt;/li&gt;
&lt;/ol&gt;Some time web projects or say any software project involves the high cost.  The software analyzers sometime fail to identify software cost properly.  Sometime the development get so stretch that it start becoming very costly. The  management is mostly always concern with the quick and cheap solution. Due to  the more and more money invested in development and the outcome is not produces  or is not upto to satisfaction as it should be.&lt;br /&gt;
Personally I feel that in most of development of either a web based project  or enterprise application, the user&#39;s continues changing requirement never ends.  In any project, the end user is the one who is going to give final review.  Software engineers do make requirement engineering, but the due to many factor  user&#39;s requirement keep on changing. Those factory may be managerial, market  competition, changing in the government laws, marketing strategy etc. Because of  these the user&#39;s requirement get changed.&lt;br /&gt;
Sometime everything goes well but when the final outcome of software/web  project get released, it does not satisfy the user. The performance may not be  upto the mark. The end user is not concern with the technical issue involved in  development. They only concern for the quick and accurate output.&lt;br /&gt;
So these are the few hurdles that any software engineer or manager face in  his past experience life.&lt;br /&gt;
So when can we say that software is successful:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Software project have not always been successful.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;   &lt;div&gt;When do we consider a project is successful&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Development completed&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It is useful&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It is usable&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;It is used&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Software should be cost effective &amp;amp; maintainable&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;margin-left: 18pt;&quot;&gt;To be build up any successful software, it need to  under go many engineering process. I don&#39;t mean to say that the engineering  process of big science/construction engineering. Engineering Is a set up well  defined process steps. By following those well defined projects you can build up  successful software.&lt;/div&gt;&lt;div style=&quot;margin-left: 18pt;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 18pt;&quot;&gt;Now lets consider what are the reason of failure  for making this project successful.&lt;/div&gt;&lt;div style=&quot;margin-left: 18pt;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;margin-left: 54pt;&quot;&gt;&lt;li&gt;Schedule slippage&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Cost goes over&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Does not fulfill user&#39;s requirement&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Poor quality&lt;/li&gt;
&lt;/ul&gt;So this are the basic criteria which lead a project toward unsuccessful.&lt;br /&gt;
Now let&#39;s consider that what are the reasons that lead to such failure.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Unplanned development&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;The milestones and deliverables are not identified&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;User requirement changing/poor understanding user&#39;s requirement.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;No review control&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Technically the team is not matured&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Unsuccessful planning of cost by user &amp;amp; developer.&lt;/li&gt;
&lt;/ul&gt;If you can&#39;t plan, you can&#39;t reach to success. I personally feel during my  experience life time that the unplanned work is always been major factory in the  failure of software. The unplanned development may include anything from un  proper utilization of human resources, the developer are forced to keep on  changing on different projects, client&#39;s continues changing in requirement etc.  These all and in fact many other unplanned factors lead to software failure.&lt;br /&gt;
Let&#39;s think that you are a smart developer who plan for all his work before  he actually going to implement. Then in that case the if the deliverables or  milestones are not defined, we would not be able to judges the progress of  development. Milestones/deliverables are most important in the development  cycle. They tells about the progress of development. It help you to identify set  up next goal in development.&lt;br /&gt;
Requirement engineering is one of the most crucial part in development life  cycle. It is always been hard to identify and model user&#39;s requirement. If the  user&#39;s requirement is not identified properly then the development can&#39;t proceed  further.&lt;br /&gt;
Constant review or control is also important part of development. The  inspection and review is heart in the quality assurance. The development need to  be monitored by the supervisor so that we can actually come to know how the  development is going.&lt;br /&gt;
The developer need to be constantly updated with the latest tools and  technology. Sometime the company have the projects, but they do not have such  experienced or skilled resource, due to which they postpone their effort in  getting such projects. Nowadays the technology is keep on changing. So many  tools and technology are emerging which can really solve your many development  issues. The open source platform is one of the great example. There are thousand  of scripts and tools are available over the internet that a developer can learn  and implement. The developer need to be in touch with different community sites  and build up their knowledge bank.&lt;br /&gt;
So these is what I want to tell about why we engineer the web/software. If we  want to overcome those issue we really need to implement those software  engineering and development process in our development.&lt;br /&gt;
So you will say that this is the end of my talk. No, I further want to tell  you something regarding the engineering terms. After reading that much, you are  really free to go by leaving your seat &lt;span style=&quot;font-family: Wingdings;&quot;&gt;J&lt;/span&gt;.&lt;br /&gt;
&lt;i&gt;&quot;Engineering&quot; a solution: &lt;/i&gt;&lt;br /&gt;
According to the definition given by the professor Sarda(IIT Bombay) a  engineering is: To design, develop an artifact that meets specification  efficiently, cost-effective and ensure quality.&lt;br /&gt;
Why the other engineering projects are successful than the software?&lt;br /&gt;
So to understand the reason of that, lets first go through what a large  engineering project is made up of.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Involve different type of peoples&lt;br /&gt;
Building project: civil engineers,    electrical engineer, architects, workers etc.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Continuous supervision for the quality assurance.&lt;br /&gt;
On site supervisor&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Many deliverables: architecture plan, model, structure diagrams, electric    cabling etc.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Standards need to be followed&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Steps and milestone are defined, reviewed and we proceed further. So the    visibility of development is important aspect.&lt;/li&gt;
&lt;/ul&gt;But the software engineering approach is somewhat different than these.  Software architecture and planning is not same as the other engineering  projects.&lt;br /&gt;
I will make you introduce with rest of discussion in my next series of  articles.&lt;br /&gt;
So have a good time and have a productive coding. &lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/software-engineering-fundamental.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-6196928861241136754</guid><pubDate>Mon, 15 Nov 2010 10:41:00 +0000</pubDate><atom:updated>2010-12-27T01:30:22.304-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Fun</category><title>DIWALI - story behing this festival</title><description>&lt;b&gt;DIWALI &lt;/b&gt;&lt;br /&gt;
Also known as Deepawali and Deepotsav, this is the final day of the Hindu  year.&lt;br /&gt;
&lt;b&gt;Origin&lt;br /&gt;
&lt;/b&gt;Mankind is forever steeped in the misery of ãdhi  (mental agony), vyãdhi (physical sufferings) and upãdhi (pain from external  elements).&lt;br /&gt;
On the day when man is liberated from these, it becomes the day of  Diwali, of bliss for him.&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;There are five stories celebrating this day:&lt;b&gt;  &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Shri Krishna vanquished Narkasur, releasing people from misery.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Pruthu Raja extracted goodness from the earth.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;During the Samudra Manthan, Lakshmiji emerged from the ocean.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;The Pandavas returned from their forest exile.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Shri Ramchandra returned to Ayodhya after his victory over Ravan in    Lanka.&lt;/li&gt;
&lt;/ol&gt;In essence people light divas on this day to depict their joy on being  released from suffering inflicted by evil elements. Thus, this day came to be  known as Deepotsavi.&lt;br /&gt;
&lt;b&gt;Rituals &lt;/b&gt; The Bhavishyottar Puran (140–14–29) cites  details of how to celebrate Diwali from early morning.&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;To augur success, those involved in trade and business do pujan of their    new ledgers, known as Chopda Pujan (also known as Sharda Pujan).&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;People light divas in their homes every evening.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;During Diwali it is a tradition in Hindu homes for the womenfolk to    decorate a rangoli at the entrance or near the doorway, after washing the    floor. A rangoli&amp;nbsp;&amp;nbsp; is an intricate and artistic design, using    coloured powders. It represents an auspicious welcome for Lakshmiji, who    visits people during Diwali to grant wealth.&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Sentiments &lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;People forgive and forget misdeeds of the past year and resolve to spend    the coming year in peace, harmony, purity and to earn lakshmi by observing    dharma.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;On this the darkest (moonless) day of the month, people light divas    symbolically, praying to Paramatma for inner enlightenment.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Diwali is a festival to resolve personal discord and familial conflict, to    increase love, unity and harmony in the family and society.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Finally, since we are graced by the infinite love of God and his holy    Sadhu, we should feel fulfilled and contented, known as purnakampanu.    Therefore we should endeavour to consolidate our dharma, gnan, vairagya and    bhakti, to further receive their benediction.&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt; &lt;/b&gt;﻿Happy DIWALI to all of you and Prosperous NEW YEAR.&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/diwali-story-behing-this-festival.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-3358361255187186697</guid><pubDate>Mon, 15 Nov 2010 05:16:00 +0000</pubDate><atom:updated>2010-11-14T21:16:41.776-08:00</atom:updated><title>.Net 3.5, C#, VB.Net Language Improvement: Automatic Properties, Object initializers, Collection Initializers, Lambda expression, Anonymous type.</title><description>&lt;P&gt;The new .net 3.5 has significant improved features. This feature makes the  .net programming concept more sophisticated. You will now be able to write less  code and build more dynamic application using those.&lt;/P&gt; &lt;P&gt;From all of them what the most I like is the LINQ, which allow you to query  over variety of objects.&lt;/P&gt; &lt;P&gt;LINQ is all about queries, they returns a set of matching objects, a single  object, or a subset of fields from an object or set of objects. In LINQ, this  returned set of objects is called a &lt;EM&gt;sequence&lt;/EM&gt;.&lt;/P&gt; &lt;P&gt;Basically LINQ comes in variety of flavors&#39; like following:&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;LINQ to Objects&lt;SPAN    style=&quot;FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;LINQ to XML&lt;SPAN    style=&quot;FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;LINQ to Dataset&lt;SPAN    style=&quot;FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;LINQ to SQL&lt;SPAN    style=&quot;FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;LINQ to Entities&lt;SPAN    style=&quot;FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P style=&quot;TEXT-ALIGN: justify&quot;&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-ALIGN: justify&quot;&gt;Well there is a detailed discussion on LINQ  further in this article. Let me first make you guys introduce to the language  improvements in .net 3.5. In fact I believe that these new improvements are  essential to learn before we actually get dig into the LINQ &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;.&lt;/P&gt; &lt;P style=&quot;TEXT-ALIGN: justify&quot;&gt;&lt;/P&gt; &lt;P style=&quot;TEXT-ALIGN: justify&quot;&gt;To summarize quickly, here are the list of new  language feature that are shipped with .Net 3.5.&lt;/P&gt; &lt;P style=&quot;TEXT-ALIGN: justify&quot;&gt;&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;Automatic properties&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;Object initializers, Collection    initializers&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;Anonymous types&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;Extension methods&lt;/DIV&gt;   &lt;LI&gt;   &lt;DIV style=&quot;TEXT-ALIGN: justify&quot;&gt;Query Expression&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;Well if you are the C# developer, I believe you will really love to have such  significant improvement. Because these features puts extra wing on your  programming skill.&lt;/P&gt; &lt;P&gt;The important is not that you learn the latest technology of .Net 3.5 like  WCF, WPF, Silverlight etc. These are the core part of basic programming. Its  like you should be knowing the if syntax of C programming language before you  actually write your first &quot;Hello word&quot; program &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;So let&#39;s go through each of them step by step and try to understand what they  are and how it can help the developer to create rich internet/desktop  application.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Automatic Property&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;Before I explain you the concept of &quot;automatic property in .net 3.5, can you  guys first please try to go through the following code?&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  _cartId;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  CartId&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;  _cartId; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt; { _cartId = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;value&lt;/SPAN&gt;; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  _customerid;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Customerid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;  _customerid; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt; { _customerid = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;value&lt;/SPAN&gt;; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  _billingaddressid;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Billingaddressid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;  _billingaddressid; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt; { _billingaddressid = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;value&lt;/SPAN&gt;; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  _shippingaddressid;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Shippingaddressid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;  _shippingaddressid; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt; { _shippingaddressid = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;value&lt;/SPAN&gt;; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShippingCartItem&lt;/SPAN&gt;  _cartitem;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShippingCartItem&lt;/SPAN&gt; Cartitem&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;  _cartitem; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt; { _cartitem = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;value&lt;/SPAN&gt;; }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Most of the time we are used to write such model classes. This are the most  basic and popular mechanism in returning a wrapper classes. The basic purpose of  writing such getter/setter property is to hide the actual private member of our  classes. It has been the standard pattern to access the private method of any  classes. Well you may arise with a question that why do we actually need to  write such getter/setter properties. Can&#39;t we simply expose the private member?  Well the answer is YES, but I would request you to remember the fundamental of  object oriented programming. &lt;SPAN style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Anyway there are basically two reason of not doing so. Following are  this:&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;You won&#39;t be easily able to bind those private variable to controls    &lt;LI&gt;You will not be able to modify them into property later on.&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;The first point is quite understandable, what do you mean by the second one?  Well, say for e.g. if you need to add any business logic or validation logic  when assigning value to any private variable then? You will not be able to do  that.&lt;/P&gt; &lt;P&gt;So what if we need not to write even the private variables? Exited, yes the  new version of .Net 3.5 allows you have such facility. The concept is called  automatic property. All you have to do is to write the getter/setter property.  You need not to worry about the private member of that property. The compiler  will decide and prepare base private member for you on the fly.&lt;/P&gt; &lt;P&gt;See the example in the following.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  CartId&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Customerid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Billingaddressid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;  Shippingaddressid&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShippingCartItem&lt;/SPAN&gt;  _cartitem;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShippingCartItem&lt;/SPAN&gt; Cartitem&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;set&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Now it this case when the compiler will encounter this properties while  compiling your code, it will automatically expose the private variable for each  of property with its associated type. For e.g. compiler automatically assume and  expose the &lt;EM&gt;_cartid&lt;/EM&gt; private variable of integer type. Using advantage of  this is we need not to worry about the underlying private variable. In future we  can add any sort of validation logic in this property.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Object initialization, collection  initialization&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;I would like to explain this concept by taking the example of automatic  property so that I maintain the continuity for you to understand. Say for e.g.  when we want to use the &quot;shopping cart&quot; class that we created earlier. What we  do is write following code.&lt;/P&gt; &lt;P style=&quot;MARGIN-LEFT: 36pt&quot;&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; cart = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;cart.CartId =  1;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;cart.Customerid =  1001111;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;cart.Shippingaddressid =  2333;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;cart.Billingaddressid  = 2232;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;With the feature supported by the .net framework 3.5, you can take advantage  of what is called &quot;syntactic sugar&quot;, and that is object initializers.&lt;/P&gt; &lt;P&gt;Using object initializers, you can write the same code given above, in  following way.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; cart = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; {CartId =1,  Customerid=1001111, Billingaddressid=2232, Shippingaddressid =23333  };&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;So it allows you to pass the value of all property at the time of  initializing the object.&lt;/P&gt; &lt;P&gt;In fact it not only allow to initialize object&#39;s property in this way, you  can also have nested initialization of object within any object.&lt;/P&gt; &lt;P&gt;To demonstrate you, see the following example.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; cart = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; { CartId = 1, Customerid =  1001111, Billingaddressid = 2232, Shippingaddressid = 23333, &lt;SPAN  style=&quot;TEXT-DECORATION: underline&quot;&gt;&lt;STRONG&gt;Cartitem = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShippingCartItem&lt;/SPAN&gt; { }&lt;/STRONG&gt;&lt;/SPAN&gt;  };&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;If you see in the highlighted (underlined) part of above code, you can  clearly see that the child object can also be initialized in the same way.&lt;/P&gt; &lt;P&gt;As if the new object initialization enhancements were not enough, someone at  Microsoft must have said, &quot;What about collections?&quot; Collection initialization  allows you to specify the initialization values for a collection, just like you  would do for an object, as long as the collection implements the&lt;/P&gt; &lt;P&gt;System.Collections.Generic.ICollection&amp;lt;T&amp;gt; interface.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;&amp;gt; presidents = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;&amp;gt; { &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Name 1&amp;#8243;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Name 2&amp;#8243;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Name 3&amp;#8243;&lt;/SPAN&gt; };&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  president &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; presidents)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Console&lt;/SPAN&gt;.WriteLine(president);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;/SPAN&gt;&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Anonymous types&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;What is anonymous type?&lt;/P&gt; &lt;P&gt;Well, we have been familiar till date with different types. They are either  custom classes or any of .net&#39;s build in type. So what is actually the anonymous  type is. The answer is that the &quot;Anonymous type&quot; has no type defined to it. It  has no type name. Though there should be at least one type name associated in  .Net. In anonymous type, the type name is specified by the developer doing the  programming. It is the compiler which will identify the type to associate with  the declaration of any anonymous type.&lt;/P&gt; &lt;P&gt;There is also another significant different in anonymous type is that it is  called &lt;EM&gt;immutable&lt;/EM&gt;. The definition of immutable type is that the one that  is declared and initialized once. It can&#39;t be altered later on. So anonymous  type has the same characteristic. Once you declared and initialized, you can&#39;t  alter the anonymous type afterward.&lt;/P&gt; &lt;P&gt;This is also why anonymous types have been introduced. They allow us to  create a type on the fly and therefore return only certain values of a given  named type. This is very handy when only a subset of properties is needed,  properties are joined together or even objects are joined together.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Program&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;void&lt;/SPAN&gt;  Main(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;[] args)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// create a list of carts with dummy  data.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt;&amp;gt; carts = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt;&amp;gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;carts.Add(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; { CartId=101,  Customerid=1001, Billingaddressid=20, Shippingaddressid =30});&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;carts.Add(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; { CartId = 102, Customerid =  1002, Billingaddressid = 22, Shippingaddressid = 33 });&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;carts.Add(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MShoppingCart&lt;/SPAN&gt; { CartId=103,  Customerid=1003, Billingaddressid=23, Shippingaddressid =34});&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// query the cart collection to collect cart with id of  101&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;var&lt;/SPAN&gt; result = &lt;SPAN style=&quot;COLOR: blue&quot;&gt;from&lt;/SPAN&gt; c  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; carts&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;where&lt;/SPAN&gt; c.CartId &amp;gt;= 101&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// put the result in a anonymous type&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;select&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt; {  c.Billingaddressid };&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// loop over the result.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style=&quot;COLOR: blue&quot;&gt;var&lt;/SPAN&gt; item  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; result)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// print out the name of the item.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Console&lt;/SPAN&gt;.WriteLine(item.Billingaddressid  );&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Anonymous type are mostly used when working with the LINQ. It is utilized  highly while querying to your data in LINQ. It is irrespective which flavor of  LINQ you are using.&lt;/P&gt; &lt;P&gt;Although the anonymous type can be used in your own code also. It is  especially useful when we want to combine different variables into one.&lt;/P&gt; &lt;P&gt;Se for e.g. following example:&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt&quot;&gt;//  create an anonymous type instance with a name.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;var&lt;/SPAN&gt; anonymousType = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;Name =  name,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;Age =  age,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;Nationality =  nationality&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;};&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// print the name to the console.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Console&lt;/SPAN&gt;.WriteLine(anonymousType.Name);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Though the real time use of anonymous type Is when you use it with the LINQ.  I need to write a separate article to demonstrate you actual usage LINQ. &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Extension methods&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;An extension method is a static method of a static class that you can call as  though it were an instance method of a different class.&lt;/P&gt; &lt;P&gt;To make you understand the extension method, let me first re cape the class  level methods (static methods) and instance methods. The primary different  between these two is that the instance method can also be access by initializing  object of any class. It can&#39;t be invoked by using class name only. The exact  opposite of that is class method. You can only call static class method using  the name of class only. You can&#39;t access them using the instance of same  class.&lt;/P&gt; &lt;P&gt;I am not gonna give you any example for the above explanation as I expect  from you guys that you are familiar with the different I explained.&lt;/P&gt; &lt;P&gt;Extension method is a way of extending existing classes for whatever  additional functionality. Let me demonstrate you that by example.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;namespace&lt;/SPAN&gt; ExtensionMethods&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StringExtensionMethods&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt;  IsNumeric(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;this&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; str)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;try&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt; i = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;int&lt;/SPAN&gt;.Parse(str);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;true&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;catch&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;false&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;In the above given example, almost everything seems to be similar what we are  used to in normal programming. But, the difference is clearly seen. You should  be able to notice that in the &quot;IsNumeric&quot; static method parameter are passed  using &lt;EM&gt;this &lt;/EM&gt;keyword. This keyword tells the compiler what you are going  to extend for particular given type. So in this example it tells you that it  extends the existing string class.&lt;/P&gt; &lt;P&gt;See for e.g. how to use the extension method.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; s = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;someValue&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt; bs = s.IsNumeric();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// bs is false;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; i = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;7&amp;#8243;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt; bi = i.IsNumeric();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// bi is true;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Query Expression&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;One of the conveniences that the C# language provides is the foreach  statement. When you use foreach, the compiler translates it into a loop with  calls to and MoveNext. The simplicity the foreach statement provides for  enumerating through arrays and collections has made it very popular and often  used.&lt;/P&gt; &lt;P&gt;One of the features of LINQ that seems to attract developers is the SQL-like  syntax available for LINQ queries. The first few LINQ examples in the first  chapter of this book use this syntax. This syntax is provided via the new C# 3.0  language enhancement known as query expressions. Query expressions allow LINQ  queries to be expressed in nearly SQL form. To perform a LINQ query, it is not  required to use query expressions. The alternative is to use standard C# dot  notation, calling methods on objects and classes.&lt;/P&gt; &lt;P&gt;Although it is occupy a dedicated book for detail understanding of query  expression with LINQ. Just to summarize you, here is the example that shows you  what actually query expression does.&lt;/P&gt; &lt;P&gt;For e.g.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;[] names = {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Adams&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Arthur&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Buchanan&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Bush&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Carter&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Cleveland&quot;&lt;/SPAN&gt;,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Clinton&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Coolidge&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Eisenhower&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Fillmore&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Ford&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Garfield&quot;&lt;/SPAN&gt;,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Grant&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Harding&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Harrison&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Hayes&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Hoover&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Jackson&quot;&lt;/SPAN&gt;,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Jefferson&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Johnson&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Kennedy&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Lincoln&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Madison&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;McKinley&quot;&lt;/SPAN&gt;,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Monroe&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Nixon&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Pierce&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Polk&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Reagan&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Roosevelt&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Taft&quot;&lt;/SPAN&gt;,&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Taylor&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Truman&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Tyler&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Van Buren&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Washington&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Wilson&quot;&lt;/SPAN&gt;};&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;IEnumerable&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;&amp;gt; sequence = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;from&lt;/SPAN&gt; n &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt;  names&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;where&lt;/SPAN&gt; n.Length &amp;lt; 6&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;select&lt;/SPAN&gt; n;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; name  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; sequence)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Console&lt;/SPAN&gt;.WriteLine(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;{0}&quot;&lt;/SPAN&gt;, name);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Though query expression can be used by two different way. 1) is using dot  notation and 2) is using expression syntax.&lt;/P&gt; &lt;P&gt;Hope I could make you understand what are the new improvements in the newer  version of .net 3.5.&lt;/P&gt; &lt;P&gt;Once you are aware and familiar with this feature, you are ready to get dig  into dip into the word of .net 3.5 for all new existing experience in developing  rich internet/enterprise application.&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/net-35-c-vbnet-language-improvement.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-3119998619668326867</guid><pubDate>Mon, 15 Nov 2010 05:15:00 +0000</pubDate><atom:updated>2010-11-14T21:15:42.849-08:00</atom:updated><title>Debate - Asp.net vs. PHP</title><description>&lt;P&gt;It has been a debate from long time that who is faster, asp.net or php?&lt;/P&gt; &lt;P&gt;So many times I have heard php guyes claim that php is so much faster than  Asp.Net and that Asp.Net is clunky and slow.&lt;/P&gt; &lt;P&gt;I have collected few of important resource to make it very clear.&lt;/P&gt; &lt;P&gt;See basically both the development are different like two side of coin. Each  of it have its own purpose to choose for your development need. It highly depend  how is your requirement.&lt;/P&gt; &lt;P&gt;Any way check from here to get more detail on this debate.&lt;/P&gt; &lt;P&gt;http://bit.ly/4Fdqa9&lt;/P&gt; &lt;P&gt;http://bit.ly/QMgQy&lt;/P&gt; &lt;P&gt;http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versus-linux-ndash-who-rsquo-s-the-fastest/&lt;/P&gt; &lt;P&gt;Cheers &lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/debate-aspnet-vs-php.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-5160645769001836593</guid><pubDate>Mon, 15 Nov 2010 05:14:00 +0000</pubDate><atom:updated>2010-11-14T21:15:16.312-08:00</atom:updated><title>Combine/Compress/Minify JavaScript, CSS in Asp.net</title><description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content=text/html;charset=iso-8859-1 http-equiv=Content-Type&gt; &lt;META name=GENERATOR content=&quot;MSHTML 8.00.7600.16490&quot;&gt;&lt;/HEAD&gt; &lt;BODY style=&quot;PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px&quot;  id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop=&quot;true&quot;  name=&quot;Compose message area&quot;&gt; &lt;H1 style=&quot;TEXT-ALIGN: center&quot;&gt;Combine/Compress/Minify JavaScript, CSS in  Asp.net&lt;/H1&gt; &lt;P&gt;&lt;STRONG&gt;Introduction:&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;When we design and develop the website, the performance is in the core of  development. The system you are developing must produce the result with high  speed. For the web development perspective, website load performance is very  essential thing to take care of. You need good working layout, easy layout and  easy navigation.&lt;/P&gt; &lt;P&gt;Here with this article I m not going to talk about of all the aspects of web  application performance improvements. But I am specifically targeting the topic  when it comes to the CSS and JavaScript faster loading in the client browser. In  fact Google is also counting the speed of your website site when indexing to  your website.&lt;/P&gt; &lt;P&gt;The goal was to improve overall performance on the client side. At the same  time, it will show how we can force a client side script to be coached at the  browser, so that in subsequent visit, it will take those scripts from the cache.  This becomes increasingly important when using AJAX techniques within an  application that introduce new features and functionality.&lt;/P&gt; &lt;P&gt;First of all I will outline the requirements and essential steps that this  project is made of. So that if you want to implement the same in your  development, it become easy for you to set up project.&lt;/P&gt; &lt;P&gt;To download complete project, &lt;A  href=&quot;http://www.esnips.com/doc/bb247398-9971-4fac-bb8e-02a8e8ebad7d/JS-CSS-Combiner-Minifier&quot;&gt;click  here&lt;/A&gt;&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Setup:&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;To begin with, we will have following list of files to be created in the  development studio.&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;2 XML files, first one to hold source of JS files for each page and second    to hold CSS files for each page.    &lt;LI&gt;A generic class that implement &lt;EM&gt;IHttpHandler, &lt;/EM&gt;that will be used to    delivery combined and compressed JavaScript/CSS at the client.    &lt;LI&gt;And at last your .ASPX file that will be used to serve combined and    compressed Javascript/CSS at client side.&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;&lt;STRONG&gt;Step by Step Implementation:&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;Now let&#39;s get dig into the actual development. To summarize, let&#39;s say we  have a page default.aspx that has following no. of JavaScript files and CSS  files. Think of these file that we wanted to combine them and deliver at one go  at the client browser.&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;jquery.js    &lt;LI&gt;script-file-1.js    &lt;LI&gt;style-1.css    &lt;LI&gt;style-2.css&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;As you can see, we have 2 different JavaScript file &amp;amp; 2 CSS files. So  what basically we will do in the next is to create a utility which can combine  given JavaScript and compress it, then send it to client browser. Next the same  process will be done for the CSS. Both the CSS files will be combined and  compressed and send to client browser.&lt;/P&gt; &lt;P&gt;Now it&#39;s time to take a look at into actual stuff that does this underlying  work.&lt;/P&gt; &lt;P&gt;First of all we will create a CS class file that will hold the programming  stuffs.&lt;/P&gt; &lt;P&gt;So perform the following steps to create &amp;amp; configure that CS class  file.&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;   &lt;DIV&gt;Create CS class file with the name &lt;EM&gt;ScriptCombiner.cs&lt;/EM&gt; and put the    following code in that.&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;ScriptCombiner&lt;/SPAN&gt; : &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;IHttpHandler&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;readonly&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;TimeSpan&lt;/SPAN&gt; CACHE_DURATION = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;TimeSpan&lt;/SPAN&gt;.FromDays(1);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt; context;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;void&lt;/SPAN&gt;  ProcessRequest(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;  context)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt;  IsReusable&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;get&lt;/SPAN&gt; { &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;true&lt;/SPAN&gt;;  }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;As you can see, we are implementing the &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; COLOR: rgb(43,145,175); FONT-SIZE: 10pt&quot;&gt;IHttpHandler  &lt;/SPAN&gt;interface.&lt;/P&gt; &lt;P&gt;You can write custom HTTP handlers to process specific, predefined types of  HTTP requests in any Common Language Specification (CLS) compliant language.  Executable code defined in the HttpHandler classes, rather than conventional ASP  or ASP.NET Web pages, responds to these specific requests. HTTP handlers give  you a means of interacting with the low-level request and response services of  the IIS Web server and provide functionality much like ISAPI extensions but with  a simpler programming model.&lt;/P&gt; &lt;P&gt;We are also implementing &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;IsReusable &lt;/SPAN&gt;properly as  it is compulsory to implement as a part of inheritance of &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; COLOR: rgb(43,145,175); FONT-SIZE: 10pt&quot;&gt;IHttpHandler  &lt;/SPAN&gt;interface.&lt;/P&gt; &lt;P&gt;Now, let&#39;s put the nuts &amp;amp; bolts inside the &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;ProcessRequest  &lt;/SPAN&gt;function. I will also explain you the step by step each execution that is  inside this function.&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;We will also create another CS class file that is used to compress    JavaScript. That file is named as &quot;JavaScriptMinifier.cs&quot;. Please take a look    at the attached project solution file. As it is contain long lines of code, I    can&#39;t put it here.    &lt;LI&gt;Complete your class file with following functions.&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;void&lt;/SPAN&gt;  ProcessRequest(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;  context)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; xStrType, xStrSet, xStrVer,  xStrpagecode;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Boolean&lt;/SPAN&gt; xBlnCanCompress;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;this&lt;/SPAN&gt;.context = context;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpRequest&lt;/SPAN&gt; request =  context.Request;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xStrType = (!&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.IsNullOrEmpty(request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;type&quot;&lt;/SPAN&gt;])) ? request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;type&quot;&lt;/SPAN&gt;] : &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xStrSet = (!&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.IsNullOrEmpty(request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;s&quot;&lt;/SPAN&gt;])) ? request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;s&quot;&lt;/SPAN&gt;] : &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xStrVer = (!&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.IsNullOrEmpty(request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;v&quot;&lt;/SPAN&gt;])) ? request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;v&quot;&lt;/SPAN&gt;] : &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xStrpagecode =  (!&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.IsNullOrEmpty(request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;pcode&quot;&lt;/SPAN&gt;])) ? request[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;pcode&quot;&lt;/SPAN&gt;] : &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//first check if client browser can support  compressions&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xBlnCanCompress =  CanClientGZip(request);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt; (&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MemoryStream&lt;/SPAN&gt; memStream = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;MemoryStream&lt;/SPAN&gt;(8092))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Stream&lt;/SPAN&gt; writer;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//if browser is supporing GZip compression then create a  new object using ICSharpCode.SharpZipLib.GZip&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//library which allow the compressed respose to send to  client&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (xBlnCanCompress)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;writer = (&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;  ICSharpCode.SharpZipLib.GZip.GZipOutputStream(memStream));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;writer =  memStream;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt; (writer)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//now its time to read all the script/css files into a  StringBuilder object.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StringBuilder&lt;/SPAN&gt; combinedSource = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StringBuilder&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; file  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; GetFileNames(xStrSet, xStrpagecode,  xStrType))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;combinedSource.Append(System.IO.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;File&lt;/SPAN&gt;.ReadAllText(context.Server.MapPath(file),  &lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Encoding&lt;/SPAN&gt;.UTF8));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//Upto now we have combined all css/javascript based on  request.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//its now time to remove extra white spaces and other  unwanted characters from respose.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//compression will take place now.&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; minified;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//use the YUI Javascript/CSS minifier to compress all js  files&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (xStrType == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;minified =  combinedSource.ToString();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;minified =  CompressCSS(combinedSource.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// Send minfied string to output  stream&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;byte&lt;/SPAN&gt;[] bt = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Encoding&lt;/SPAN&gt;.UTF8.GetBytes(minified);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;writer.Write(bt, 0,  bt.Length);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//cache the respose so that in next request it can be  reused&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;byte&lt;/SPAN&gt;[] responseBytes =  memStream.ToArray();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;//context.Cache.Insert(GetCacheKey(xStrSet, xStrType,  xStrVer, xBlnCanCompress), responseBytes, null,  System.Web.Caching.Cache.NoAbsoluteExpiration,  CACHE_DURATION);&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// Generate the response&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;this&lt;/SPAN&gt;.WriteBytes(responseBytes, xBlnCanCompress,  xStrType);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt;  CanClientGZip(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpRequest&lt;/SPAN&gt;  request)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; acceptEncoding = request.Headers[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Accept-Encoding&quot;&lt;/SPAN&gt;];&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (!&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.IsNullOrEmpty(acceptEncoding)  &amp;amp;&amp;amp;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;(acceptEncoding.Contains(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;gzip&quot;&lt;/SPAN&gt;) || acceptEncoding.Contains(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;deflate&quot;&lt;/SPAN&gt;)))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;true&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;false&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: green&quot;&gt;// helper method that return an array of file names inside  the text file stored in App_Data folder&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;[]  GetFileNames(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; setName, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; pagecode, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; type)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;System.Xml.XPath.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XPathDocument&lt;/SPAN&gt; doc2;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;System.Xml.XPath.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XPathNavigator&lt;/SPAN&gt; navigator;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;System.Xml.XPath.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XPathNodeIterator&lt;/SPAN&gt; iterator;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;System.Collections.Generic.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;&amp;gt; scripts = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt; System.Collections.Generic.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;List&lt;/SPAN&gt;&amp;lt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;&amp;gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; key;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (type == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;key = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;scriptfile&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;key = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;cssfile&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (System.Web.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;.Current.Cache[key] != &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;doc2 =  (System.Xml.XPath.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XPathDocument&lt;/SPAN&gt;)System.Web.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;.Current.Cache[key];&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; filename;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;filename =  System.Web.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;.Current.Server.MapPath(&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.Format(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;~/App_Data/{0}.xml&quot;&lt;/SPAN&gt;,  setName));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;doc2 = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt; System.Xml.XPath.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XPathDocument&lt;/SPAN&gt;(filename);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;System.Web.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpContext&lt;/SPAN&gt;.Current.Cache.Insert(key,  doc2, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt; System.Web.Caching.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;CacheDependency&lt;/SPAN&gt;(filename), &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;DateTime&lt;/SPAN&gt;.Now.AddMinutes(60), &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;TimeSpan&lt;/SPAN&gt;.Zero);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;navigator =  doc2.CreateNavigator();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (type == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;iterator =  navigator.Select(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;/scripts/page[@pagecode=&#39;&quot;&lt;/SPAN&gt; + pagecode +  &lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&#39;]/script&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;iterator =  navigator.Select(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;/styles/page[@pagecode=&#39;&quot;&lt;/SPAN&gt; + pagecode +  &lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&#39;]/style&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;while&lt;/SPAN&gt; (iterator.MoveNext())&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;scripts.Add(iterator.Current.InnerXml);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; scripts.ToArray();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  GetCacheKey(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; type, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; setName, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; version, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt;  cancompress)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;HttpCombiner.&quot;&lt;/SPAN&gt; + setName + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;.&quot;&lt;/SPAN&gt; + type + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;.&quot;&lt;/SPAN&gt; + version + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;.&quot;&lt;/SPAN&gt; + cancompress;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;void&lt;/SPAN&gt;  WriteBytes(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;byte&lt;/SPAN&gt;[] bytes, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;bool&lt;/SPAN&gt; isCompressed, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; type)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpResponse&lt;/SPAN&gt; response =  context.Response;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.AppendHeader(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Content-Length&quot;&lt;/SPAN&gt;,  bytes.Length.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (type == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.ContentType  = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;application/x-javascript&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.ContentType  = &lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;text/css&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (isCompressed)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.AppendHeader(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Content-Encoding&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;gzip&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.AppendHeader(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Content-Encoding&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;utf-8&amp;#8243;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;context.Response.Cache.SetCacheability(&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;HttpCacheability&lt;/SPAN&gt;.Public);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;context.Response.Cache.SetExpires(&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;DateTime&lt;/SPAN&gt;.Now.Add(CACHE_DURATION));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;context.Response.Cache.SetMaxAge(CACHE_DURATION);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.ContentEncoding =  &lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Encoding&lt;/SPAN&gt;.Unicode;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.OutputStream.Write(bytes,  0, bytes.Length);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;response.Flush();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  GetScriptTag(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; setname, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; pageid, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; type, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  ver)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; result = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&quot;&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (type == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;result += &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.Format(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&amp;lt;script type=\&quot;text/javascript\&quot;  src=\&quot;/&quot;&lt;/SPAN&gt; + Web.Utility.Functions.GetURLPrefix() + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;ScriptCombiner.axd?s={0}&amp;amp;v={1}&amp;amp;type=js&amp;amp;pcode={2}\&quot;&amp;gt;&amp;lt;/script&amp;gt;&quot;&lt;/SPAN&gt;,  setname, ver, pageid);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;result += &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.Format(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&amp;lt;link link  href=\&quot;ScriptCombiner.axd?s={0}&amp;amp;v={1}&amp;amp;type=css&amp;amp;pcode={2}\&quot;  rel=\&quot;stylesheet\&quot; type=\&quot;text/css\&quot;/&amp;gt;&quot;&lt;/SPAN&gt;, setname, ver,  pageid);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; result;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  CompressCSS(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; body)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Regex&lt;/SPAN&gt;.Replace(body, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;/\\*.+?\\*/&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;RegexOptions&lt;/SPAN&gt;.Singleline);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot; &quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine +  &lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine + &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine +  &lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine, &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Environment&lt;/SPAN&gt;.NewLine,  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;\\t&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot; {&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;{&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot; :&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;:&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;: &quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;:&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;, &quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;,&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;; &quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;;&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body =  body.Replace(&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;;}&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;}&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Regex&lt;/SPAN&gt;.Replace(body, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;/\\*[^\\*]*\\*+([^/\\*]*\\*+)*/&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;$1&amp;#8243;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;body = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Regex&lt;/SPAN&gt;.Replace(body, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;(?&amp;lt;=[&amp;gt;])\\s{2,}(?=[&amp;lt;])|(?&amp;lt;=[&amp;gt;])\\s{2,}(?=&amp;amp;nbsp;)|(?&amp;lt;=&amp;amp;ndsp;)\\s{2,}(?=[&amp;lt;])&quot;&lt;/SPAN&gt;,  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; body;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;You are now almost done with 50% of work for your project.&lt;/P&gt; &lt;P&gt;Now let&#39;s take a look at the few of important execution steps that are in  this function.&lt;/P&gt; &lt;P&gt;First of all we are declaring four different string variables:&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; xStrType, xStrSet, xStrVer,  xStrpagecode;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;They will be used to get the Querystring passed in to this handler. This is  utilized later on the code.&lt;/P&gt; &lt;P&gt;Moving next, you will find these function call:&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt&quot;&gt;//first  check if client browser can support compressions&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;xBlnCanCompress =  CanClientGZip(request);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;This is basically to check does client browser support GZip compression.&lt;/P&gt; &lt;P&gt;Gzip compression, otherwise known as content encoding, is a publicly defined  way to compress textual content transferred from web servers to browsers. HTTP  compression uses public domain compression algorithms, like gzip and compress,  to compress XHTML, JavaScript, CSS, and other text files at the server. This  standards-based method of delivering compressed content is built into HTTP 1.1,  and most modern browsers that support HTTP 1.1 support ZLIB inflation of  deflated documents. In other words, they can decompress compressed files  automatically, which saves time and bandwidth.&lt;/P&gt; &lt;P&gt;In the next step it is preparing the &lt;EM&gt;stream&lt;/EM&gt; object used to hold the  response output. We will not take dipper look into that code. As I expect that  the a beginning developer even must be able know about next few line of code.  &lt;SPAN style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Let&#39;s move to the line of code:&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt&quot;&gt;//now  its time to read all the script/css files into a StringBuilder  object.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StringBuilder&lt;/SPAN&gt; combinedSource = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StringBuilder&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; file  &lt;SPAN style=&quot;COLOR: blue&quot;&gt;in&lt;/SPAN&gt; GetFileNames(xStrSet, xStrpagecode,  xStrType))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;combinedSource.Append(System.IO.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;File&lt;/SPAN&gt;.ReadAllText(context.Server.MapPath(file),  &lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Encoding&lt;/SPAN&gt;.UTF8));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;As you can see in the foreach loop, it is calling to method &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;GetFileNames, &lt;/SPAN&gt;by  passing 3 different parameters. Here this is also core and important part of  this project. Let me outline you first what this function basically do. This  function will read to the &quot;script.xml&quot; file that hold content of script file  that we want to load. Please look inside the attached project solution to  understand it better. The function will read xml file and return array of string  object containing JavaScript files to read.&lt;/P&gt; &lt;P&gt;In the subsequent line of code, it iterate through each file name and read  it. Each content of read file is placed inside a &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; COLOR: rgb(43,145,175); FONT-SIZE: 10pt&quot;&gt;StringBuilder  &lt;/SPAN&gt;object.&lt;/P&gt; &lt;P&gt;Please take look at the code inside the &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;GetFileNames &lt;/SPAN&gt;function  to understand what is actually happening inside it. It fetches the  JavaScript/CSS based on the parameter passed. And return either the JavaScript  file name array or CSS file name array.&lt;/P&gt; &lt;P&gt;So now we have a combined script/CSS with us. It&#39;s a time to minify  JavaScript/CSS now.&lt;/P&gt; &lt;P&gt;Following line of code will minify respective JavaScript/CSS based on type of  client script requested.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt&quot;&gt;//use  the YUI Javascript/CSS minifier to compress all js files&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (xStrType == &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;js&quot;&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;JavaScriptMinifier&lt;/SPAN&gt; minifier = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;JavaScriptMinifier&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;minified =  minifier.Minify(combinedSource.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;else&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;minified =  CompressCSS(combinedSource.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;The &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; COLOR: rgb(43,145,175); FONT-SIZE: 10pt&quot;&gt;JavaScriptMinifier  &lt;/SPAN&gt;has been created in the 2&lt;SUP&gt;nd&lt;/SUP&gt; step. Please refer to the attached  solution project for more detail regarding this class file. I have adopted this  class file from one of the article&lt;/P&gt; &lt;P&gt;You will also see function &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;CompressCSS &lt;/SPAN&gt;that is  used to compress CSS file. The compressor of CSS file is done through just few  regular expression. JavaScript compression has different algorithm.&lt;/P&gt; &lt;P&gt;After that it is calling to &lt;SPAN  style=&quot;FONT-FAMILY: Courier New; FONT-SIZE: 10pt&quot;&gt;WriteBytes &lt;/SPAN&gt;function  that will prepare the combined &amp;amp; compressed JavaScript &amp;amp; CSS response  and send it to the client.&lt;/P&gt; &lt;P&gt;Hurray as part of implementation we are done.&lt;/P&gt; &lt;P&gt;Now it&#39;s time to check that in action. You can run the project attached here  with and check it In live action.&lt;/P&gt; &lt;P&gt;To download complete project, &lt;A  href=&quot;http://www.esnips.com/doc/bb247398-9971-4fac-bb8e-02a8e8ebad7d/JS-CSS-Combiner-Minifier&quot;&gt;click  here&lt;/A&gt;&lt;/P&gt; &lt;P&gt;Let&#39;s compare the result of two different pages. The first one is with the  compressed JavaScript &amp;amp; CSS. The second one is with the normal JavaScript  &amp;amp; CSS. We will also see the difference in load time and size of content  received.&lt;/P&gt; &lt;P&gt;Response time with compressed JavaScript &amp;amp; CSS.&lt;/P&gt; &lt;P&gt;&lt;IMG  style=&quot;POSITION: static; MARGIN: 10px 0px 0px; DISPLAY: inline-block; FLOAT: none&quot;  border=0 src=&quot;cid:83636EF40989416EA2D9FA2BA2E46AEF@ccc134&quot; width=480  height=134&gt;&lt;/P&gt; &lt;P&gt;&lt;/P&gt; &lt;P&gt;Response time without compressed JavaScript &amp;amp; CSS.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;&lt;IMG  style=&quot;POSITION: static; MARGIN: 10px 0px 0px; DISPLAY: inline-block; FLOAT: none&quot;  border=0 src=&quot;cid:A4A010A879FE40198507063F9A300F95@ccc134&quot; width=480  height=163&gt;&lt;/P&gt; &lt;P&gt;As you can see from given statistics&lt;/P&gt; &lt;P&gt;With Combined &amp;amp; Compressed JavaScript and CSS ..&lt;/P&gt; &lt;P&gt;Total request: 3&lt;/P&gt; &lt;P&gt;Response size: 16.3 KB&lt;/P&gt; &lt;P&gt;Without Combined &amp;amp; Compressed JavaScript and CSS ..&lt;/P&gt; &lt;P&gt;Total request: 5&lt;/P&gt; &lt;P&gt;Response size: 96 KB&lt;/P&gt; &lt;P&gt;You can clearly see the difference between these two request.&lt;/P&gt; &lt;P&gt;To get more idea open and run the project yourself. That will give you better  idea.&lt;/P&gt; &lt;P&gt;Hope you will find it very useful.&lt;/P&gt; &lt;P&gt;Happy coding. &lt;SPAN style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt; </description><link>http://milindkansagara1984.blogspot.com/2010/11/combinecompressminify-javascript-css-in.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-6232171991335780371</guid><pubDate>Mon, 15 Nov 2010 05:07:00 +0000</pubDate><atom:updated>2010-11-14T21:07:31.110-08:00</atom:updated><title>jQuery pager-Flicker like jQuery pager</title><description>&lt;P&gt;Intension for the development of this PlugIn is to develop a &lt;STRONG&gt;jQuery  pagination&lt;/STRONG&gt; which resembles &lt;STRONG&gt;Flicker  like&lt;BR&gt;pagination&lt;/STRONG&gt;.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;jPager&lt;/STRONG&gt; is a jQuery pager plugin, similar to &lt;STRONG&gt;Flickr&#39;s  paging&lt;/STRONG&gt; interface.&lt;/P&gt; &lt;P&gt;If you have ever visited Flicker photo sharing website, you would have  noticed that it display a range of pages with&lt;BR&gt;current page in middle. It also  facilitates to have back and forth navigation. If you have very large data  spread across&lt;BR&gt;range of pages, and then it leave outs page numbers, displaying  an ellipsis instead, followed by the last page number.&lt;/P&gt; &lt;P&gt;It is very integrative &lt;STRONG&gt;jQuery pager Plugin&lt;/STRONG&gt;.&lt;/P&gt; &lt;P&gt;Although pager is generally used along with some grid controls, but there may  be sometime kind of requirement where&lt;BR&gt;you may require to use &lt;STRONG&gt;jQuery  pager control&lt;/STRONG&gt; alone itself. For e.g. you may use along with some image  gallery,&lt;BR&gt;rotating content, carousel like section etc.&lt;/P&gt; &lt;P&gt;This &lt;STRONG&gt;jQuery pager/Flicker like jQuery pager&lt;/STRONG&gt; allows you to  creating pagination facility into you application&lt;BR&gt;with minimum effort.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;How to use? &lt;/STRONG&gt;&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;Reference &lt;STRONG&gt;jPager.js &amp;amp; jPager.css&lt;/STRONG&gt; files in your page &lt;PRE class=&quot;brush: js&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;jquery-1.2.6.min.js&quot; /&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;jPager.js&quot; /&amp;gt; &amp;lt;link href=&quot;jPager.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;&lt;/PRE&gt;   &lt;LI&gt;create a HTML container for pager. Put it where you wanted to display your    pager require.&lt;BR&gt;&amp;lt;div id=&quot;content&quot;&amp;gt;&amp;lt;/div&amp;gt;    &lt;LI&gt;Put the following sript in your page.&lt;BR&gt;&amp;lt;script type=&quot;text/javascript&quot;    language=&quot;javascript&quot;&amp;gt;&lt;BR&gt;&lt;CODE&gt;&lt;BR&gt;&lt;FONT    face=&quot;Courier New&quot;&gt;$(document).ready(function() { $(&quot;#content&quot;).pager({    PageCount: 5, currentPage: 1 }); }); &lt;/FONT&gt;&lt;/CODE&gt;&lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;&lt;STRONG&gt;Features&lt;/STRONG&gt;:&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;Very lighweight &amp;amp; easy to use and easy to integrate. Just one line of    code you need to build jQuery pager.    &lt;LI&gt;CSS driven so layout is fully costomizable with CSS.    &lt;LI&gt;Event driven facility make it easy to call any custom script whenever page    get chaged.    &lt;LI&gt;Supports upto unlimited pages.    &lt;LI&gt;Display custom text for previous &amp;amp; next buttons.    &lt;LI&gt;Hide displaying previous &amp;amp; next buttons.&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;You can download the demo &amp;amp; source code from &lt;A  title=&quot;jQuery pager/Flicker like jQuery pager&quot;  href=&quot;http://code.google.com/p/jquerypager/&quot; target=_blank&gt;here&lt;/A&gt;.&lt;/P&gt; &lt;P&gt;Cheers&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/11/jquery-pager-flicker-like-jquery-pager.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8318439534478591610</guid><pubDate>Mon, 15 Nov 2010 05:07:00 +0000</pubDate><atom:updated>2010-11-14T21:07:24.647-08:00</atom:updated><title>Reading emails from POP server in asp.net</title><description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content=text/html;charset=iso-8859-1 http-equiv=Content-Type&gt; &lt;META name=GENERATOR content=&quot;MSHTML 8.00.7600.16490&quot;&gt;&lt;/HEAD&gt; &lt;BODY style=&quot;PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px&quot;  id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop=&quot;true&quot;  name=&quot;Compose message area&quot;&gt; &lt;P&gt;In this article, I will explain you how to read email from POP3 server or  read emails from POP3 server which require SSL. Although I have not developed my  own library, I prefer to utilize the available resource.&lt;/P&gt; &lt;P&gt;Well, while being in the development, you have very limited time constraint  to go and research on POP3 and then develop your own component.&lt;/P&gt; &lt;P&gt;It is sometime wise decision to go and do the &lt;EM&gt;Googling&lt;/EM&gt; and find out  your requirement.&lt;/P&gt; &lt;P&gt;After all we, as developer should &quot;do smart work, not hardwork&quot; &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Anyway, for those who have kind of requirement like reading emails from POP3  server from asp.net, reading email from email server in asp.net etc. Here is the  article that you probably find it useful.&lt;/P&gt; &lt;P&gt;Well I had requirement in couple of project where I need to collect emails  that are there in particular email&#39;s Inbox. Earlier I was used to with component  &quot;Indy.Sockets&quot; component, which really help me to achieve my task.&lt;/P&gt; &lt;P&gt;You may find it from here.&lt;/P&gt; &lt;P&gt;&lt;A  href=&quot;http://www.indyproject.org/&quot;&gt;www.&lt;STRONG&gt;indy&lt;/STRONG&gt;project.org/&lt;/A&gt;&lt;EM&gt;&lt;BR&gt;&lt;/EM&gt;&lt;/P&gt; &lt;P&gt;It is an open source socket library. It supports may protocols like SMTP,  POP3, NNTP, HTTP, and many more.&lt;/P&gt; &lt;P&gt;Then in one of the module that I come to develop, I need to read Inbox of a  Gmail account!&lt;/P&gt; &lt;P&gt;Well as you know, Gmail requires SSL.&lt;/P&gt; &lt;P&gt;But the drawback with component is it does not support SSL.&lt;/P&gt; &lt;P&gt;So I discover &lt;A  href=&quot;http://www.agilecomponents.com/&quot;&gt;Mailsystem.NET&lt;/A&gt;.&lt;/P&gt; &lt;P&gt;MailSystem is a suite of .NET components that provide users with an extensive  set of email tools.&lt;/P&gt; &lt;P&gt;I will not explain more in detail on this, rather I will rather just explain  how to integrate it and use it.&lt;/P&gt; &lt;P&gt;You can find more information from here..&lt;/P&gt; &lt;P&gt;&lt;A  href=&quot;http://www.agilecomponents.com/&quot;&gt;http://www.agilecomponents.com/&lt;/A&gt;&lt;/P&gt; &lt;P&gt;Once you download it and extract it, you will require to do following  steps..&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;Navigate to &quot;Release&quot; folder in extracted folder.    &lt;LI&gt;Find these DLLs: ActiveUp.Net.Mail.dll, ActiveUp.Net.Common.dll,    ActiveUp.Net.Dns.dll, ActiveUp.Net.Pop3.dll.    &lt;LI&gt;Add reference of these DLLs into your file.&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;Hurray are almost done with you configuration.&lt;/P&gt; &lt;P&gt;Now, you only just need to develop your script that fetched and read emails  from POP3 server.&lt;/P&gt; &lt;P&gt;So for that, here is the readymade script for you &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;public string[]  GetDeliveryFailureEMailsAddress()&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;Pop3Client pop = new  Pop3Client();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New&quot;&gt;System.Collections.Generic.List&amp;lt;string&amp;gt;  emails = new System.Collections.Generic.List&amp;lt;string&amp;gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;try {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;// Connect to the pop3  client&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;pop.ConnectSsl(SMTPHost, Port,  SMTPUserId, SMTPPass);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;MessageCollection mc = new  MessageCollection();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;for (int n = 1; n &amp;lt;=  pop.MessageCount; n++) {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;Message newMessage =  pop.RetrieveMessageObject(n);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;//do your stuffs here using newMessage  object.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;} catch (Pop3Exception pexp)  {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;} finally {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;if (pop.IsConnected) {&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;pop.Disconnect();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;return  emails.ToArray();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;One important part in this script is object initialization.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;// Connect to the pop3  client&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;pop.ConnectSsl(SMTPHost, Port,  SMTPUserId, SMTPPass);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;As per Gmail, you need to set:&lt;/P&gt; &lt;P&gt;Host: pop.gmail.com&lt;/P&gt; &lt;P&gt;Port: 995&lt;/P&gt; &lt;P&gt;As I told earlier, I want to read email from POP3 server that requires SSL in  asp.net.&lt;/P&gt; &lt;P&gt;There are different overloaded constructors that you can use to connect to  POP3 server from asp.net.&lt;/P&gt; &lt;P&gt;The library itself is very rich. You can achieve following functionality with  POP3 server.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;Read/Read email from POP3 server in asp.net with CRAM authentication.    &lt;LI&gt;Retrieve/Read email from POP3 server in asp.net asynchronously.    &lt;LI&gt;Retrieve/Read email from POP3 server in asp.net with secure connection,    like SSL in Gmail.    &lt;LI&gt;Retrieve/Read only email count from POP3 server in asp.net.    &lt;LI&gt;Retrieve/Read only email header from POP3 server in asp.net.    &lt;LI&gt;Retrieve/Read full emails from POP3 server in asp.net.    &lt;LI&gt;Retrieve/Read full emails to a file from POP3 server in asp.net.&lt;/LI&gt;&lt;/UL&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt; </description><link>http://milindkansagara1984.blogspot.com/2010/11/reading-emails-from-pop-server-in.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-5308471538130683900</guid><pubDate>Mon, 15 Nov 2010 05:07:00 +0000</pubDate><atom:updated>2010-11-14T21:07:18.497-08:00</atom:updated><title>How to convert value to Enum</title><description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content=text/html;charset=iso-8859-1 http-equiv=Content-Type&gt; &lt;META name=GENERATOR content=&quot;MSHTML 8.00.7600.16490&quot;&gt;&lt;/HEAD&gt; &lt;BODY style=&quot;PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px&quot;  id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop=&quot;true&quot;  name=&quot;Compose message area&quot;&gt; &lt;H1&gt;How to convert a value into Enum?&lt;/H1&gt; &lt;P&gt;In project, we sometime come across a kind of situation where we need to  convert some value to Enum and an Enum object into certain value.&lt;/P&gt; &lt;P&gt;One solution to this is we can write chunk of switch-case statement and  return the desired result.&lt;/P&gt; &lt;P&gt;But is there any rationalize method to achieve this? Yes here is the piece of  code that you may find it useful. I have implemented it in many of my project  and it really helps me reduce some overloaded work for me.&lt;/P&gt; &lt;P&gt;So here is that code for you in which I demonstrate how you can convert a  value into Enum object.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt;  System;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt;  System.Collections.Generic;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt;  System.Linq;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;class&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;EnumsConverter&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt; T  ConvertValueToEnum&amp;lt;T&amp;gt;(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;object&lt;/SPAN&gt; value, T  defaultValue)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Type&lt;/SPAN&gt; enumType = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Reflection&lt;/SPAN&gt;.ExtractEnumType(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;typeof&lt;/SPAN&gt;(T));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (enumType == &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;throw&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;ArgumentException&lt;/SPAN&gt;(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Type T is not an enumeration&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;T&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;try&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; (T)&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Enum&lt;/SPAN&gt;.Parse(enumType,  value.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;catch&lt;/SPAN&gt; (&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;ArgumentException&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; defaultValue;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;static&lt;/SPAN&gt; T  ConvertValueToEnum&amp;lt;T&amp;gt;(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;object&lt;/SPAN&gt;  value)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Type&lt;/SPAN&gt; enumType = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Reflection&lt;/SPAN&gt;.ExtractEnumType(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;typeof&lt;/SPAN&gt;(T));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt; (enumType == &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;throw&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;ArgumentException&lt;/SPAN&gt;(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;Type T is not an enumeration&quot;&lt;/SPAN&gt;, &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;T&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; (T)&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Enum&lt;/SPAN&gt;.Parse(enumType,  value.ToString());&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Here there are two overloaded methods. All you have to do is pass your  desired enumeration object. The method itself will identify and return attached  valued to that particular Enum object.&lt;/P&gt; &lt;P&gt;Happy programming&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt; </description><link>http://milindkansagara1984.blogspot.com/2010/11/how-to-convert-value-to-enum.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-6963745940329972347</guid><pubDate>Mon, 15 Nov 2010 05:07:00 +0000</pubDate><atom:updated>2010-11-14T21:07:12.948-08:00</atom:updated><title>How to call Google MAP Webservice API from asp.net, call Geocoding Map API Webservice from asp.net</title><description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content=text/html;charset=iso-8859-1 http-equiv=Content-Type&gt; &lt;META name=GENERATOR content=&quot;MSHTML 8.00.7600.16490&quot;&gt;&lt;/HEAD&gt; &lt;BODY style=&quot;PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px&quot;  id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop=&quot;true&quot;  name=&quot;Compose message area&quot;&gt; &lt;P&gt;&lt;STRONG&gt;How the necessities arise?&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;Necessity is mother of invention.&lt;/P&gt; &lt;P&gt;I was assigned a task to develop a restaurant portal.&lt;/P&gt; &lt;P&gt;The basic aim behind creation of this project is to have a marketplace for  all restaurant owner or hotel business, and provide end user with integrative  google map services so that they visualize realtime.&lt;/P&gt; &lt;P&gt;If we are supposed to insert a simple google map, then we just have to insert  a piece javascript code, and boom you are done.&lt;/P&gt; &lt;P&gt;But in my project, I have requirement where different restaurant/hotel owner  register and give us their details and addresses.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;So, What is Google Map API?&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;The Google Maps API lets you embed Google Maps in your own web pages with  JavaScript. The API provides a number of utilities for manipulating maps and  adding content to the map through a variety of services, allowing you to create  robust maps applications on your website.&lt;/P&gt; &lt;P&gt;All map related functionalities can be achieved as seen on &lt;A  href=&quot;http://maps.google.com/&quot;&gt;http://maps.google.com/&lt;/A&gt;&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Then what was hurdle for me in using Map API?&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;These are the pure JavaScript code..!! You can develop whatever rich Map  application you wanted to develop by writing piece of JavaScript codes.&lt;/P&gt; &lt;P&gt;Actually to host a map on your page, you need to have two parameters,  Latitude &amp;amp; Longitude. But how do I get lat. and long. from server side  scripting?&lt;/P&gt; &lt;P&gt;But I had no idea how to call Google Map API from C#/VB.NET.&lt;/P&gt; &lt;P&gt;So for my project, as usual, I start googling to find out my piece of  sweet.&lt;/P&gt; &lt;P&gt;After searching for couple of hours, I come across this good article.&lt;/P&gt; &lt;P&gt;&lt;A  href=&quot;http://webcodeblog.com/2010/04/24/obtain-latitude-and-longitude-co-ordinates-for-an-address-using-asp-net-and-the-google-maps-api/&quot;&gt;http://webcodeblog.com/2010/04/24/obtain-latitude-and-longitude-co-ordinates-for-an-address-using-asp-net-and-the-google-maps-api/&lt;/A&gt;&lt;/P&gt; &lt;P&gt;Here the author explained the how to obtain the latitude and longitude  co-ordinates for an address using the Google Maps API.&lt;/P&gt; &lt;P&gt;But again here, it is pure JavaScript that utilize Google Map API to get lat  &amp;amp; long of any address. But my problem is still there?&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Hurrray.. I found the solution&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;Then accidently I come to across Google Maps API Web Services.&lt;/P&gt; &lt;P&gt;It is basically Maps API Web Services, a collection of HTTP interfaces to  Google services providing geographic data for your maps applications.&lt;/P&gt; &lt;P&gt;In the documentation (&lt;A  href=&quot;http://code.google.com/apis/maps/documentation/webservices/&quot;&gt;http://code.google.com/apis/maps/documentation/webservices/&lt;/A&gt;),&lt;/P&gt; &lt;P&gt;I see that you can utilize Google Map API web service by making HTTP request  to a specific URL, providing necessary parameters with URL. Which in return,  gives a response in desired format.&lt;/P&gt; &lt;P&gt;You can get response inform of JSON or XML.&lt;/P&gt; &lt;P&gt;Say for e.g. it can be called like this URL&lt;/P&gt; &lt;P&gt;&lt;A  href=&quot;http://maps.google.com/maps/geo?q=khandala,%20maharashtra&amp;amp;output=xml&amp;amp;key=xxxxxxxxxxxxxx&quot;&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New&quot;&gt;http://maps.google.com/maps/geo?q=khandala,  maharashtra&amp;amp;output=xml&amp;amp;key=xxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New; COLOR: green&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Paste it into your browser and you will receive a XML response.&lt;/P&gt; &lt;P&gt;Immediately, I get one &quot;Mantos (&lt;EM&gt;Dimag ki batti jala de&lt;/EM&gt;)&quot; and found a  clue &lt;SPAN style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;I thought why not to develop a library that make a call to this URL and parse  the returned output to get lat &amp;amp; long!!?&lt;/P&gt; &lt;P&gt;So for that purpose I write this library.&lt;/P&gt; &lt;P&gt;Obviously, before doing all these, you will need to register with Google Map  API and get a key so that you can utilize their API.&lt;/P&gt; &lt;P&gt;Sign up and get a Google Maps API Key.&amp;nbsp; You will need one for the domain  name of where you will be hosting the map.&amp;nbsp; You can get your API Key from  here (&lt;A title=http://code.google.com/apis/maps/signup.html  href=&quot;http://code.google.com/apis/maps/signup.html&quot;&gt;http://code.google.com/apis/maps/signup.html&lt;/A&gt;)&lt;/P&gt; &lt;P&gt;Following is the complete code that I used to call Google Map &lt;A  href=&quot;http://code.google.com/apis/maps/documentation/geocoding/&quot;&gt;Geocoding  API&lt;/A&gt; from Asp.net.&lt;/P&gt; &lt;P&gt;All you have to do Is to just create a class file and paste the following  code. And you are ready to call Google Map &lt;A  href=&quot;http://code.google.com/apis/maps/documentation/geocoding/&quot;&gt;Geocoding  API&lt;/A&gt;.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;How to call Geocoding API from Asp.net?&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Step 1&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt; Resolve addresses into  latitude/longitude coordinates using Google MAP API  webservices&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: gray&quot;&gt;&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public static&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;  class&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  Geocoder&lt;/SPAN&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; static&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt; string&lt;/SPAN&gt; _GoogleMapsKey = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Config&lt;/SPAN&gt;.getAppSetting(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;GoogleMapsKey&quot;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt; Google.com  Geocoder&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt; Url request  to&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt;  http://maps.google.com/maps/geo?q=your  address&amp;amp;output=xml&amp;amp;key=xxxxxxxxxxxxxx&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; static&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt; Geolocation&lt;/SPAN&gt;? ResolveAddress(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; query)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt;  (&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.IsNullOrEmpty(_GoogleMapsKey))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;_GoogleMapsKey = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;ConfigurationManager&lt;/SPAN&gt;.AppSettings[&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;GoogleMapsKey&quot;&lt;/SPAN&gt;];&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; url = &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;http://maps.google.com/maps/geo?q={0}&amp;amp;output=xml&amp;amp;key=&quot;&lt;/SPAN&gt;  + _GoogleMapsKey; &lt;SPAN style=&quot;COLOR: green&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;url = &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;String&lt;/SPAN&gt;.Format(url, query);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XmlNode&lt;/SPAN&gt; coords = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;try&lt;/SPAN&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; xmlString = GetUrl(url);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XmlDocument&lt;/SPAN&gt; xd = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  XmlDocument&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;xd.LoadXml(xmlString);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;XmlNamespaceManager&lt;/SPAN&gt; xnm = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  XmlNamespaceManager&lt;/SPAN&gt;(xd.NameTable);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;coords = xd.GetElementsByTagName(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;coordinates&quot;&lt;/SPAN&gt;)[0];&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;catch&lt;/SPAN&gt; { }&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Geolocation&lt;/SPAN&gt;? gl = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt;  (coords != &lt;SPAN style=&quot;COLOR: blue&quot;&gt;null&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN  style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;[] coordinateArray =  coords.InnerText.Split(&lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&#39;,&#39;&lt;/SPAN&gt;);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;if&lt;/SPAN&gt;  (coordinateArray.Length &amp;gt;= 2)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;gl = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  Geolocation&lt;/SPAN&gt;(&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Convert&lt;/SPAN&gt;.ToDecimal(coordinateArray[1].ToString()),  &lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Convert&lt;/SPAN&gt;.ToDecimal(coordinateArray[0].ToString()));&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; gl;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt; static&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  Geolocation&lt;/SPAN&gt;? ResolveAddress(&lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  address, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; city, &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; state, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;  postcode, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; country)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; ResolveAddress(address + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;,&quot;&lt;/SPAN&gt; + city + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;,&quot;&lt;/SPAN&gt; + state + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;,&quot;&lt;/SPAN&gt; + postcode + &lt;SPAN  style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot; &quot;&lt;/SPAN&gt; + country);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;&amp;lt;summary&amp;gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: gray&quot;&gt;///&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: green&quot;&gt; Retrieve a Url via  WebClient&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;private&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; static&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt; string&lt;/SPAN&gt; GetUrl(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; url)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt; result = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;string&lt;/SPAN&gt;.Empty;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;System.Net.&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;WebClient&lt;/SPAN&gt; Client = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  WebClient&lt;/SPAN&gt;();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;using&lt;/SPAN&gt;  (&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Stream&lt;/SPAN&gt; strm =  Client.OpenRead(url))&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;StreamReader&lt;/SPAN&gt; sr = &lt;SPAN  style=&quot;COLOR: blue&quot;&gt;new&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(43,145,175)&quot;&gt;  StreamReader&lt;/SPAN&gt;(strm);&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;result =  sr.ReadToEnd();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt; result;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; struct&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt; Geolocation&lt;BR&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; decimal&lt;/SPAN&gt;  Lat;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; decimal&lt;/SPAN&gt;  Lon;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt; Geolocation(&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;decimal&lt;/SPAN&gt; lat, &lt;SPAN style=&quot;COLOR: blue&quot;&gt;decimal&lt;/SPAN&gt;  lon)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;Lat = lat;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;Lon = lon;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;BR&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; override&lt;/SPAN&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt; string&lt;/SPAN&gt; ToString()&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt; &quot;Latitude:  &quot;&lt;/SPAN&gt; + Lat.ToString() + &lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot; Longitude:  &quot;&lt;/SPAN&gt; + Lon.ToString();&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;public&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt; string&lt;/SPAN&gt;  ToQueryString()&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;{&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: blue&quot;&gt;return&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;  &quot;+to:&quot;&lt;/SPAN&gt; + Lat + &lt;SPAN style=&quot;COLOR: rgb(163,21,21)&quot;&gt;&quot;%2B&quot;&lt;/SPAN&gt; +  Lon;&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;}&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Step 2&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;Now, you just need to put a key in AppSetting section that hold your Google  Map API key.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Step 3&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;P&gt;I have provided 2 overloaded methods to call Geocoding Map API Webservice,  named &lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;ResolveAddress.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Say for e.g. you can call method like this.&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Courier New&quot;&gt;&lt;SPAN  style=&quot;COLOR: rgb(43,145,175)&quot;&gt;Geocoder.&lt;/SPAN&gt;ResolveAddress(&quot;University  road&quot;,&quot;rajkot&quot;,&quot;gujarat&quot;,&quot;&quot;,&quot;India&quot;)&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;I hope this will solve your purpose, those who wanted to develop Geocoding  application, those who want to access Google Map Webservice API from  c#/vb.net.&lt;/P&gt; &lt;P&gt;Happy programming&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt; </description><link>http://milindkansagara1984.blogspot.com/2010/11/how-to-call-google-map-webservice-api.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8337181516082421203</guid><pubDate>Mon, 15 Nov 2010 05:06:00 +0000</pubDate><atom:updated>2010-11-14T21:07:07.786-08:00</atom:updated><title>Communication - From developers point of view</title><description>&lt;p class=&quot;mobile-photo&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvvASSXKd-6QAQSiVjW8naSgm9qvIHou5tQQ-G5dQK5iAHcYB3n7hC3mmp1mSYeMC75ZvDr1Ai-zmS2qoBeHjn1xlkzVARbtabei5N1wGM2ou68JSHsEHa0Xdu5z8Pwhz_PgBTLdV4rMk/s1600/071510_0732_1-727787.png&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvvASSXKd-6QAQSiVjW8naSgm9qvIHou5tQQ-G5dQK5iAHcYB3n7hC3mmp1mSYeMC75ZvDr1Ai-zmS2qoBeHjn1xlkzVARbtabei5N1wGM2ou68JSHsEHa0Xdu5z8Pwhz_PgBTLdV4rMk/s320/071510_0732_1-727787.png&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5539638634496633650&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META content=text/html;charset=iso-8859-1 http-equiv=Content-Type&gt; &lt;META name=GENERATOR content=&quot;MSHTML 8.00.7600.16490&quot;&gt;&lt;/HEAD&gt; &lt;BODY style=&quot;PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px&quot;  id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop=&quot;true&quot;  name=&quot;Compose message area&quot;&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;&lt;STRONG&gt;Introduction:&lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;   &lt;DIV&gt;&lt;SPAN style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;By definition    communication means: &quot;&lt;EM&gt;It is the process of passing information and    understanding from one person to another. It is essentially a bridge of    meaning between people. By using the bridge of meaning, a person can safely    cross the river of misunderstanding that separates all the    people.&lt;/EM&gt;&quot;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;History of    communication says that it comes from a Latin word: &quot;communicare&quot;, which as    three meaning imminent from it:&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;OL&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;&quot;To make common&quot;,      which is probably can be derived from 2 or 3.&lt;BR&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;&quot;Cum + munus&quot;, its      like having a gift to share in mutual donation.&lt;BR&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;Building together a      defence.&lt;BR&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;From the developer point of view (I hope    reader is somewhere involved programming &lt;SPAN    style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt; ), communication is real important    factor to improvise one&#39;s potentiality. A good leader has to be a good    communicator. It&#39;s not so that communication skills means the way you talk,    the way you present your idea to others. Communication skill involves many    other areas. Like: Verbal communication, Non verbal communication, written    communication, Gesture communication etc.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;All these are nuts &amp;amp; bolts for being a    good communicator.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;Communication makes you perfect in    demonstrating your ideas to front end people. Let&#39;s take few examples that    give you glimpse why communication skill is so important for a    developer/leader.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;OL&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;Think what if you are a technical leader      and your client has given you a task. You are supposed to present him      technical feasibility report or say you wanted to explain him/her flow of      your system. If you are not have a good command over your English,      collections vocabulary, you are not used to prepare &amp;amp; utilize MS word,      then?&lt;BR&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;In number of different occasions, we as      developer/leader need to talk with different users. These users may be end      users of system, stack holders, clients who have given as project to work      on. Different people have different emotions and different style of      communication. In these cases, you need to communicate in a balanced      view.&lt;BR&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;When I was a fresher, digging into the      word of programming. We were instructed that when any CRUD operation is      performed, you need to show users a message that operation successfully      completed. When in an application someone create a PO from their site, I say      them &quot;operation successfully completed.&quot; But what operation? &lt;SPAN      style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;Well, there are many many many other points    that can be put here in list, but in that case you may avoid to read my    article. And I don&#39;t want to make that happen &lt;SPAN    style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;So let&#39;s take a took some important    &lt;STRONG&gt;characteristics of a good communication&lt;/STRONG&gt;.&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;   &lt;OL&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;&lt;STRONG&gt;It&#39;s a two way process&lt;/STRONG&gt;       It&#39;s quite understandable. In any communication system there are two parties      involved. One is &lt;EM&gt;Transmitter&lt;/EM&gt; another is &lt;EM&gt;receiver&lt;/EM&gt;. Overall      motto of communication is to delivery your message to other parties. It may      be comprising of debate, discussion etc.&lt;BR&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;STRONG&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;It&#39;s continuous process      &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;Communication      process continues to the extent that ideas and messages are communicated and      received. Like for e.g. if we are at system analysis stage for any project.      Continues discussion is very important. As a analyst, we have to be in      contact with stack holder to understand their requirement. We have to      identify end user who is going to use the software/application. &lt;SPAN      style=&quot;FONT-SIZE: 10pt&quot;&gt;&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;     &lt;LI&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt&quot;&gt;It can be in formal way or informal way,      though it may be in different medium.&lt;BR&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;P&gt;&lt;STRONG&gt;Elements of communication&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;&lt;/P&gt;   &lt;P&gt;&lt;STRONG&gt;Why communication is so important for us?&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt;   &lt;P&gt;It is important because.&lt;/P&gt;   &lt;OL&gt;     &lt;LI&gt;Making enterprise run smoothly.      &lt;LI&gt;Quick decision and implementation.      &lt;LI&gt;Project planning &amp;amp; coordination.      &lt;LI&gt;Maximizing productivity.      &lt;LI&gt;Morale building/Motivation tool and developing your democratic      leadership style.&lt;/LI&gt;&lt;/OL&gt;   &lt;P&gt;Properly recorded communication documents, system analysis docs., technical    specification, ER diagrams, these are the documents that we generally prepare    so that it make ease for any new comer in organization to get settle with his    project. This makes organization to run smooth.&lt;/P&gt;   &lt;P&gt;Moreover, properly maintained documents allow you to make quick discussion    in hurry.&lt;/P&gt;   &lt;P&gt;For proper co-ordination and maintenance, developer can utilize different    project management tools. To name few here are some of them.&lt;/P&gt;   &lt;OL&gt;     &lt;LI&gt;&lt;A href=&quot;http://www.mantisbt.org/&quot;&gt;www.mantisbt.org&lt;/A&gt;  MantisBT is a      popular free web-based bug tracking system.      &lt;LI&gt;&lt;A title=BasecampHQ.com href=&quot;http://tomuse.com/goto/Basecamp&quot;      target=_blank&gt;Basecamp&lt;/A&gt;      &lt;LI&gt;&lt;A title=CentralDesktop.com href=&quot;http://tomuse.com/goto/CentralDesktop&quot;      target=_blank&gt;Central Desktop&lt;/A&gt;      &lt;LI&gt;&lt;A title=5pmweb.com href=&quot;http://tomuse.com/goto/5pm&quot;      target=_blank&gt;5pm&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;   &lt;P&gt;You can get more information for such tools from this article.&lt;/P&gt;   &lt;P&gt;&lt;A    href=&quot;http://tomuse.com/top-10-best-free-online-project-management-application-services/&quot;&gt;http://tomuse.com/top-10-best-free-online-project-management-application-services/&lt;/A&gt;&lt;/P&gt;   &lt;P&gt;There are different kinds of communication methods. Like &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;UL&gt;   &lt;LI&gt;Verbal or oral communication    &lt;LI&gt;Written communication    &lt;LI&gt;Formal communication, informal communication&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;Developers are used to choose from these methods according to availability of  resources and situation. Mostly verbal or written communication is widely  popular among us. Formal communication has special delegation of authority,  which means a project leader has given sufficient rights to make certain  decision without asking to their superiors. Where in informal communication,  there is no authority defined. It is conveyed by simple gesture, glance, smile,  silence.&lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;Effective communication&lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt; &lt;OL&gt;   &lt;LI&gt;While you are in presentation, instructing to group of developers, doing    video conferencing with other peers on remote location, &lt;STRONG&gt;Clarity of    Thoughts&lt;/STRONG&gt;&lt;SPAN    style=&quot;FONT-FAMILY: Tahoma; FONT-SIZE: 12pt&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;is really    important&lt;SPAN style=&quot;FONT-FAMILY: Tahoma; FONT-SIZE: 12pt&quot;&gt;.&lt;/SPAN&gt;&lt;SPAN    style=&quot;FONT-FAMILY: Verdana; FONT-SIZE: 10pt&quot;&gt;&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;   &lt;LI&gt;Something just can&#39;t be explained by words. You have to react with your    body. It is important to &lt;STRONG&gt;attach importance to actions rather than    words&lt;/STRONG&gt;.    &lt;LI&gt;&lt;STRONG&gt;Participation &lt;/STRONG&gt; as said earlier, it&#39;s a two way process    which require involvement of all the parties. If you are not involved mentally    in communication process, you are not going to perform your task well. Your    presence is must. If your leader informed you about coding standard to be    maintained, and if you don&#39;t remember those, you will in    trouble.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;What to communicate?&lt;/STRONG&gt;  Prepare the agenda that you need    to talk about before you initiate. Collect all the required documents,    technical specifications, proof reports, different analysis report before you    talk with your superior or clients.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;When to communicate?&lt;/STRONG&gt;  Mutually decide timing with your    parties involved in. You can either initiate or let your parties to initiate    and decide when to communicate. You can place meeting request in outlook, send    them emails, take care of geographical difference in timing, ask for the    availability and long will be the meeting etc.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;How to communicate?&lt;/STRONG&gt;  Choose the medium that you want to    communicate through. If discussion matter to be explained to a technical    person, chat or peer to peer method can be best suited. If talking with non    technical person, you have to represent your ideas to your parties in such a    way that he can understand your thoughts. You may explain them using different    diagrams, preparing documents and go through documents while you discuss,    giving them references about what are trying to demonstrate him. There are no.    of collaboration tools are there in market which you can use for this purpose.    Like we have google wave, Webex, Skype voice chat, video conferencing through    different tools etc.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;How often to communicate?  &lt;/STRONG&gt;As I said that it&#39;s a    continuous process. You can&#39;t make sure that having discussion for 5-6 hours,    you will come out with your objective. It&#39;s an iterative process. You should    try to divide your agenda into groups. Discuss them at different time    interval. Make all agenda clear step by step. Try to identify issues relating    to each other and communicate them as well. &lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;What is the objective of communication?  &lt;/STRONG&gt;It is almost    similar to identifying communication goal/agenda. But the objective of    communication here is in the term of what is the outcome we are expecting to    come from it. When project is running out of time, meeting by team leader is    to motivate developers to encourage them to get it done at right    time.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Keep the channel alive&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Cordial superior  &lt;/STRONG&gt;Once finished communication, it should    be conveyed to your superior that what was the outcome? What where the agenda?    What are clients new requirements? What do you suggest for different points to    client? How was the response from client etc.&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Get the feedback  &lt;/STRONG&gt;Generally when you dial in to customer    care of your cellular provider, right after you finish your talk with them,    you receive message regarding feedback for the person you talked with. This is    the process of evaluation. It&#39;s not to make garbage employees collection. It&#39;s    about gathering customer&#39;s response how they like customer care person to be    behaved. So gathering those feedback we can evaluate and enhance process.    &lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt; &lt;P&gt;To make such effective communication, what should you do? Or what should you  have? Here is answer for you.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Develop a positive attitude&lt;/STRONG&gt;.    &lt;LI&gt;&lt;STRONG&gt;Bad feelings should not hamper discussion  &lt;/STRONG&gt;Human is    social animal. Different people have different mentality. All have different    approach to grow and perform tasks. When we are working in organization, we    work in a team. It is sometime obvious that different group member have    conflict with other peers. When working as team, it is must that team show    their team effort rather than individuals. So your bad feeling with others    should not hinder communication. &lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Use logic to manage difficult situations&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Develop Harmonious interpersonal relationships. It is secret of    business relationship&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;And for effective oral communication, you should have..&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Understanding and use of appropriate language.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Organize and sequence of thoughts properly.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Vocabulary power.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Command over illustrations, examples.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Proper pronunciation.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Proper use of sound system/equipments.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Listening ability.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Effective telephonic talk.&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;And for written communication.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Command over the language.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Word power and spelling.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Correct grammar.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Proper structuring of the written message&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Use of appropriate channels like courier, e-mail,  etc.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Attention to hand writing, typing, printing.&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;And for non verbal communication.&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;STRONG&gt;Observation skills.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Awareness about the body movement.&lt;BR&gt;&lt;/STRONG&gt;   &lt;LI&gt;&lt;STRONG&gt;Proper interpretation of the non-verbal  message.&lt;BR&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;Well no system is perfect in the world. There is always barrier in everything  we do. Effective communication itself has its own. It is said that 30%  communication the word are failed to success due to loss in transmission.  Inaccurate translation, false impression, fear, noise etc. are the elements as  barrier of communication. Though I am not going to tell you all here &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;.&lt;/P&gt; &lt;P&gt;So here I would like to conclude my article, hope I covered all skills of  written communication in my article &lt;SPAN  style=&quot;FONT-FAMILY: Wingdings&quot;&gt;J&lt;/SPAN&gt;. I also hope that I am able to convey to  my message.&lt;/P&gt; &lt;P&gt;So see you next time till then happy communication &amp;amp; happy  programming&lt;/P&gt; &lt;P&gt;Cheers..&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt; </description><link>http://milindkansagara1984.blogspot.com/2010/11/communication-from-developers-point-of.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvvASSXKd-6QAQSiVjW8naSgm9qvIHou5tQQ-G5dQK5iAHcYB3n7hC3mmp1mSYeMC75ZvDr1Ai-zmS2qoBeHjn1xlkzVARbtabei5N1wGM2ou68JSHsEHa0Xdu5z8Pwhz_PgBTLdV4rMk/s72-c/071510_0732_1-727787.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-6267571090909470671</guid><pubDate>Fri, 29 Oct 2010 11:21:00 +0000</pubDate><atom:updated>2010-10-29T04:21:18.665-07:00</atom:updated><title>How to : Magento - Payment Type Surcharge Without Paying for an Extension.</title><description>&lt;P&gt;Just though I would share this little tid bit for the benefit of all who have  asked for this type of functionality from magento and not been prepared to pay  $64 USD for an extension to do so.&lt;/P&gt; &lt;P&gt;Just to clarify, this is a mod, not an extension.&amp;nbsp; Also, I&#39;m not the  worlds greatest Magento user and i&#39;m sure there is a way of making an extension  to do this.&amp;nbsp; But.. for the moment, the following instructional works very  well and is very easy to do.&lt;/P&gt; &lt;P&gt;Usage:&amp;nbsp; Once mods have been made, admin users will be able to create a  shopping cart rule &quot;discount&quot; which is not actually a discount based on a  percentage of the value of their shopping cart.&amp;nbsp; I&#39;m not going to educate  you all how to make a shopping cart rule, but basically, until now there have  been a few problems with using&amp;nbsp; shopping cart rules to apply a  Surcharge.&lt;/P&gt; &lt;P&gt;The First. You can&#39;t.&amp;nbsp; You can only enter a positive number as a  percentage&lt;/P&gt; &lt;P&gt;The Second.&amp;nbsp; Magento in all their wisdom have an option to calculate the  &quot;discount&quot; on shipping as well as shopping cart value, however the stupid system  does not allow you to move the location of the &quot;discount&quot; / surcharge to after  the shipping line.&amp;nbsp; This can be very confusing for customers trying to  figure out how their &quot;discount&quot;/surcharge is calculated.&lt;/P&gt; &lt;P&gt;Lastly, again in all their Wisdom, Magento went and hard coded the word  &quot;Discount&quot; in front of the name of your discount / surcharge.&amp;nbsp; So for  instance if I wanted to add a surcharge using the mod below, it would read  something like this :&lt;/P&gt; &lt;P&gt;(Discount) Credit Card Surcharge 1.5%&amp;nbsp; = $15.60&lt;/P&gt; &lt;P&gt;Obviously that is not the smartest way to do things which is surprising for  an E-Commerce system which is supposed to be flexible. Did they need to hard  code the word &quot;Discount&quot; especially given the fact one could easily pre  pend&amp;nbsp; the word &quot;discount&quot; in the name of the&amp;nbsp; shopping cart rule if  they wanted it displayed.&lt;/P&gt; &lt;P&gt;One more gripe before I proceed to the How to is the fact the only reason I  wrote this is because Magento are so pathetically poor at answer extreemly  simple questions such as this.&amp;nbsp; I could find absolutely no definitive  solution to this issue other than to A) Pay Magento for support  which is  laughable given how easy this was to resolve or B)Pay $64 for an extension.&lt;/P&gt; &lt;P&gt;And for the disclaimer.&amp;nbsp; This will involve very small modifications to  core Magento files.&amp;nbsp; Always make backups before changing any of the files  mentioned herin.&amp;nbsp; Also apparently it is illegal to apply Credit Card (or  any other payment type for that matter) surcharges in some countries.&amp;nbsp;  Check with your Merchant provider in your country to see if this is a  problem.&lt;/P&gt; &lt;P&gt;Let me know if you have any questions and please provide credit if you intend  on posting this elsewhere.&lt;/P&gt; &lt;P&gt;MAGNETO CHANGES :&lt;BR&gt;To create credit card surcharge :&lt;/P&gt; &lt;P&gt;Change the following file :&lt;BR&gt;app/code/core/Mage/rule/model/rule.php&lt;/P&gt; &lt;P&gt;Find :&lt;/P&gt; &lt;P style=&quot;PADDING-LEFT: 30px&quot;&gt;protected function _beforeSave()&lt;BR&gt;{&lt;BR&gt;check if  discount amount &amp;gt; 0&lt;BR&gt;if ((int)$this-&amp;gt;getDiscountAmount() &amp;lt; 0)  {&lt;BR&gt;Mage::throwException(Mage::helper(&#39;rule&#39;)-&amp;gt;__(&#39;Invalid discount  amount.&#39;));&lt;BR&gt;}&lt;/P&gt; &lt;P&gt;Change to :&lt;/P&gt; &lt;P style=&quot;PADDING-LEFT: 30px&quot;&gt;protected function _beforeSave()&lt;BR&gt;{&lt;BR&gt;// check  if discount amount &amp;gt; 0&lt;BR&gt;//if ((int)$this-&amp;gt;getDiscountAmount() &amp;lt; 0)  {&lt;BR&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;  Mage::throwException(Mage::helper(&#39;rule&#39;)-&amp;gt;__(&#39;Invalid discount  amount.&#39;));&lt;BR&gt;//}&lt;/P&gt; &lt;P&gt;Change the following file  :&lt;BR&gt;app/code/core/Mage/Adminhtml/block/promo/quote/edit/tab/actions.php&lt;/P&gt; &lt;P&gt;Find :&lt;/P&gt; &lt;P style=&quot;PADDING-LEFT: 30px&quot;&gt;$fieldset-&amp;gt;addField(&#39;discount_amount&#39;, &#39;text&#39;,  array(&lt;BR&gt;&#39;name&#39; =&amp;gt; &#39;discount_amount&#39;,&lt;BR&gt;&#39;required&#39; =&amp;gt; true,&lt;BR&gt;&#39;class&#39;  =&amp;gt; &#39;validate-not-negative-number&#39;,&lt;BR&gt;&#39;label&#39; =&amp;gt;  Mage::helper(&#39;salesrule&#39;)-&amp;gt;__(&#39;Discount amount&#39;),&lt;/P&gt; &lt;P&gt;Change to :&lt;/P&gt; &lt;P style=&quot;PADDING-LEFT: 30px&quot;&gt;$fieldset-&amp;gt;addField(&#39;discount_amount&#39;, &#39;text&#39;,  array(&lt;BR&gt;&#39;name&#39; =&amp;gt; &#39;discount_amount&#39;,&lt;BR&gt;&#39;required&#39; =&amp;gt; true,&lt;BR&gt;//  &#39;class&#39; =&amp;gt; &#39;validate-not-negative-number&#39;,&lt;BR&gt;&#39;label&#39; =&amp;gt;  Mage::helper(&#39;salesrule&#39;)-&amp;gt;__(&#39;Discount amount&#39;),&lt;/P&gt; &lt;P&gt;Find :&lt;/P&gt; &lt;P&gt;app/locale/en_us/mage_sales.csv &amp;lt;you may be using a different language  definition file folder ie /en_au  copy changed file to both folders.&lt;/P&gt; &lt;P&gt;This part is important : open the file in Excel the first column is the  variable name, the second is the variable value.&amp;nbsp; ONLY CHANGE THE VARIABLE  VALUE!! DO NOT CHANGE THE&lt;/P&gt; &lt;P&gt;VARIABLE &lt;SPAN style=&quot;TEXT-DECORATION: underline&quot;&gt;NAME.&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;Find the row which says &quot;Discount&quot; in column 1 and &quot;Discount&quot; in column  2.&lt;BR&gt;Erase the value of Discount in Column 2 ie Column 1 should read  &quot;Discount&quot;&amp;nbsp; (without the inverted commas) and column 2 should be empty.&lt;/P&gt; &lt;P&gt;The next step is optional and will depend if you want your surcharge to show  AFTER shipping or before shipping.&amp;nbsp; The Magento default is to display  discounts (surcharge) BEFORE shipping- regardless of whether you&#39;ve opted to  have your surcharge/discount applied to shipping in the admin console.&amp;nbsp; If  you wish to have discount/surcharge displayed AFTER shipping, then proceed with  the next step. Otherwise you&#39;re all done.&lt;/P&gt; &lt;P&gt;Change the following file ***THIS STEP IS OPTIONAL AND IS SUITED TO VERSIONS  LOWER THAN 1.4.01&amp;nbsp; For versions Later than 1.4.01 This change can be made  via the admin console Admin -&amp;gt;Sales  &amp;gt;Checkout Total Sort Order.&amp;nbsp;  Change &quot;Shipping&quot; to &quot;20&amp;#8243; and change the blank line above it to 30.&lt;/P&gt; &lt;P&gt;For versions prior to 1.4.01&lt;/P&gt; &lt;P&gt;app/code/core/Mage/Sales/etc/config.xml&lt;/P&gt; &lt;P&gt;Change the following :&lt;/P&gt; &lt;P  style=&quot;PADDING-LEFT: 30px&quot;&gt;&amp;lt;totals_sort&amp;gt;&lt;BR&gt;&amp;lt;discount&amp;gt;20&amp;lt;/discount&amp;gt;&lt;BR&gt;&amp;lt;grand_total&amp;gt;100&amp;lt;/grand_total&amp;gt;&lt;BR&gt;&amp;lt;shipping&amp;gt;30&amp;lt;/shipping&amp;gt;&lt;BR&gt;&amp;lt;subtotal&amp;gt;10&amp;lt;/subtotal&amp;gt;&lt;BR&gt;&amp;lt;tax&amp;gt;40&amp;lt;/tax&amp;gt;&lt;BR&gt;&amp;lt;/totals_sort&amp;gt;&lt;/P&gt; &lt;P&gt;To:&lt;/P&gt; &lt;P  style=&quot;PADDING-LEFT: 30px&quot;&gt;&amp;lt;totals_sort&amp;gt;&lt;BR&gt;&amp;lt;discount&amp;gt;30&amp;lt;/discount&amp;gt;&lt;BR&gt;&amp;lt;grand_total&amp;gt;100&amp;lt;/grand_total&amp;gt;&lt;BR&gt;&amp;lt;shipping&amp;gt;20&amp;lt;/shipping&amp;gt;&lt;BR&gt;&amp;lt;subtotal&amp;gt;10&amp;lt;/subtotal&amp;gt;&lt;BR&gt;&amp;lt;tax&amp;gt;40&amp;lt;/tax&amp;gt;&lt;BR&gt;&amp;lt;/totals_sort&amp;gt;&lt;/P&gt; &lt;P&gt;All Done.&amp;nbsp; You should now be able to set negative values in the  &quot;Shopping Cart Price Rules&quot; from your admin console.&amp;nbsp; Make sure all rule  names are descriptive so your customers know what is going on.&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/10/how-to-magento-payment-type-surcharge.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8229667966856184729</guid><pubDate>Sat, 02 Oct 2010 03:52:00 +0000</pubDate><atom:updated>2010-10-01T20:53:04.936-07:00</atom:updated><title>Life is like a database</title><description>&lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;Make your life as deep as a database&lt;BR&gt;Be  always as unique as a primary key&lt;BR&gt;Be productive as an index&lt;BR&gt;Take others  good habits as a foreign key....!!!&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;Share your joys with others as a  cluster&lt;BR&gt;Keep note of your activities as good as data dictionary&lt;BR&gt;Grant some  privileges to others as a role&lt;BR&gt;Secure the things as a  dba....!!!&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;Do the things in order as a rowid&lt;BR&gt;Follow  your resolution as strict as a sequence&lt;BR&gt;Light others life as a trigger&lt;BR&gt;Be  prepared for the worst as an exception....!!!&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;Always be fruitful as a function&lt;BR&gt;Forgive  others as a rollback transaction&lt;BR&gt;Always help others like checkpoint&lt;BR&gt;Choose  the best path like an optimizer....!!!&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;Project yourself the best like a view&lt;BR&gt;Don&#39;t  expect anything from others(procedures) and&lt;BR&gt;Be thankful to god as a commit  transaction...!!!&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT size=4 face=Arial&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/10/life-is-like-database.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-7463784764455240364</guid><pubDate>Mon, 30 Aug 2010 09:12:00 +0000</pubDate><atom:updated>2010-09-24T05:22:20.013-07:00</atom:updated><title>In what order does HttpRequest go through the collections?</title><description>&lt;div&gt;I found this question on the &lt;a href=&quot;http://blog.krisvandermast.com/ct.ashx?id=f0efeb51-f21c-4679-9828-41c3a15e7936&amp;amp;url=http%3a%2f%2fforums.asp.net%2f&quot; target=&quot;_blank&quot; title=&quot;http://blog.krisvandermast.com/ct.ashx?id=f0efeb51-f21c-4679-9828-41c3a15e7936&amp;amp;url=http%3a%2f%2fforums.asp.net%2f
CTRL + Click to follow link&quot;&gt;ASP.NET forums&lt;/a&gt;. The member asking this question already knew  that the collections were Cookies, Form, Servervariables and Querystring but  wanted to know the exact order. Well I got curious but instead of making a  dedicated test project I opened up &lt;a href=&quot;http://blog.krisvandermast.com/ct.ashx?id=f0efeb51-f21c-4679-9828-41c3a15e7936&amp;amp;url=http%3a%2f%2fwww.red-gate.com%2fproducts%2freflector%2f&quot; target=&quot;_blank&quot; title=&quot;.NET Reflector&quot;&gt;Reflector&lt;/a&gt;. Looking up the HttpRequest class&#39; indexer gave me  this code:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;Cpp&quot; name=&quot;code&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;public string this[string  key]
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; get
&amp;nbsp;&amp;nbsp;&amp;nbsp;  {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string str =  this.QueryString[key];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (str !=  null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return  str;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str =  this.Form[key];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (str !=  null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return  str;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpCookie cookie =  this.Cookies[key];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cookie !=  null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return  cookie.Value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str =  this.ServerVariables[key];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (str  != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return  str;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return  null;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;It&#39;s on the other hand always better to directly call the most specific  collection directly. This avoids getting strange things in your code like  expecting a key in the Form collection and getting the same key from the  QueryString collection which could have a different, or none at all, value than  what you expect. Fun debugging sessions follow after that…&lt;/div&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/08/in-what-order-does-httprequest-go.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8637201164546148588.post-8373645584324951486</guid><pubDate>Fri, 27 Aug 2010 09:47:00 +0000</pubDate><atom:updated>2010-08-27T02:47:12.859-07:00</atom:updated><title>Why Upgrade to Version 2.0 of the .Net Compact Framework?</title><description>&lt;P&gt;&lt;FONT size=2 face=Tahoma&gt;Steven Pratschner, Program Manager, .NET Compact  Framework, lists down reasons why one should upgrade ot the latest version of  the .NET compact framework.&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT size=2 face=Tahoma&gt;Highlights:&lt;/FONT&gt;&lt;/P&gt; &lt;UL&gt;   &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Applications run faster&lt;/FONT&gt;    &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Developers are more productive&lt;/FONT&gt;    &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Developers are more productive&lt;/FONT&gt;    &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Developing secure applications is much    easier&lt;/FONT&gt;    &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Access to Data is faster and more scalable&lt;/FONT&gt;     &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Developers can build more sophisticated user    interfaces&lt;/FONT&gt;    &lt;LI&gt;&lt;FONT size=2 face=Tahoma&gt;Platform stability and security continues to    increase&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt; &lt;P&gt;&lt;FONT size=2 face=Tahoma&gt;Need more information? Check out his blog post  at&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;A  href=&quot;https://blogs.msdn.com/stevenpr/archive/2005/11/30/498481.aspx&quot;&gt;&lt;FONT  size=2  face=Tahoma&gt;&lt;STRONG&gt;https://blogs.msdn.com/stevenpr/archive/2005/11/30/498481.aspx&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt; &lt;DIV&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description><link>http://milindkansagara1984.blogspot.com/2010/08/why-upgrade-to-version-20-of-net.html</link><author>noreply@blogger.com (MILIND KANSAGARA)</author><thr:total>2</thr:total></item></channel></rss>