<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0"><id>tag:blogger.com,1999:blog-8662066529793241011</id><updated>2024-08-31T13:40:33.352+05:30</updated><category term="Dot Net"/><category term="C#"/><category term="SQL"/><category term="advance C#"/><category term="Articles"/><category term="Sql Server Management Studio."/><category term="csharp"/><category term="javascript"/><category term="Advance Programming"/><category term="MySQL"/><category term="OOPS"/><category term="Programming-Basics."/><category term=".net"/><category term="C"/><category term="oops-basics."/><category term="sql-tips"/><category term="File handling"/><category term="Hacking"/><category term="Jquery"/><category term="Knockout js"/><category term="Microsoft"/><category term="News"/><category term="PostgreSQL"/><category term="Transact-sql"/><category term="asp.net"/><category term="html"/><category term="java"/><category term="sorting"/><category term="star pattern"/><category term="star pattern in c#"/><category term="3 tier architecture"/><category term="Angular Js"/><category term="Architecture"/><category term="Asynchronous Threading"/><category term="Azure"/><category term="Browser Hack"/><category term="Coupling"/><category term="Create sql"/><category term="Creating a HTML tag in C# Code"/><category term="Custom Image selector"/><category term="DTMF"/><category term="Decoding"/><category term="Dev-Ops"/><category term="Disconnected Architecture"/><category term="Dot Net failure"/><category term="Exception Handling"/><category term="Fax"/><category term="Faxing services"/><category term="FireBird"/><category term="GRASP"/><category term="HTML form"/><category term="Inheritance"/><category term="Inheritance in JavaScript"/><category term="Instrumentation"/><category term="Interfaces.Difference between Interface and abstract base class"/><category term="Internet Explorer"/><category term="Linter"/><category term="Object oriented programming"/><category term="Parameterized Queries"/><category term="Projects"/><category term="Prototypes"/><category term="Pyramid in c#"/><category term="Reflection"/><category term="Refresh HTML controls"/><category term="Restoring Database"/><category term="SOLID"/><category term="SP"/><category term="SPA"/><category term="Sending-Fax-Code VB"/><category term="Single Page Application"/><category term="Sitefinity"/><category term="Speed Control of AC motor using DTMF method"/><category term="Sql Injection"/><category term="Stored Procedures"/><category term="Telerik"/><category term="Time management"/><category term="Unit Testing"/><category term="Update Panel"/><category term="Update Panel triggers"/><category term="Update sql statement"/><category term="VB"/><category term="Visual Studio 2010"/><category term="Visual Studio 2012"/><category term="Worm"/><category term="abstraction"/><category term="alter sql"/><category term="cohesion"/><category term="correct unit testing"/><category term="css3"/><category term="date sorting"/><category term="developers"/><category term="dot net failure."/><category term="drop sql"/><category term="electronic project"/><category term="electronics"/><category term="excel import in sql"/><category term="field validation"/><category term="grunt"/><category term="importing .xls in sql."/><category term="infinite asp.net session"/><category term="javascript minimization"/><category term="javascript sorting"/><category term="javascript validation."/><category term="n tier architecture"/><category term="prototypical inheritance"/><category term="remote control"/><category term="session"/><category term="three tier architecture"/><category term="three tier architecture in csharp"/><category term="three tier architecture sample code in C#"/><category term="trojan"/><category term="try Catch"/><category term="underscore"/><category term="underscorejs"/><title type="text">Developers Cloud</title><subtitle type="html">A blog about software and web app learning/coding, revolving around .net, JavaScript, sql, html, css and whatever technical I found in this beautiful world.</subtitle><link href="http://developerscloud.blogspot.com/feeds/posts/default" rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default?redirect=false" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/" rel="alternate" type="text/html"/><link href="http://pubsubhubbub.appspot.com/" rel="hub"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default?start-index=26&amp;max-results=25&amp;redirect=false" rel="next" type="application/atom+xml"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><generator uri="http://www.blogger.com" version="7.00">Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-7663230008608945546</id><published>2017-04-21T00:07:00.001+05:30</published><updated>2019-03-19T10:44:25.393+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><title type="text">Convert your datatable into generic poco object in c# using linq, ado and reflections.</title><content type="html">&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt; &lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');&lt;/script&gt;

&lt;br /&gt;
&lt;div class="fb-like" data-href="https://www.facebook.com/DevelopersCloud" data-send="false" data-show-faces="true" data-width="450"&gt;
&lt;/div&gt;
&lt;a class="twitter-follow-button" data-show-count="true" href="https://twitter.com/harshit_parshii"&gt;Follow @harshit_parshii&lt;/a&gt; &lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;The most common problem that we face these days is to create a common class and method that can be used across all the projects and codes.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;So today I will be sharing my code where you can see how to make and create a generic function without using entity framework for ado. net.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;The scenario is like you have an old software that uses stored procedure to return set of entities as a data-table, you do not want to re-write the back-end code as you are creating a web API in c# which needs to be delivered asap.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;You need to map these data tables to models as you might be using MV* pattern.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;So here we will be doing one to one mapping of model to data- table, and in similar fashion insert or update can also be done.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;So basically we are converting a data-table to list of strongly typed object model to do CRUD operations.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: inherit;"&gt;So we have following things before hand.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: inherit;"&gt;A helper class is referenced as the database(dbFactory) which executes ado. net commands and returns data whether it's a nonquery or a dataset/data tables.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: inherit;"&gt;Below is the code:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="background: #ffffff; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto; color: black"&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style="line-height: 125%; margin: 0;"&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style="line-height: 125%; margin: 0;"&gt;        &lt;span style="color: #888888;"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// Call the Get to fetch Data&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;typeparam name="T"&amp;gt;&amp;lt;/typeparam&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;typeparam name="U"&amp;gt;&amp;lt;/typeparam&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;param name="model"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;param name="param"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;param name="procName"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;
        &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;static&lt;/span&gt; List&amp;lt;T&amp;gt; Get&amp;lt;T, U&amp;gt;(T model, U param, &lt;span style="color: #333399; font-weight: bold;"&gt;string&lt;/span&gt; procName) &lt;span style="color: #008800; font-weight: bold;"&gt;where&lt;/span&gt; T : &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt;()
        {
            Type type = param.GetType();
            Type modelType = param.GetType();
            &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; propertiesParam = &lt;span style="color: #008800; font-weight: bold;"&gt;typeof&lt;/span&gt;(U).GetProperties();
            prm = &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; SqlParameter[propertiesParam.Length];

            &lt;span style="color: #008800; font-weight: bold;"&gt;for&lt;/span&gt; (&lt;span style="color: #333399; font-weight: bold;"&gt;int&lt;/span&gt; i = &lt;span style="color: #6600ee; font-weight: bold;"&gt;0&lt;/span&gt;; i &amp;lt; propertiesParam.Length; i++)
            {
                prm[i] = &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; SqlParameter(propertiesParam[i].Name.ToString(), propertiesParam[i].GetValue(param));
            }
            database = &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; DbFactory();
            &lt;span style="color: #008800; font-weight: bold;"&gt;return&lt;/span&gt; &lt;span style="color: #0066bb; font-weight: bold;"&gt;ToList&lt;/span&gt;(&lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; T(), database.returnDataTable(strConn, procName, prm, &lt;span style="color: #6600ee; font-weight: bold;"&gt;1&lt;/span&gt;));
        }
        
        
        &lt;span style="color: #888888;"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// Convert DataTable to Strongly typed objects&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;typeparam name="T"&amp;gt;&amp;lt;/typeparam&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;param name="Model"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;param name="dataTable"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span style="color: #888888;"&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/span&gt;
        &lt;span style="color: #008800; font-weight: bold;"&gt;private&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;static&lt;/span&gt; List&amp;lt;T&amp;gt; ToList&amp;lt;T&amp;gt;(T Model, DataTable dataTable) &lt;span style="color: #008800; font-weight: bold;"&gt;where&lt;/span&gt; T : &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt;()
        {
            &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; dataList = &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; List&amp;lt;T&amp;gt;();
            &lt;span style="color: #008800; font-weight: bold;"&gt;const&lt;/span&gt; BindingFlags flags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic;
            &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; objFieldNames = (&lt;span style="color: #008800; font-weight: bold;"&gt;from&lt;/span&gt; PropertyInfo aProp &lt;span style="color: #008800; font-weight: bold;"&gt;in&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;typeof&lt;/span&gt;(T).GetProperties(flags)
                                 &lt;span style="color: #008800; font-weight: bold;"&gt;select&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt;
                                 {
                                     Name = aProp.Name,
                                     Type = Nullable.GetUnderlyingType(aProp.PropertyType) ?? aProp.PropertyType
                                 }).ToList();

            &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; dataTblFieldNames = (&lt;span style="color: #008800; font-weight: bold;"&gt;from&lt;/span&gt; DataColumn aHeader &lt;span style="color: #008800; font-weight: bold;"&gt;in&lt;/span&gt; dataTable.Columns
                                     &lt;span style="color: #008800; font-weight: bold;"&gt;select&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt;
                                     {
                                         Name = aHeader.ColumnName,
                                         Type = aHeader.DataType
                                     }).ToList();

            &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; commonFields = objFieldNames.Intersect(dataTblFieldNames).ToList();

            &lt;span style="color: #008800; font-weight: bold;"&gt;foreach&lt;/span&gt; (DataRow dataRow &lt;span style="color: #008800; font-weight: bold;"&gt;in&lt;/span&gt; dataTable.AsEnumerable().ToList())
            {
                &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; aTSource = &lt;span style="color: #008800; font-weight: bold;"&gt;new&lt;/span&gt; T();
                &lt;span style="color: #008800; font-weight: bold;"&gt;foreach&lt;/span&gt; (&lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; aField &lt;span style="color: #008800; font-weight: bold;"&gt;in&lt;/span&gt; commonFields)
                {
                    PropertyInfo propertyInfos = aTSource.GetType().GetProperty(aField.Name);
                    &lt;span style="color: #333399; font-weight: bold;"&gt;var&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;value&lt;/span&gt; = (dataRow[aField.Name] == DBNull.Value) ? &lt;span style="color: #008800; font-weight: bold;"&gt;null&lt;/span&gt; : dataRow[aField.Name]; &lt;span style="color: #888888;"&gt;//if database field is nullable&lt;/span&gt;
                    propertyInfos.SetValue(aTSource, &lt;span style="color: #008800; font-weight: bold;"&gt;value&lt;/span&gt;, &lt;span style="color: #008800; font-weight: bold;"&gt;null&lt;/span&gt;);
                }
                dataList.Add(aTSource);
            }
            &lt;span style="color: #008800; font-weight: bold;"&gt;return&lt;/span&gt; dataList;

        }
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;So in the above code as you can see these are generics methods in which we need to pass a model, sql proc name and parameters, we will recieve the model with values in it. The catch is the model properties name should be same as table column headers, my next target will be to have attributes functionality over model properties so we can have custom names of entity like in MVC.&lt;br /&gt;
&lt;br /&gt;
Anyway &lt;b&gt;ToList &lt;/b&gt;function above will convert your sql datatable to model entity using reflections capabilities of c#.&lt;br /&gt;
&lt;br /&gt;
Well just copy paste the above code and enjoy.</content><link href="http://developerscloud.blogspot.com/feeds/7663230008608945546/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2017/04/convert-your-datatable-into-generic.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/7663230008608945546" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/7663230008608945546" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2017/04/convert-your-datatable-into-generic.html" rel="alternate" title="Convert your datatable into generic poco object in c# using linq, ado and reflections." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Noida, Uttar Pradesh, India</georss:featurename><georss:point>28.5355161 77.391026499999953</georss:point><georss:box>28.312280599999998 77.068302999999958 28.7587516 77.713749999999948</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2954517295292119096</id><published>2017-01-24T18:44:00.000+05:30</published><updated>2019-03-19T10:48:53.239+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Advance Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="File handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Update Panel"/><category scheme="http://www.blogger.com/atom/ns#" term="Update Panel triggers"/><title type="text">Nested update panels with file upload and download in asp(.)net c#</title><content type="html">&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;This comes as basic requirements by the majority of clients that they want a good user experience with some file uploaders/downloads for templates which are further used in your application.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Just in case, &amp;nbsp;you are not using any new technologies, no spa, no JSON and no&amp;nbsp;angularjs etc.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Your app is made of asp.net because of security concerns of your firm and not so knowledgeable managers and the page refreshes every time the second you click a button and reload the entire content, but you do not want that as you know UX design ethics, so to overcome this problem you added an update panel and a nested update panel outside button to make it asynchronous, but what is this? You are not able to make button click event to get hit in code behind c#.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;What will you do?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;You will use update panel triggers like below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div id="preview" style="margin: auto 1em; padding-bottom: 3em;"&gt;
&lt;div style="background: rgb(248, 248, 248); border-color: gray; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto; color:black"&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;"&gt;&amp;lt;asp:UpdatePanel ID=&lt;span style="color: #ba2121;"&gt;"UpdatePanel1"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt;&amp;gt;
            &amp;lt;ContentTemplate&amp;gt;
                &amp;lt;fieldset style=&lt;span style="color: #ba2121;"&gt;"width: 90%"&lt;/span&gt;&amp;gt;
                    &amp;lt;legend&amp;gt;File Uploader&amp;lt;/legend&amp;gt;
                    &amp;lt;table style=&lt;span style="color: #ba2121;"&gt;"width: 90%"&lt;/span&gt;&amp;gt;
                        &amp;lt;tr&amp;gt;
                            &amp;lt;td&amp;gt;
                                &amp;lt;b&amp;gt;File Type:&amp;lt;/b&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;
                            &amp;lt;/td&amp;gt;
                            &amp;lt;td&amp;gt;
                                &amp;lt;asp:DropDownList ID=&lt;span style="color: #ba2121;"&gt;"ddlFileType"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; AutoPostBack=&lt;span style="color: #ba2121;"&gt;"False"&lt;/span&gt;&amp;gt;
                                &amp;lt;/asp:DropDownList&amp;gt;
                            &amp;lt;/td&amp;gt;
                            &amp;lt;td&amp;gt;
                                &amp;lt;b&amp;gt;Upload File:&amp;lt;/b&amp;gt;
                            &amp;lt;/td&amp;gt;
                            &amp;lt;td&amp;gt;
                                &amp;lt;asp:UpdatePanel ID=&lt;span style="color: #ba2121;"&gt;"UpdatePanelUpload"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; UpdateMode=&lt;span style="color: #ba2121;"&gt;"conditional"&lt;/span&gt;&amp;gt;
                                    &amp;lt;ContentTemplate&amp;gt;
                                        &amp;lt;asp:FileUpload ID=&lt;span style="color: #ba2121;"&gt;"flUploadFile"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; /&amp;gt;
                                        &amp;lt;asp:Button ID=&lt;span style="color: #ba2121;"&gt;"btnUpload"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; Text=&lt;span style="color: #ba2121;"&gt;"Upload" &lt;/span&gt;OnClick=&lt;span style="color: #ba2121;"&gt;"btnUpload_Click"&lt;/span&gt; /&amp;gt;&amp;lt;br /&amp;gt;
                                    &amp;lt;/ContentTemplate&amp;gt;
                                    &amp;lt;Triggers&amp;gt;
                                        &amp;lt;asp:PostBackTrigger ControlID=&lt;span style="color: #ba2121;"&gt;"btnUpload"&lt;/span&gt; /&amp;gt;
                                    &amp;lt;/Triggers&amp;gt;
                                &amp;lt;/asp:UpdatePanel&amp;gt;
                            &amp;lt;/td&amp;gt;
                            &amp;lt;td&amp;gt;
                                &amp;lt;asp:UpdatePanel ID=&lt;span style="color: #ba2121;"&gt;"UpdatePanelDownload"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; UpdateMode=&lt;span style="color: #ba2121;"&gt;"conditional"&lt;/span&gt;&amp;gt;
                                    &amp;lt;ContentTemplate&amp;gt;
                                        &amp;lt;asp:Button ID=&lt;span style="color: #ba2121;"&gt;"btnDownload"&lt;/span&gt; runat=&lt;span style="color: #ba2121;"&gt;"server"&lt;/span&gt; OnClick=&lt;span style="color: #ba2121;"&gt;"btnDownload_Click"&lt;/span&gt; Text=&lt;span style="color: #ba2121;"&gt;"Download Sample File"&lt;/span&gt; /&amp;gt;
                                    &amp;lt;/ContentTemplate&amp;gt;
                                    &amp;lt;Triggers&amp;gt;
                                        &amp;lt;asp:PostBackTrigger ControlID=&lt;span style="color: #ba2121;"&gt;"btnDownload"&lt;/span&gt; /&amp;gt;
                                    &amp;lt;/Triggers&amp;gt;
                                &amp;lt;/asp:UpdatePanel&amp;gt;
                            &amp;lt;/td&amp;gt;
                        &amp;lt;/tr&amp;gt;
                    &amp;lt;/table&amp;gt;
                &amp;lt;/fieldset&amp;gt;
            &amp;lt;/ContentTemplate&amp;gt;
        &amp;lt;/asp:UpdatePanel&amp;gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="footer" style="border-top: 1px dotted rgb(0, 0, 0); margin: auto 1em;"&gt;
&lt;div style="font-size: 12px; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-size: 12px; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Rest is same in backend file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Enjoy coding.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/2954517295292119096/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2017/01/nested-update-panels-with-file-upload.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2954517295292119096" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2954517295292119096" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2017/01/nested-update-panels-with-file-upload.html" rel="alternate" title="Nested update panels with file upload and download in asp(.)net c#" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Delhi, India</georss:featurename><georss:point>28.7040592 77.10249019999992</georss:point><georss:box>28.2581432 76.457043199999916 29.1499752 77.747937199999924</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2894248192901401298</id><published>2016-12-20T00:12:00.000+05:30</published><updated>2019-09-08T15:46:05.735+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="infinite asp.net session"/><category scheme="http://www.blogger.com/atom/ns#" term="session"/><title type="text">Never ending (infinite) asp(.)net C# session</title><content type="html">&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Session timeout is the worst nightmare of a developer especially if you do not have much experience in coding but senior enough to design an small application which becomes a mammoth in few months.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So to all the mid-level experience guy, here is the key to success, do not make session variables in code behind, instead, create separate c# file either in app_code or in a separate&amp;nbsp;project which you can call Utils as it will act like your utility file and create a public property in it which will call your DB whenever your session is null like following.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So let's create a never ending session for the c#,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Here is the scenario, suppose you have a user data-table coming from database which is on another project/DB and you have to get it through AD authentication or let's imagine it's a heavy DB call so calling, again and again, will reduce the app performance and that's why we use session which is again a non-performing thing but still better than DB chat.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Here is your user entity:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="background: rgb(248, 248, 248); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; overflow: auto; padding: 0.2em 0.6em; width: auto;"&gt;
&lt;table style="color: #333333; font-family: Verdana, Helvetica, Arial, sans-serif;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px; overflow:hidden;"&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;"&gt;&lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #008800; font-weight: bold;"&gt;class&lt;/span&gt; &lt;span style="color: #bb0066; font-weight: bold;"&gt;UserRoleInfo&lt;/span&gt;
{
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;string&lt;/span&gt; FullName { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;string&lt;/span&gt; Username { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;bool?&lt;/span&gt; IsManager { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;string&lt;/span&gt; RoleName { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;int?&lt;/span&gt; LoginId { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;int?&lt;/span&gt; EmployeeID { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }
    &lt;span style="color: #008800; font-weight: bold;"&gt;public&lt;/span&gt; &lt;span style="color: #333399; font-weight: bold;"&gt;int?&lt;/span&gt; RoleId { &lt;span style="color: #008800; font-weight: bold;"&gt;get&lt;/span&gt;; &lt;span style="color: #008800; font-weight: bold;"&gt;set&lt;/span&gt;; }

}&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Create the property like below in your utility class, where&amp;nbsp;&lt;span style="background-color: white; color: #333333;"&gt;GetRoleInfo will get you the roles, user details from DB.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table style="color: #333333; font-family: Verdana, Helvetica, Arial, sans-serif;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;overflow:hidden;"&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;"&gt;&lt;span style="color: #008800; font-style: italic;"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span style="color: #008800; font-style: italic;"&gt;/// UserSession property&lt;/span&gt;
&lt;span style="color: #008800; font-style: italic;"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
 &lt;span style="color: navy; font-weight: bold;"&gt;public&lt;/span&gt; UserRoleInfo UserSession
 {
  &lt;span style="color: navy; font-weight: bold;"&gt;get&lt;/span&gt;
  {
   UserRoleInfo session = (UserRoleInfo)HttpContext.Current.Session[&lt;span style="color: blue;"&gt;"userRoleInfo"&lt;/span&gt;];
   &lt;span style="color: navy; font-weight: bold;"&gt;if&lt;/span&gt; (session == &lt;span style="color: navy; font-weight: bold;"&gt;null&lt;/span&gt;)
   {
    session = GetRoleInfo(HttpContext.Current.User.Identity.Name.Remove(&lt;span style="color: blue;"&gt;0&lt;/span&gt;, &lt;span style="color: blue;"&gt;8&lt;/span&gt;));                   
    HttpContext.Current.Session[&lt;span style="color: blue;"&gt;"userRoleInfo"&lt;/span&gt;] = session;
   }
  &lt;span style="color: navy; font-weight: bold;"&gt;return&lt;/span&gt; session;
  }
 }&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style="background-color: white; color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="background-color: white; color: #333333;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="background-color: white; color: #333333;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;And use it while declaring an object for it like below:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table style="color: #333333; font-family: Verdana, Helvetica, Arial, sans-serif;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;overflow:hidden;"&gt;1
2
3
4
5&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style="line-height: 16.25px;"&gt;userInfoHelper = &lt;span style="color: navy; font-weight: bold;"&gt;new&lt;/span&gt; UserInfoHelper();           
&lt;span style="color: navy; font-weight: bold;"&gt;if&lt;/span&gt; ((userInfoHelper.UserSession.RoleId == (&lt;span style="color: navy; font-weight: bold;"&gt;int&lt;/span&gt;)UserInfo.Roles.User) ||&lt;/pre&gt;
&lt;pre style="line-height: 16.25px;"&gt;       (userInfoHelper.UserSession.RoleId == (&lt;span style="color: navy; font-weight: bold;"&gt;int&lt;/span&gt;)UserInfo.Roles.Manager))
            {
                ddlEmployee.Enabled = &lt;span style="color: navy; font-weight: bold;"&gt;false&lt;/span&gt;;
            }&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style="background-color: white; color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="background-color: white; color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Happy Coding with your infinite session, as whenever your session value will be null, it will fetch it for you.&lt;/span&gt;</content><link href="http://developerscloud.blogspot.com/feeds/2894248192901401298/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2016/12/never-ending-infinite-aspnet-c-session.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2894248192901401298" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2894248192901401298" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2016/12/never-ending-infinite-aspnet-c-session.html" rel="alternate" title="Never ending (infinite) asp(.)net C# session" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Delhi, India</georss:featurename><georss:point>28.7040592 77.10249019999992</georss:point><georss:box>28.2581432 76.457043199999916 29.1499752 77.747937199999924</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2862409680161789788</id><published>2016-09-09T21:06:00.000+05:30</published><updated>2017-02-06T21:04:10.875+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Dev-Ops"/><category scheme="http://www.blogger.com/atom/ns#" term="developers"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming-Basics."/><category scheme="http://www.blogger.com/atom/ns#" term="Time management"/><title type="text">With new experiences comes great responsibility</title><content type="html">&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Hello Everyone,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;I am an ordinary person with some highly looked after skills, not boasting about myself. But after coding in this IT industry for almost 5 years for the first time I am thinking:-&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;&lt;b&gt;Is delivering the code my only responsibility or is there anything else I need to look into as well?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;From last few month's I was highly involved in some entirely new domain which is financial, and when you play with the number you need to be highly focused, so unable to update my blog as well.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;When I was working on the urgent deadlines and tight estimates and being from a healthy UI background like css3, html5, responsive design, knockout js, less etc. I was put on the SQL server and asp.net with grid views&amp;nbsp;and some freaked out Telerik controls.&lt;/span&gt;&lt;br /&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;I know it's a learning for me and I can see why UX matters to every person in this entire world but not UI and you can write it on stamp paper.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;User Experience, with logical and functionally correct code, is the need of the hour today.&lt;/span&gt;&lt;br /&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;All the needed information we can show in some excel but on the web you need a grid with all the functionality including global search and dynamic &lt;strike&gt;edit &lt;/strike&gt;&amp;nbsp;batch edit.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;And then you can have a co-worker who can become ill or who can have some urgent priority work which does not include your project. So it might be possible you are working on two-three projects together and handling everything together including two men's work. Y&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;ou can also have your personal problems as well it can be possible that your father, mother or even your girlfriend or wife may need you for help.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;Bogged down from everywhere, how will you handle all this with a manager shouting at you in front of 20 people.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So is delivering code is my only responsibility, being a developer what should I look into and how can I fix my overtime to regular office time and maintain my work-life balance.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Should I trust my manager or my company who is outsourcing me to Americans projects and giving me sleepless nights or should I look for better opportunity?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
 &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;By the end of all the mishaps happened to me, I came to some conclusions as below in which makes me wonder and believe why&amp;nbsp;&lt;/span&gt;&lt;b style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;management &lt;/b&gt;&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;matters:&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Deal directly with end users, try to skip &#127;your manager, QA or BA&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Give daily or at least weekly updates&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;If somebody is not working then tell it in a peaceful way without letting them know you are complaining to your reporting manager&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;And one of the most important, do not touch the code without complete requirements and do not give estimates for development only, give estimates for the complete app development with testing in staging and QA environment&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;For other colleagues&amp;nbsp;code failure, and you are fixing it let everyone knows&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Be selfish, talk to everyone and keep a healthy rapport, especially with Business users, your managers will not say a word to you if your client is happy&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Divide the tasks initially&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Do testing, properly and ask everyone to do it&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;If everyone is senior, do not get into ugly fights make peace and work, if it doesn't work out that way try to find out their mistakes and start assigning them task, try to be a boss&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Leadership quality is highly needed, you might need to control entire team as your team lead can be a jerk as well&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Work for yourself but also do not let deserving one let down&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;I hope my intentions are clear here.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Thanks&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: georgia, &amp;quot;times new roman&amp;quot;, serif;"&gt;A frustrated developer&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/2862409680161789788/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2016/09/with-new-experiences-comes-great.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2862409680161789788" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2862409680161789788" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2016/09/with-new-experiences-comes-great.html" rel="alternate" title="With new experiences comes great responsibility" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Gurgaon, Haryana 122001, India</georss:featurename><georss:point>28.4594965 77.026638300000059</georss:point><georss:box>28.236067 76.703914800000064 28.682926000000002 77.349361800000054</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-1314117751018514575</id><published>2015-11-02T18:53:00.003+05:30</published><updated>2019-05-04T00:33:55.887+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Custom Image selector"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Sitefinity"/><category scheme="http://www.blogger.com/atom/ns#" term="Telerik"/><title type="text">Sitefinity - Custom Image selector - Azure Player Dynamic Image selector.</title><content type="html">&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Well,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;I am writing this post after a really long gap of time, I was away from my blog due to some personal reason and aggressive deadlines for my project, so today I thought of writing a blog about my experience with sitefinity, (http://www.sitefinity.com/) which is Content Management System aka CMS from a very famous IT firm Telerik.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The CMS is purely on HTML and has its own pros and cons, it doesn't have any custom widgets available and you have to design most of them.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So while developing my client website for it I found issues about the CMS shortcoming and lack of documentation, basically lack of documentation is the major problem with this CMS.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So we had a requirement, we need to show the AES encrypted adaptive bit rate video to the user, we were using azure services for this, but the major requirement is that we were using a CMS and we need to make everything dynamic i.e. Business User editable and a drag and drop widget, which includes:&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Video URL.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Video Title.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Video Description.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Video Poster Image.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The top three are easily doable and we did it in a record week time including testing, but the last point &amp;nbsp;almost took our life away from us.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So below is a what we did, have a look at it and it may help you to create a custom image selector as well.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Enjoy.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Public properties in our .cs file:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; Title { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;get&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;set&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; VideoURL { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;get&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;set&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; Description { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;get&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;set&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; }&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; ImageSelector { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;get&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;set&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;; }&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;CS code in our Designer File for implementation:&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="color: grey; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;///&lt;/span&gt;&lt;span style="color: green; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: grey; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;///&lt;/span&gt;&lt;span style="color: green; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; Gets a collection of script
descriptors that represent ECMAScript (JavaScript) client components.&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: grey; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;///&lt;/span&gt;&lt;span style="color: green; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;override&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;
System.Collections.Generic.&lt;/span&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;IEnumerable&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;System.Web.UI.&lt;/span&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;ScriptDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;gt; GetScriptDescriptors()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;var&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; scriptDescriptors = &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;new&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;List&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;ScriptDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;gt;(&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;base&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;.GetScriptDescriptors());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;var&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; descriptor = (&lt;/span&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;ScriptControlDescriptor&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;)scriptDescriptors.Last();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
descriptor.AddElementProperty(&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;"title"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;, Title.ClientID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
descriptor.AddElementProperty(&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;"description"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;, Description.ClientID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
descriptor.AddElementProperty(&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;"videoURL"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;, VideoURL.ClientID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
descriptor.AddComponentProperty(&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;"ImageSelector"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;, ImageSelector.ClientID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; scriptDescriptors;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;ASCX Code for our Designer (widget) image selector:&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;li&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;class&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="sfFormCtrl"&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;asp&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;:&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;Label&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;runat&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="server"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;AssociatedControlID&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="ImageSelector"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;CssClass&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="sfTxtLbl"&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;Poster&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;asp&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;:&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;Label&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;sitefinity&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;:&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;ImageField&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;ID&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="ImageSelector"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;runat&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="server"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;DisplayMode&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="Write"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;UploadMode&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="Dialog"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;DataFieldName&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="Image"&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;div&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: red; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;class&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;="sfExample"&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;Poster
Image URL of video&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;div&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;li&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
JS Code for our Designer file:&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
Add this line of code in initialization block created in widget:&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;._ImageSelector = &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;null&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;Add this line of code in refresh UI block:&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;.get_ImageSelector()._imageElement.src =
controlData.ImageSelector;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;Add this line of code in apply changes block:&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; controlData.ImageSelector = &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;.get_ImageSelector()._selectedImageItem
? &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;.get_ImageSelector()._selectedImageItem.Url
: controlData.ImageSelector;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;And the following changes at last part of JS below changes.&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;/*ImageSelector Properties*/&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get_ImageSelector:
&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;function&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; () { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;._ImageSelector; },&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;o:p&gt;







&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_ImageSelector: &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;function&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt; (value) { &lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;this&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;"&gt;._ImageSelector = value; },&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy the dynamic Image selector like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIFCjR8dzHkZFyAPWOIRhZIpXbKT2kpBSgrfCE_nk7gcYLiov9KgwDbvrzBlkl98ml5_QVE4FQRJqMJOb50AlymgCa1Zb-7ZhJlFM6CvjTjza9qnfDD9Y5UipigzGpkmrBdJz9q3ZZMPE/s1600/Sitefinity-Custom-Image%253DSelector.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="385" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIFCjR8dzHkZFyAPWOIRhZIpXbKT2kpBSgrfCE_nk7gcYLiov9KgwDbvrzBlkl98ml5_QVE4FQRJqMJOb50AlymgCa1Zb-7ZhJlFM6CvjTjza9qnfDD9Y5UipigzGpkmrBdJz9q3ZZMPE/s640/Sitefinity-Custom-Image%253DSelector.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will also write next about how to consume the URLS in it in front end using the JS and .Net capabilities.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Harshit aka parshii&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link href="http://developerscloud.blogspot.com/feeds/1314117751018514575/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/11/sitefinity-custom-image-selector-azure.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/1314117751018514575" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/1314117751018514575" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/11/sitefinity-custom-image-selector-azure.html" rel="alternate" title="Sitefinity - Custom Image selector - Azure Player Dynamic Image selector." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIFCjR8dzHkZFyAPWOIRhZIpXbKT2kpBSgrfCE_nk7gcYLiov9KgwDbvrzBlkl98ml5_QVE4FQRJqMJOb50AlymgCa1Zb-7ZhJlFM6CvjTjza9qnfDD9Y5UipigzGpkmrBdJz9q3ZZMPE/s72-c/Sitefinity-Custom-Image%253DSelector.PNG" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-4581691432328887868</id><published>2015-09-02T12:22:00.001+05:30</published><updated>2019-05-04T00:42:43.245+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Browser Hack"/><category scheme="http://www.blogger.com/atom/ns#" term="css3"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer"/><title type="text">Run CSS specific to Internet Explorer - Browser Hack</title><content type="html">&lt;h1&gt;
&lt;span style="font-family: &amp;quot;arial&amp;quot;; font-size: large;"&gt;Run CSS specific to Internet Explorer - Browser Hack&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;div style="line-height: 21.6px;"&gt;
&lt;span style="font-family: arial;"&gt;&lt;span style="font-size: 14.4px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: arial;"&gt;&lt;span style="font-size: 14.4px;"&gt;Referencing to the following blog post, we are going to make CSS targeting exclusively to IE browser, to make it work first we should know what are media queries.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;&lt;span style="font-size: 14.4px;"&gt;A media query consists of a media type and at least one expression that limits the style sheets' scope by using media features, such as width, height, and color. Media queries, added in CSS3, let the presentation of content be tailored to a specific range of output devices without having to change the content itself.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial;"&gt;&lt;span style="font-size: 14.4px;"&gt;For Ex:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial; font-size: 14.3999996185303px; line-height: 21.5999984741211px;"&gt;
&lt;span style="background-color: white; color: #4d4e53; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 21px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="brush: html  language-html" data-number="" style="background-attachment: initial; background-clip: initial; background-color: #fafbfc; background-image: url(https://developer.cdn.mozilla.net/media/img/blueprint-dark.png); background-origin: initial; background-position: 50% 0%; background-repeat: initial; background-size: initial; border-left-color: rgb(85, 138, 187); border-left-style: solid; border-width: 0px 0px 0px 5px; color: #4d4e53; direction: ltr; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 14px; line-height: 19px; margin-bottom: 20px; overflow: auto; padding: 1em 0px 1em 30px; position: relative; tab-size: 4; text-shadow: none; word-break: normal;"&gt;&lt;code class=" language-html" style="border: 0px; direction: ltr; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-weight: inherit; margin: 0px; padding: 0px; tab-size: 4; text-shadow: none; word-break: normal; word-spacing: normal;"&gt;&lt;span class="token style" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;span class="token tag" style="border: 0px; color: #990055; margin: 0px; padding: 0px;"&gt;&lt;span class="token tag" style="border: 0px; margin: 0px; padding: 0px;"&gt;&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;&amp;lt;&lt;/span&gt;style&lt;/span&gt;&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="token atrule" style="border: 0px; color: #0077aa; margin: 0px; padding: 0px;"&gt;@media (max-width&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;:&lt;/span&gt; 600px)&lt;/span&gt; &lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;{&lt;/span&gt;
  &lt;span class="token selector" style="border: 0px; color: #669900; margin: 0px; padding: 0px;"&gt;.facet_sidebar &lt;/span&gt;&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;{&lt;/span&gt;
    &lt;span class="token property" style="border: 0px; color: #990055; margin: 0px; padding: 0px;"&gt;display&lt;/span&gt;&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;:&lt;/span&gt; none&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;;&lt;/span&gt;
  &lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;
&lt;span style="border: 0px; color: #999999; margin: 0px; padding: 0px;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
So below we will wrap the IE specific CSS rules in @media blocks and trick IE into rendering @media blocks that use media queries.&lt;br /&gt;
&lt;br /&gt;
Targeting only IE browsers&lt;br /&gt;
&lt;br /&gt;
Style rules defined in the following blocks will only be applied in IE, other browsers will ignore them.&lt;br /&gt;
&lt;br /&gt;
IE 6 and 7&lt;br /&gt;
&amp;nbsp;@media screen\9 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body { background: red; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IE 6, 7 and 8&lt;br /&gt;
@media \0screen\,screen\9 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body { background: green; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IE 8&lt;br /&gt;
&amp;nbsp;@media \0screen {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body { background: blue; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IE 8, 9 and 10&lt;br /&gt;
@media screen\0 {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body { background: orange; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IE 9 and 10&lt;br /&gt;
@media screen and (min-width:0{{ content }}) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body { background: yellow; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-size: large;"&gt;Generalizing it in a tabular format:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
Where yes and no are styles support.&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 709px;"&gt;
 &lt;colgroup&gt;&lt;col style="mso-width-alt: 11008; mso-width-source: userset; width: 226pt;" width="301"&gt;&lt;/col&gt;
 &lt;col style="mso-width-alt: 2998; mso-width-source: userset; width: 62pt;" width="82"&gt;&lt;/col&gt;
 &lt;col style="mso-width-alt: 2925; mso-width-source: userset; width: 60pt;" width="80"&gt;&lt;/col&gt;
 &lt;col span="3" style="mso-width-alt: 2998; mso-width-source: userset; width: 62pt;" width="82"&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height="20" style="height: 15.0pt;"&gt;
  &lt;td class="xl65" height="20" style="height: 15.0pt; width: 226pt;" width="301"&gt;Rule&lt;/td&gt;
  &lt;td class="xl66" style="border-left: none; width: 62pt;" width="82"&gt;IE 6&lt;/td&gt;
  &lt;td class="xl66" style="border-left: none; width: 60pt;" width="80"&gt;IE 7&lt;/td&gt;
  &lt;td class="xl66" style="border-left: none; width: 62pt;" width="82"&gt;IE 8&lt;/td&gt;
  &lt;td class="xl66" style="border-left: none; width: 62pt;" width="82"&gt;IE 9&lt;/td&gt;
  &lt;td class="xl66" style="border-left: none; width: 62pt;" width="82"&gt;IE 10&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height="20" style="height: 15.0pt;"&gt;
  &lt;td class="xl67" height="20" style="border-top: none; height: 15.0pt; width: 226pt;" width="301"&gt;@media screen\0 {…}&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 60pt;" width="80"&gt;No&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height="20" style="height: 15.0pt;"&gt;
  &lt;td class="xl67" height="20" style="border-top: none; height: 15.0pt; width: 226pt;" width="301"&gt;@media screen\9 {…}&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 60pt;" width="80"&gt;Yes&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height="20" style="height: 15.0pt;"&gt;
  &lt;td class="xl67" height="20" style="border-top: none; height: 15.0pt; width: 226pt;" width="301"&gt;@media \0screen {…}&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 60pt;" width="80"&gt;No&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height="36" style="height: 27.0pt;"&gt;
  &lt;td class="xl67" height="36" style="border-top: none; height: 27.0pt; width: 226pt;" width="301"&gt;@media \0screen\,screen\9 {…}&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 60pt;" width="80"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height="36" style="height: 27.0pt;"&gt;
  &lt;td class="xl67" height="36" style="border-top: none; height: 27.0pt; width: 226pt;" width="301"&gt;@media screen and (min-width:0\0) {…}&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 60pt;" width="80"&gt;No&lt;/td&gt;
  &lt;td class="xl68" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;No&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
  &lt;td class="xl69" style="border-left: none; border-top: none; width: 62pt;" width="82"&gt;Yes&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;IE 11 and Edge support most of the recent styles and css3, so it rarely face any prob with the css styling and styling looks almost similar as of chrome or firefox so the case of those are not updated here.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/4581691432328887868/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/09/run-css-specific-to-internet-explorer.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/4581691432328887868" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/4581691432328887868" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/09/run-css-specific-to-internet-explorer.html" rel="alternate" title="Run CSS specific to Internet Explorer - Browser Hack" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.6139391 77.209021200000052</georss:point><georss:box>28.1680166 76.563574200000048 29.059861599999998 77.854468200000056</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2190887849429249752</id><published>2015-06-11T18:24:00.000+05:30</published><updated>2015-06-29T21:48:46.722+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Angular Js"/><category scheme="http://www.blogger.com/atom/ns#" term="Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Disconnected Architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Knockout js"/><category scheme="http://www.blogger.com/atom/ns#" term="Single Page Application"/><category scheme="http://www.blogger.com/atom/ns#" term="SPA"/><title type="text">Disconnected Architecture</title><content type="html">Being a .Net Developer and using the open technologies, I have lots of options of taking the advantage of the framework but once you started growing in your career, more then &lt;i&gt;What technology you use?&lt;/i&gt; the question become &lt;i&gt;How the technology is used ? &lt;/i&gt;and that is Architecture.&lt;br /&gt;
&lt;br /&gt;
An architecture of a something you are implementing is very important once you start writing the code.&lt;br /&gt;
&lt;br /&gt;
If you are writing a mobile application that needs to be cross browser compatible and can work on on any mobile device, you need to follow the modern architecture that is getting common across all the application.&lt;br /&gt;
&lt;br /&gt;
The architecture should use SPA (Single Page Application) and REST api's and should be devoid of any stored proc to avoid complexity.&lt;br /&gt;
&lt;br /&gt;
Let's start with why to use SPA,&lt;br /&gt;
&lt;br /&gt;
A SPA is written in HTML5, JS, CSS3 and lots of other JS libraries.&lt;br /&gt;
&lt;br /&gt;
The other JS libraries has some basic needed libraries like .less or .sass for css maintenance, Require JS for correct Integration of code and ofcourse Jquery, bootstrap to give a beautiful touch and underscore and Grunt runner to reduce the load of the developer and release manager.&lt;br /&gt;
&lt;br /&gt;
What you needed the most is to decide what architecture you need to follow in client side, MVVM or MV* model.&lt;br /&gt;
&lt;br /&gt;
I am a fan of MVVM if you know your model structure and it won't change in time, it represents concrete db design and architecture with a vision.&lt;br /&gt;
&lt;br /&gt;
An MVVM model consist of Models, Views and View Models that handles your views lots of helper files and uses web API to communicate to server,&lt;br /&gt;
&lt;br /&gt;
The MVVM architecture can be achieved using the Knockout JS which is an open source JS framework developed by a Microsoft employee.&lt;br /&gt;
&lt;br /&gt;
The other is MV* model the * can be P or C where P is presenter and C is controller. This model is a standardized model and is followed as a standard practice by Microsoft and Ruby on Rails and can be achieved using Angular JS.&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So your front end design you need to decide what your application can use, it has no relations to DB and it only needs the data to display on screen and need a way to post to server. So here comes the basic operations which are&lt;br /&gt;
&lt;br /&gt;
CRUD - Create Read Update and Delete or POST GET PUT and DELETE.&lt;br /&gt;
&lt;br /&gt;
These basic operations can be achieved from front end using the popular AJAX calls.&lt;br /&gt;
&lt;br /&gt;
As the libraries that needs to be used to achieve your dream, now for back end you need to decide what you want to use.&lt;br /&gt;
&lt;br /&gt;
I will suggest .NET rest api with entity framework, they have excelled in it, performance wise also or Ruby and php is also suggestible. But if performance is what you are looking for then node.js is the choice for you, but it has its own learning curve or rather its more towards unlearning.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyaVSuhhbCNa_TBXQUR6dlCSokYc8gzc4V4OtzT-r3m4zZ_e2c8bnDJ-KPOlGR2hvQP5F2_CjOfFNZtHT8e-NSZQEuy4RBmV0JQjMLCUWoSkEHJlSi4ONsts2gSwG5GSkHYKvZgA-R0FE/s1600/Single-Page-Application%2528SPA%2529-Architecture.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="209" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyaVSuhhbCNa_TBXQUR6dlCSokYc8gzc4V4OtzT-r3m4zZ_e2c8bnDJ-KPOlGR2hvQP5F2_CjOfFNZtHT8e-NSZQEuy4RBmV0JQjMLCUWoSkEHJlSi4ONsts2gSwG5GSkHYKvZgA-R0FE/s640/Single-Page-Application%2528SPA%2529-Architecture.png" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Disconnected Architecure&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So this is how I approach towards making an application, how you do it its all upto you but the basic remains the same.&lt;br /&gt;
&lt;br /&gt;
And one more thing, you can achieve cross platform and cross device app with it as well, how? Because it is disconnected with your server All you need to do is to change the frame of your app and you can also use third party tool like phone gap.&lt;br /&gt;
&lt;br /&gt;
Happy understanding&lt;br /&gt;
&lt;br /&gt;</content><link href="http://developerscloud.blogspot.com/feeds/2190887849429249752/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/06/disconnected-architecture.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2190887849429249752" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2190887849429249752" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2015/06/disconnected-architecture.html" rel="alternate" title="Disconnected Architecture" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyaVSuhhbCNa_TBXQUR6dlCSokYc8gzc4V4OtzT-r3m4zZ_e2c8bnDJ-KPOlGR2hvQP5F2_CjOfFNZtHT8e-NSZQEuy4RBmV0JQjMLCUWoSkEHJlSi4ONsts2gSwG5GSkHYKvZgA-R0FE/s72-c/Single-Page-Application%2528SPA%2529-Architecture.png" width="72"/><thr:total>0</thr:total><georss:featurename>Gurgaon, Haryana, India</georss:featurename><georss:point>28.4594965 77.026638300000059</georss:point><georss:box>28.236067 76.703914800000064 28.682926000000002 77.349361800000054</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-3608092851626990880</id><published>2014-09-11T15:02:00.002+05:30</published><updated>2014-11-24T12:51:02.243+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="abstraction"/><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="cohesion"/><category scheme="http://www.blogger.com/atom/ns#" term="Coupling"/><category scheme="http://www.blogger.com/atom/ns#" term="Interfaces.Difference between Interface and abstract base class"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="oops-basics."/><category scheme="http://www.blogger.com/atom/ns#" term="Programming-Basics."/><title type="text">Extending Object Oriented Programming concepts further with abstraction and interfaces</title><content type="html">&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Few days back I wrote for Solid and Grasp principles for
oops &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;a href="http://www.developerscloud.org/2014/08/oops-beyond-four-pillars-solid-and-grasp.html"&gt;http://www.developerscloud.org/2014/08/oops-beyond-four-pillars-solid-and-grasp.html&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Now I am again extending it to make it more matured way to
write code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Let start with coupling and cohesion.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;Loose/Low Coupling&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;low dependency between classes;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;low impact in a class of changes in other
classes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;high reuse potential&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="MsoListParagraphCxSpLast" style="mso-list: l2 level1 lfo1; text-indent: -.25in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;High Cohesion&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;measure of how strongly-related or focused the
responsibilities of a single module are&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;If methods of a class tend to be similar in many
aspects, then the class have high cohesion&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;In highly-cohesive system, code readability and
the likelihood of reuse is increased, while complexity is kept manageable.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo2; text-indent: -.25in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;Also check&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Encapsulate what varies&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Favor Composition over Inheritance&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Program to interface not implementation&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Strive for loosely coupled design between objects
that interact&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="MsoListParagraphCxSpLast" style="mso-list: l3 level1 lfo3; text-indent: -.25in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;For Interfaces&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Like an abstract base class: any non-abstract
type inheriting the interface must implement all its members.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Cannot be instantiated directly.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Can contain events, indexers, methods and
properties.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Contain no implementation of methods.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Classes and structs can inherit from more than
one interface.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;An interface can itself inherit from multiple
interfaces.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo4; text-indent: -.25in;"&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;!--[endif]--&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;Difference between Interface and abstract base class&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;Abstract class can have non abstract methods,
methods of an interface are effectively abstract since they contain only the
signature&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;A class can implement any no of interfaces, but
can subclass at most one abstract class.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;An abstract class can declare and use variables,
an interface cannot.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;An abstract class can have methods whose access
is public, internal, protected, protected internal and private. Interface
members implicitly have public access.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;An abstract class can declare constructor, an
interface cannot.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;An abstract class can have delegate, an
interface cannot&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;In my next post i'll give you an example on how to implement implicit, explicit and generic interface in and enterprise level application.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.25in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="MsoListParagraphCxSpLast" style="mso-list: l4 level1 lfo5; text-indent: -.25in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/3608092851626990880/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/09/extending-object-oriented-programming.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3608092851626990880" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3608092851626990880" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/09/extending-object-oriented-programming.html" rel="alternate" title="Extending Object Oriented Programming concepts further with abstraction and interfaces" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-9165474060269154818</id><published>2014-08-26T17:30:00.002+05:30</published><updated>2014-09-27T17:44:14.666+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="GRASP"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="oops-basics."/><category scheme="http://www.blogger.com/atom/ns#" term="Programming-Basics."/><category scheme="http://www.blogger.com/atom/ns#" term="SOLID"/><title type="text">OOPs beyond the Four Pillars - SOLID and GRASP</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;As we know&amp;nbsp;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;Object oriented programming is a type of programming paradigm based around programming&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;classes&lt;/b&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;&amp;nbsp;and instances of classes called&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;objects&lt;/b&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;. These can be objects that appear on the screen (e.g., pictures, textboxes, etc.) or are part of the programming (e.g. actors, connections, particles, etc as mentioned in my post&amp;nbsp;&lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;&lt;a href="http://www.developerscloud.org/2013/02/what-is-oop-basic-concepts.html"&gt;http://www.developerscloud.org/2013/02/what-is-oop-basic-concepts.html&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;written ages ago.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;Here we are going to extend the oops beyond its four pillars i.e.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="background-color: white; color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px; text-align: justify;"&gt;Abstraction&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px; text-align: justify;"&gt;Encapsulation&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif; text-align: justify;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;Polymorphism&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; text-align: justify;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px;"&gt;&amp;nbsp;and&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;Interfaces i.e.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;Inheritance&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;So first we will go through&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style="color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px;"&gt;SOLID &lt;/b&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px;"&gt;and then&lt;/span&gt;&lt;b style="color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px;"&gt; GRASP&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18.200000762939453px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;&lt;u&gt;SOLID
Principles are principles of class design.&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333; font-weight: bold;"&gt;S&lt;/span&gt;&lt;span style="color: #333333;"&gt;RP: Single Responsibility
Principle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;An
object should have only a single responsibility &amp;amp; all the responsibility
should be entirely encapsulated by the class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;There
should never be more than one reason for a class to change&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333; font-weight: bold;"&gt;O&lt;/span&gt;&lt;span style="color: #333333;"&gt;CP: Open/Closed Principle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;Software
entities should be open for extension, but closed for modification&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333; font-weight: bold;"&gt;L&lt;/span&gt;&lt;span style="color: #333333;"&gt;SP: &lt;/span&gt;&lt;span style="color: #333333;"&gt;Liskov&lt;/span&gt;&lt;span style="color: #333333;"&gt; &lt;/span&gt;&lt;span style="color: #333333;"&gt;Substituion&lt;/span&gt;&lt;span style="color: #333333;"&gt;
Principle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;Objects
in a program should be replaceable with instances of their subtypes without
altering the correctness of that program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333; font-weight: bold;"&gt;I&lt;/span&gt;&lt;span style="color: #333333;"&gt;SP: Interface Segregation
Principle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;many
client specific interfaces are better than one general purpose interface &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;once
an interface has gotten too 'fat' split it into smaller and more specific
interfaces so that any clients of the interface will only know about the
methods that pertain to them. No client should be forced to depend on methods
it does not use&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 4.32pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333; font-weight: bold;"&gt;D&lt;/span&gt;&lt;span style="color: #333333;"&gt;IP: Dependency Inversion
Principle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;Depend
upon Abstractions. Do not depend upon concretions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="O1" style="direction: ltr; margin-bottom: 0pt; margin-left: 0.81in; margin-top: 3.84pt; text-indent: -0.31in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;–&lt;span style="color: #333333;"&gt;Dependency
Injection (DI) is one method of following this principle.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;
&lt;b style="color: #333333; font-family: Georgia, 'Times New Roman', serif; line-height: 18.200000762939453px;"&gt;&lt;u&gt;GRASP&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white; color: #333333; line-height: 18.200000762939453px; text-align: justify;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;Acronym for &lt;/span&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;G&lt;/span&gt;&lt;span style="color: #333333;"&gt;eneral &lt;/span&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;R&lt;/span&gt;&lt;span style="color: #333333;"&gt;esponsibility &lt;/span&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;A&lt;/span&gt;&lt;span style="color: #333333;"&gt;ssignment &lt;/span&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;S&lt;/span&gt;&lt;span style="color: #333333;"&gt;oftware &lt;/span&gt;&lt;span style="color: #333333; font-weight: bold;"&gt;P&lt;/span&gt;&lt;span style="color: #333333;"&gt;atterns.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;Assigning responsibilities to
classes is a critical aspect of object-oriented design. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;Appropriate assignment of
responsibilities to classes is the key to successful design.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;There are fundamental principles
in assigning responsibilities that experienced designers apply.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;These principles are summarized
in the GRASP patterns.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;•&lt;span style="color: #333333;"&gt;Has nine core principles that
object-oriented designers apply when assigning responsibilities to classes and
designing message interactions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;Nine Principles:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Expert.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Creator.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Controller.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Low Coupling.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;High Cohesion.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Polymorphism.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Pure Fabrication.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Indirection.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;•&lt;/span&gt;&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;Don’t Talk to Strangers.&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;I think this article is not so great in terms of visualizations but indeed if you read it, it will help you to brush up your concepts and increase your productivity as well...&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;In Continuation Next Post:&amp;nbsp;&lt;/span&gt;&lt;span style="text-indent: -0.38in;"&gt;&lt;span style="color: #333333; font-family: Georgia, Times New Roman, serif;"&gt;&lt;a href="http://www.developerscloud.org/2014/09/extending-object-oriented-programming.html"&gt;http://www.developerscloud.org/2014/09/extending-object-oriented-programming.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="direction: ltr; margin-bottom: 0pt; margin-left: 0.38in; margin-top: 5.76pt; text-indent: -0.38in; unicode-bidi: embed; vertical-align: baseline;"&gt;
&lt;span style="color: #333333; font-family: Georgia, 'Times New Roman', serif; text-indent: -0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/9165474060269154818/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/08/oops-beyond-four-pillars-solid-and-grasp.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/9165474060269154818" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/9165474060269154818" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/08/oops-beyond-four-pillars-solid-and-grasp.html" rel="alternate" title="OOPs beyond the Four Pillars - SOLID and GRASP" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Bengaluru, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-6716787449921718519</id><published>2014-07-08T21:16:00.001+05:30</published><updated>2019-05-04T00:36:52.184+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advance Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="correct unit testing"/><category scheme="http://www.blogger.com/atom/ns#" term="Unit Testing"/><title type="text">Unit Testing, In a right way.</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;This blog is aimed at those developer who have little development and unit testing experience. Please refrain yourself to proceed if you don't know development.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;What is Unit Testing ?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;By Definition, In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application. In procedural programming a unit may be an individual function or procedure. Unit tests are created by programmers or occasionally by white box testers.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Some Benefits of Unit Testing:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Bug Tracking&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Code Maintenance&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Understandable code&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;How the above things help in actual scenario ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Suppose you have developed a code from scratch and it went to maintenance. Now you left the company, there are no unit test written and a bug came via customer. The app went for a hot fix and some other guy fix it, and&amp;nbsp; his fix created another which in turn creates another issue.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;So the creation of issue cycle is continuous as nobody knows the complete actual scenarios and the actual (original) dev has left the company and the company went haywire when an issue came.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Now whose fault is this ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Let me tell you, its original dev fault, as he didn't write the unit test cases.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;If we would have written the unit test cases, then:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;A wrong scenario would have failed the test case, and we can fix the code.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Code will become more understandable&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Code in turn is maintainable.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Our Learning from our case study&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Unit testing provides a sort of living documentation of the system. Developers looking to learn what functionality is provided by a unit and how to use it can look at the unit tests to gain a basic understanding of the unit's API.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Unit test cases embody characteristics that are critical to the success of the unit. These characteristics can indicate appropriate/inappropriate use of a unit as well as negative behaviors that are to be trapped by the unit. A unit test case, in and of itself, documents these critical characteristics, although many software development environments do not rely solely upon code to document the product in development.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;By contrast, ordinary narrative documentation is more susceptible to drifting from the implementation of the program and will thus become outdated (e.g., design changes, feature creep, relaxed practices in keeping documents up-to-date).&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;So When a Test Fails Incorrectly please read above two paras or below two points.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Delete the failing test after verifying that it is no longer valid—essentially since the old requirement is either invalid or is tested elsewhere.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Change the old test so you test the new requirement (essentially using a new test), and test the old requirement under new settings (the test logic stays the same, but the initialization function may change).&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Correct way to write Unit Tests (What is the biggest mistake developers generally do?)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;In one line - Developers do Integration testing instead of unit testing.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Unit testing means we should not test external dependencies.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Simple Example is following.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Suppose we have following pseudo code:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Function loadData(Success, Fail){&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; if(Success){&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; helper.callThisWhenItsSuccess();&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; if(Fail){&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; helper.callThisWhenItsFail();&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;In above function if write a unit test case,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;We should not worry about helper class and its function, the helper class should not be covered in this particular unit test If it is covered then it become type of integration testing.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;How to avoid this in real time scenarios ?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;Use mocks, Stubs and use correct assertions.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: inherit;"&gt;So ideally, each test case is independent from the others: substitutes like method stubs, mock objects, fakes and test harnesses can be used to assist testing a module in isolation. Unit tests are typically written and run by software developers to ensure that code meets its design and behaves as intended. Its implementation can vary from being very manual (pencil and paper) to being formalized as part of build automation.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Reference:&amp;nbsp; Unit testing Wikibook&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/6716787449921718519/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/07/unit-testing-in-right-way.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6716787449921718519" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6716787449921718519" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/07/unit-testing-in-right-way.html" rel="alternate" title="Unit Testing, In a right way." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2893649213479354166</id><published>2014-05-22T13:56:00.000+05:30</published><updated>2016-01-22T22:36:22.456+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="date sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="sorting"/><title type="text">Decoding the date sorting in Javascript, efficient faster and native way.</title><content type="html">&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Coming from the previous &lt;a href="http://www.developerscloud.org/2014/05/decoding-underscore-js-sortby-sorting.html" target="_blank"&gt;post&lt;/a&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="font-family: georgia, 'times new roman', serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.developerscloud.org/2014/05/decoding-underscore-js-sortby-sorting.html" style="font-family: georgia, 'times new roman', serif;"&gt;http://www.developerscloud.org/2014/05/decoding-underscore-js-sortby-sorting.html&lt;/a&gt;&lt;span style="font-family: georgia, 'times new roman', serif;"&gt;)&lt;/span&gt;&lt;span style="font-family: georgia, 'times new roman', serif;"&gt;,&amp;nbsp;&amp;nbsp;where we have used the underscore to sort the array, with the limitation of sorting in descending order,&amp;nbsp;I will show you in below post how to sort effectively using javascript native functionality.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Lets use the same array we have in the previous post.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #990000;"&gt;var &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray =
&lt;/span&gt;&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #990000;"&gt;['6-01-2014','2-01-2014', '4-01-2014', '5-01-2014', '3-01-2014', '1-01-2014'];&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;datesArray is now&lt;/span&gt;&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;["&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;6-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;4-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;5-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;3-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;1-01-2014&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;"]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Running the for loop making each item of array a date type object.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;for(var i = 0; i&amp;lt; datesArray.length;
i++){ &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray[i]
= new Date(datesArray [i]); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;}&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;After which datesArray&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt; will become &lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;[Sun Jun 01 2014
00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Sat Feb 01 2014
00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Tue Apr 01 2014
00:00:00 GMT+0530 (India Standard Time), &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Thu May 01 2014
00:00:00 GMT+0530 (India Standard Time), &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Sat Mar 01 2014
00:00:00 GMT+0530 (India Standard Time), &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Wed Jan 01 2014
00:00:00 GMT+0530 (India Standard Time)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #38761d;"&gt;// below are the
comparison function that will result in dates being sorted in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #38761d;"&gt;// ASCENDING &amp;amp; DESCENDING
order. As you can see, JavaScript's native comparison operators &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #38761d;"&gt;// can be used to
compare dates. Avoiding the use of sort by of underscore.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;span style="color: #38761d;"&gt;//Descending&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;var date_sort_desc =
function (date1, date2) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if
(date1 &amp;gt; date2) return -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if
(date1 &amp;lt; date2) return 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return
0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;};&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #38761d; font-family: &amp;quot;consolas&amp;quot;;"&gt;//&lt;/span&gt;&lt;span style="background-color: transparent;"&gt;&lt;span style="color: #38761d; font-family: &amp;quot;consolas&amp;quot;;"&gt;Ascending&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;var date_sort_asc =
function (date1, date2) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;if
(date1 &amp;gt; date2) return 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;if
(date1 &amp;lt; date2) return -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;return
0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;}; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;u&gt;Output:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray.sort(date_sort_desc);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;[Sun Jun 01 2014 00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Thu May 01 2014 00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Tue Apr 01 2014 00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Sat Mar 01 2014 00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Sat Feb 01 2014 00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;Wed Jan 01 2014 00:00:00 GMT+0530 (India Standard Time)]&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray.sort(date_sort_asc);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;[Wed Jan 01 2014
00:00:00 GMT+0530 (India Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;Sat Feb 01 2014 00:00:00 GMT+0530 (India
Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;Sat Mar 01 2014 00:00:00 GMT+0530 (India
Standard Time), &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;Tue Apr 01 2014 00:00:00 GMT+0530 (India
Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;Thu May 01 2014 00:00:00 GMT+0530 (India
Standard Time),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&amp;nbsp;Sun Jun 01 2014 00:00:00 GMT+0530 (India
Standard Time)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Converting back the array into the original format of dates.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;for(var i = 0;
i&amp;lt;x.length;i++){ &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray[i]
= datesArray[i].toISOString().slice(0, 10); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;}&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The formatted output result.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #0080ff; font-family: &amp;quot;consolas&amp;quot;;"&gt;datesArray&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;["&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2013-12-31&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2014-01-31&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2014-02-28&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2014-03-31&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2014-04-30&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;", "&lt;/span&gt;&lt;span style="color: #c41a16; font-family: &amp;quot;consolas&amp;quot;;"&gt;2014-05-31&lt;/span&gt;&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;"]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="color: #222222; font-family: &amp;quot;consolas&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;"&gt;I hope you will all find it helpful.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/2893649213479354166/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/05/decoding-date-sorting-in-javascript.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2893649213479354166" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2893649213479354166" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/05/decoding-date-sorting-in-javascript.html" rel="alternate" title="Decoding the date sorting in Javascript, efficient faster and native way." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-6321176288875668156</id><published>2014-05-13T19:38:00.005+05:30</published><updated>2016-01-22T22:35:32.030+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="underscore"/><category scheme="http://www.blogger.com/atom/ns#" term="underscorejs"/><title type="text">Decoding underscore js SortBy - Sorting in javascript</title><content type="html">&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;i&gt;Sorting can be the developers worst nightmare especially if it is done in more then one field.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So what can help, recently doing research on it I came across underscore js sortBy (underscorejs.org/#sortBy) function which will help you to sort the array very effectively.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So I was going through the documentation and found it very useful, but there are one drawback of it.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Will let you know that:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;How to order in Ascending Order&lt;/span&gt;&lt;br /&gt;
&lt;div class="console-user-command console-adjacent-user-command-result" style="background-color: white; border-bottom-style: none; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy([6, 2, 4, 5, 3, 1], function(num){ return num });
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="console-message console-log-level console-user-command-result" style="background-color: white; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;span class="console-formatted-array source-code" style="box-sizing: border-box; color: inherit; display: inline-block; position: relative; vertical-align: top;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;[&lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;1&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;2&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;3&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;4&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;5&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;6&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;How to order in Descending Order&lt;/span&gt;&lt;br /&gt;
&lt;div class="console-user-command console-adjacent-user-command-result" style="background-color: white; border-bottom-style: none; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy([6, 2, 4, 5, 3, 1], function(num){ return -num });
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="console-message console-log-level console-user-command-result" style="background-color: white; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;&lt;span style="box-sizing: border-box;"&gt;&lt;span class="console-formatted-array source-code" style="box-sizing: border-box; color: inherit; display: inline-block; position: relative; vertical-align: top;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;[&lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;6&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;5&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;4&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;3&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;2&lt;/span&gt;, &lt;span class="console-formatted-number source-code" style="box-sizing: border-box; color: #1c00cf;"&gt;1&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The underscore sort by will also work with string literals&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Ascending&lt;/span&gt;&lt;br /&gt;
&lt;div class="console-user-command console-adjacent-user-command-result" style="background-color: white; border-bottom-style: none; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy(['6','2', '4', '5', '3', '1'], function(num){ return num });
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="console-message console-log-level console-user-command-result" style="background-color: white; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;span style="white-space: pre-wrap;"&gt;[&lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;1&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;2&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;3&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;4&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;5&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;6&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Descending&lt;/span&gt;&lt;br /&gt;
&lt;div class="console-user-command console-adjacent-user-command-result" style="background-color: white; border-bottom-style: none; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span class="console-message-text source-code" style="box-sizing: border-box; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy(['6','2', '4', '5', '3', '1'], function(num){ return -num });
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="console-message console-log-level console-user-command-result" style="background-color: white; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; clear: right; color: #222222; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;
&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;span style="white-space: pre-wrap;"&gt;[&lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;6&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;5&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;4&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;3&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;2&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="box-sizing: border-box; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;1&lt;/span&gt;"&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The only thing it wont work with is &amp;nbsp;DATES in descending order&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Ascending, it works just fine.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy(['6-01-2014','2-01-2014', '4-01-2014', '5-01-2014', '3-01-2014', '1-01-2014'], function(num){ return num });&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;

&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;1-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;2-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;3-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;4-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;5-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;6-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Descending, it sucks.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;_.sortBy(['6-01-2014','2-01-2014', '4-01-2014', '5-01-2014', '3-01-2014', '1-01-2014'], function(num){ return -num });&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;"&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;[&lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;6-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;2-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;4-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;5-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;3-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;, &lt;/span&gt;&lt;span class="source-code" style="background-color: white; box-sizing: border-box; color: #222222; white-space: pre-wrap;"&gt;"&lt;span class="console-formatted-string source-code" style="box-sizing: border-box; color: #c41a16;"&gt;1-01-2014&lt;/span&gt;"&lt;/span&gt;&lt;span style="background-color: white; color: #222222; white-space: pre-wrap;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #0080ff; white-space: pre-wrap;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;So to overcome the date sorting, I have another way also, will let you know that in next post&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Meanwhile you can go through underscorejs, its awesome&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;An Introduction to Underscore as per their official site&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects. It’s the answer to the question: “If I sit down in front of a blank HTML page, and want to start being productive immediately, what do I need?” … and the tie to go along with jQuery's tux andBackbone's suspenders.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Underscore provides 80-odd functions that support both the usual functional suspects:map, select, invoke — as well as more specialized helpers: function binding, javascript templating, deep equality testing, and so on. It delegates to built-in functions, if present, so modern browsers will use the native implementations of forEach, map,reduce, filter, every, some and indexOf.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;Continuing post:&lt;a href="http://www.developerscloud.org/2014/05/decoding-date-sorting-in-javascript.html" target="_blank"&gt; http://www.developerscloud.org/2014/05/decoding-date-sorting-in-javascript.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;

</content><link href="http://developerscloud.blogspot.com/feeds/6321176288875668156/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/05/decoding-underscore-js-sortby-sorting.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6321176288875668156" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6321176288875668156" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/05/decoding-underscore-js-sortby-sorting.html" rel="alternate" title="Decoding underscore js SortBy - Sorting in javascript" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-3937958454908629413</id><published>2014-04-28T11:07:00.000+05:30</published><updated>2014-04-29T14:46:01.345+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Reflection"/><title type="text">Reflection in Dot Net (.Net)</title><content type="html">According to &lt;b&gt;msdn&lt;/b&gt;, putting all the definition at one place:-&lt;br /&gt;
&lt;br /&gt;
Reflection provides objects (of type Type) that encapsulate assemblies, modules and types. A type represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types. &amp;nbsp;You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties. If you are using attributes in your code, Reflection enables you to access them.&lt;br /&gt;
&lt;br /&gt;
Below is the code example for it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
System.Collections.Generic;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
System.Linq;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
System.Text;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
System.Reflection;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;namespace&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
reflection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; class&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;Program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;static&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
Main(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;[]
args)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
type = &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;Program&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
members = type.GetMembers(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.Static
| &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.Public
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.NonPublic
| &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;BindingFlags&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.Instance);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
 (&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
MemberInfo &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;in&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;
members)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.WriteLine(MemberInfo.Name);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;.Read();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="color: black;"&gt;You can see while debugging its&amp;nbsp;&lt;/span&gt;a reflection and by using Name space using System.Reflection we are using the reflection properties.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwV6zoYdoy8mHqpYrt1DfS5JOwGQffkvB5CAiVEL7UGngNvjlFagnjGnuIwgZdTvqgtvyAfIPOO0xAGoBYNS2Ld9llTJNeqPho7cbLUWdB0IdyuwKIW0UGYeb1iojrCp-h2ZnMd3OtGTg/s1600/Reflection_C%23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwV6zoYdoy8mHqpYrt1DfS5JOwGQffkvB5CAiVEL7UGngNvjlFagnjGnuIwgZdTvqgtvyAfIPOO0xAGoBYNS2Ld9llTJNeqPho7cbLUWdB0IdyuwKIW0UGYeb1iojrCp-h2ZnMd3OtGTg/s640/Reflection_C%23.png" height="66" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Consolas, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0cm;"&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/3937958454908629413/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/05/reflection-in-dot-net-net.html#comment-form" rel="replies" title="1 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3937958454908629413" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3937958454908629413" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/05/reflection-in-dot-net-net.html" rel="alternate" title="Reflection in Dot Net (.Net)" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwV6zoYdoy8mHqpYrt1DfS5JOwGQffkvB5CAiVEL7UGngNvjlFagnjGnuIwgZdTvqgtvyAfIPOO0xAGoBYNS2Ld9llTJNeqPho7cbLUWdB0IdyuwKIW0UGYeb1iojrCp-h2ZnMd3OtGTg/s72-c/Reflection_C%23.png" width="72"/><thr:total>1</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-6570436962338730188</id><published>2014-03-04T19:43:00.000+05:30</published><updated>2014-03-04T19:50:38.475+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advance Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Knockout js"/><category scheme="http://www.blogger.com/atom/ns#" term="Refresh HTML controls"/><title type="text">Refresh the Jquery Css for a HTML control using knockout in Javascript.</title><content type="html">&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white;"&gt;If you are a&amp;nbsp;JavaScript&amp;nbsp;developer then you might have come across a situation where you load your HTML controls after the page load has happen, which is like dynamic binding of controls.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white;"&gt;And then you see your input type text doesn't have the proper Css as other inputs.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="background-color: white;"&gt;You also load select (dropdown)&amp;nbsp;&lt;/span&gt;that also doesn't have the proper css.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;You are in chrome and press F-12 to inspect the element, y&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;ou see that nothing is there in control, it is not applying the JQuery css.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;But the controls that are loaded in page load have it.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;What to do, no options just to manually copy the CSS classes.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;VERY BAD IDEA?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;i&gt;Just do this,&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;In HTML&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: maroon; font-family: Consolas; line-height: 107%;"&gt;input&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt; &lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Consolas; line-height: 107%;"&gt;type&lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;="date"&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt; &lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: red; font-family: Consolas; line-height: 107%;"&gt;data-bind&lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;="i&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt;nputsRefresh: $element, value:
$data.EndDate&lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;"&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt; &lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; line-height: 107%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; line-height: 13.553333282470703px;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;and in JS binding handler&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; line-height: 13.553333282470703px;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white; line-height: 13.553333282470703px;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white; line-height: 13.553333282470703px;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="background-color: white; line-height: 13.553333282470703px;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="background-color: white; font-family: Consolas;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="background-color: white; font-family: Consolas;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;ko.bindingHandlers.inputsRefresh =
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="background-color: white; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; init: &lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas;"&gt;function&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas;"&gt; (element) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="background-color: white; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(element).textinput().trigger(&lt;/span&gt;&lt;span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas;"&gt;'create'&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas;"&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt;"&gt;
&lt;span style="background-color: white; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; font-family: Consolas; line-height: 107%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;span style="background-color: white; line-height: 107%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Its only good if you are using knockout, you can thank me later. ;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/6570436962338730188/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/03/refresh-jquery-css-for-control-using.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6570436962338730188" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6570436962338730188" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/03/refresh-jquery-css-for-control-using.html" rel="alternate" title="Refresh the Jquery Css for a HTML control using knockout in Javascript." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-823915916766946537</id><published>2014-02-15T00:20:00.000+05:30</published><updated>2019-03-19T11:09:51.603+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Advance Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance in JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Prototypes"/><category scheme="http://www.blogger.com/atom/ns#" term="prototypical inheritance"/><title type="text">JavaScript is too cool and so is the inheritance.</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;I can say million words about Javascript, it is so cool.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;We will start with the &amp;nbsp;&lt;/span&gt;&lt;b style="font-family: Georgia, 'Times New Roman', serif;"&gt;inheritance&amp;nbsp;&lt;/b&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;in the JAVASCRIPT which will make our concepts a little shaky as it implements prototypical&amp;nbsp;inheritance&amp;nbsp;which are not bad the point is we are not used to code in&amp;nbsp;JS. As almost everyone in this world are from JAVA or .NET background.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;b&gt;Inheritance is an important topic in most programming languages.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;In the classical languages (such as Java), inheritance (or extends) provides two useful&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;services. First, it is a form of code reuse. If a new class is mostly similar to an existing&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;class, youonly have to specify the differences. Patterns of code reuse are extremely&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;important because they have the potential to significantly reduce the cost of software&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;development. The other benefit of classical inheritance is that it includes the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;specification of a system of types.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;This mostly frees the programmer from having to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;write explicit casting operations, which is a very good thing because when casting,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;the safety benefits of a type system are lost.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;JavaScript, being a loosely typed language, never casts. The lineage of an object is&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;irrelevant. What matters about an object is what it can do, not what it is descended&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;from.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;JavaScript provides a much richer set of code reuse patterns. It can ape the classical&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;pattern, but it also supports other patterns that are more expressive. The set of possible&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;inheritance patterns in JavaScript is vast.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;In this, we’ll look at a few of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;most straightforward patterns. Much more complicated constructions are possible,&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;but it is usually best to keep it simple.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;In classical languages, objects are instances of classes, and a class can inherit from&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;another class.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;JavaScript is a prototypal language, which means that objects inherit&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;directly from other objects.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;span style="line-height: 18px;"&gt;In JavaScript, a&amp;nbsp;&lt;/span&gt;&lt;strong style="line-height: 18px; text-align: start;"&gt;prototype&lt;/strong&gt;&lt;span style="line-height: 18px;"&gt;&amp;nbsp;is a property of functions and of objects that are created by constructor functions. The prototype of a function is an object. Its main use is when a function is used as a constructor.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;span style="font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; line-height: 17.549999237060547px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="color: blue;"&gt;function&lt;/span&gt; Vehicle(wheels, engine) {
    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.wheels = wheels;
    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.engine = engine;
}&lt;/pre&gt;
&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; line-height: 17.549999237060547px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;a name='more'&gt;&lt;/a&gt;
&lt;/pre&gt;
&lt;pre style="line-height: 17.549999237060547px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;You can use the&amp;nbsp;&lt;/span&gt;&lt;strong style="line-height: 18px; white-space: normal;"&gt;prototype&lt;/strong&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;property to add properties and methods to objects, even the ones that have already been created:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="line-height: 17.549999237060547px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; testVehicle = &lt;span style="color: blue;"&gt;new&lt;/span&gt; Vehicle(2, &lt;span style="color: blue;"&gt;false&lt;/span&gt;);
Vehicle.prototype.color = &lt;span style="color: #a31515;"&gt;"red"&lt;/span&gt;;
&lt;span style="color: blue;"&gt;var&lt;/span&gt; testColor = testVehicle.color;&lt;/pre&gt;
&lt;pre style="overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;div style="line-height: 18px; padding-bottom: 15px; white-space: normal;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;The value of&amp;nbsp;&lt;span class="code" style="color: darkgreen;"&gt;testColor&lt;/span&gt;&amp;nbsp;is "red".&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 18px; padding-bottom: 15px; white-space: normal;"&gt;
&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;You can even add properties and methods to predefined objects. For example, you can define a&amp;nbsp;&lt;strong&gt;Trim&lt;/strong&gt;&amp;nbsp;method on the&amp;nbsp;&lt;strong&gt;String&lt;/strong&gt;&amp;nbsp;prototype object, and all the strings in your script will inherit the method.&lt;/span&gt;&lt;/div&gt;
&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;String.prototype.trim = &lt;span style="color: blue;"&gt;function&lt;/span&gt;()
{
    &lt;span style="color: green;"&gt;// Replace leading and trailing spaces with the empty string&lt;/span&gt;
    &lt;span style="color: blue;"&gt;return&lt;/span&gt; &lt;span style="color: blue;"&gt;this&lt;/span&gt;.replace(/(^\s*)|(\s*$)/g, &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;);
}
&lt;span style="color: blue;"&gt;var&lt;/span&gt; s = &lt;span style="color: #a31515;"&gt;"    leading and trailing spaces    "&lt;/span&gt;;
&lt;span style="color: green;"&gt;// Displays "    leading and trailing spaces     (35)"&lt;/span&gt;
window.alert(s + &lt;span style="color: #a31515;"&gt;" ("&lt;/span&gt; + s.length + &lt;span style="color: #a31515;"&gt;")"&lt;/span&gt;);
&lt;span style="color: green;"&gt;// Remove the leading and trailing spaces&lt;/span&gt;
s = s.trim();
&lt;span style="color: green;"&gt;// Displays "leading and trailing spaces (27)"&lt;/span&gt;
window.alert(s + &lt;span style="color: #a31515;"&gt;" ("&lt;/span&gt; + s.length + &lt;span style="color: #a31515;"&gt;")"&lt;/span&gt;);&lt;/pre&gt;
&lt;pre style="overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong style="line-height: 18px; white-space: normal;"&gt;prototype&lt;/strong&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;object can be used to derive one object from another. For example, you can use the&amp;nbsp;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff925952(v=vs.94).aspx" style="color: #03697a; line-height: 18px; text-decoration: none; white-space: normal;"&gt;Object.create&lt;/a&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;function to derive a new object&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;Bicycle&amp;nbsp;&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;using the prototype of the&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;Vehicle&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;object we defined earlier (plus any new properties you need).&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; Bicycle = Object.create(Object.getPrototypeOf(Vehicle), {
    &lt;span style="color: #a31515;"&gt;"pedals"&lt;/span&gt; :{value: &lt;span style="color: blue;"&gt;true&lt;/span&gt;}
});&lt;/pre&gt;
&lt;pre style="overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;"&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;The&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;Bicycle&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;object has the properties&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;wheels&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;engine&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;color&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;, and&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;pedals&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;, and its prototype is&amp;nbsp;&lt;/span&gt;&lt;strong style="line-height: 18px; white-space: normal;"&gt;Vehicle.prototype&lt;/strong&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;. The JavaScript engine finds the&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;pedals&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;property on&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;Bicycle&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;, and it looks up the prototype chain to find the&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;wheels&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;engine&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;, and&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;color&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;&amp;nbsp;properties on&amp;nbsp;&lt;/span&gt;&lt;span class="code" style="color: darkgreen; line-height: 18px; white-space: normal;"&gt;Vehicle&lt;/span&gt;&lt;span style="line-height: 18px; white-space: normal;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="font-family: Consolas, Courier, monospace !important; font-size: 13px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;span style="font-family: &amp;quot;segoe ui&amp;quot; , &amp;quot;lucida grande&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; line-height: 18px; white-space: normal;"&gt;Reference: bible of Javascript, Javascript Good Parts, &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/hh924508(v=vs.94).aspx" style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 18px; white-space: normal;" target="_blank"&gt;msdn&lt;/a&gt;&lt;/pre&gt;
&lt;/pre&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/823915916766946537/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/02/javascript-is-too-cool-and-so-is.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/823915916766946537" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/823915916766946537" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/02/javascript-is-too-cool-and-so-is.html" rel="alternate" title="JavaScript is too cool and so is the inheritance." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-5874131361906068143</id><published>2014-01-08T20:11:00.001+05:30</published><updated>2014-05-22T02:45:18.153+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server Management Studio."/><category scheme="http://www.blogger.com/atom/ns#" term="sql-tips"/><title type="text">SQL Joins</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="background-color: white; color: #323232; font-family: inherit; line-height: 16px;"&gt;The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables.&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;Tables in a database are often related to each other with keys.&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;A primary key is a column (or a combination of columns) with a unique value for each row. Each primary key value must be unique within the table. The purpose is to bind data together, across tables, without repeating all of the data in every table&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style="background-color: white; color: #323232; line-height: 16px;"&gt;
&lt;/div&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span class="mw-headline" id="FULL_OUTER_JOIN"&gt;&lt;span style="font-family: inherit;"&gt;FULL OUTER JOIN&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #323232; line-height: 19.1875px; margin-bottom: 0.5em; margin-top: 0.4em; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;A JOIN is made matching a column on a table to a column on the other table. After a FULL OUTER JOIN, for a given value (red), for a given row with this value on one table ([ red | 9999 ]), one row is created for each row that matches on the other table ([ red | OOOOOO ] and [ red | LLLLLL ]). If a value exists in only one table, then a row is created and is completed with NULL columns.&lt;/span&gt;&lt;/div&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); direction: ltr; line-height: 1.1em; padding: 1em;"&gt;
&lt;div class="sql source-sql" style="line-height: normal;"&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;FROM&lt;/span&gt; table_1 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;FULL&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;OUTER&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;JOIN&lt;/span&gt; table_2 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt; table_1&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value &lt;span class="sy0" style="color: #66cc66;"&gt;=&lt;/span&gt; table_2&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;td&gt;&lt;center&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span class="mw-headline"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative;"&gt;
&lt;span class="mw-headline"&gt;&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;table class="wikitable" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; margin: 1em 0px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;common_value&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;specific_value_1&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;specific_value_2&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;red&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;9999&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;OOOOOO&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;red&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;9999&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;LLLLLL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;grey&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;6666&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;white&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;0000&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;purple&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;7777&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;purple&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;2222&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;black&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;8888&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;FFFFFF&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;green&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;HHHHHH&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;yellow&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;PPPPPP&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;blue&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;NULL&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;RRRRRR&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span class="mw-headline"&gt;&lt;span style="font-family: inherit;"&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span class="mw-headline" id="RIGHT_OUTER_JOIN"&gt;RIGHT OUTER JOIN&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #323232; line-height: 18px; text-align: justify;"&gt;
&lt;span style="line-height: 19.1875px;"&gt;&lt;span style="font-family: inherit;"&gt;The RIGHT OUTER JOIN is like the FULL OUTER JOIN but it doesn't create row for values that don't exist on the left table.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); direction: ltr; line-height: 1.1em; padding: 1em;"&gt;
&lt;div class="sql source-sql" style="line-height: normal;"&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;FROM&lt;/span&gt; table_1 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;RIGHT&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;OUTER&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;JOIN&lt;/span&gt; table_2 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt; table_1&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value &lt;span class="sy0" style="color: #66cc66;"&gt;=&lt;/span&gt; table_2&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;td&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br style="background-color: white; color: #323232; line-height: 18px;" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table class="wikitable" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; line-height: 18px; margin: 1em 0px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;common_value&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_1&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_2&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;OOOOOO&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;LLLLLL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;black&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;8888&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;FFFFFF&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;green&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;HHHHHH&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;yellow&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;PPPPPP&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;blue&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;RRRRRR&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span class="mw-headline" id="LEFT_OUTER_JOIN"&gt;LEFT OUTER JOIN&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #323232; line-height: 19.1875px; margin-bottom: 0.5em; margin-top: 0.4em; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;The LEFT OUTER JOIN is like the FULL OUTER JOIN but it doesn't create row for values that don't exist on the right table.&lt;/span&gt;&lt;/div&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); direction: ltr; line-height: 1.1em; padding: 1em;"&gt;
&lt;div class="sql source-sql" style="line-height: normal;"&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;FROM&lt;/span&gt; table_1 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;LEFT&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;OUTER&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;JOIN&lt;/span&gt; table_2 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt; table_1&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value &lt;span class="sy0" style="color: #66cc66;"&gt;=&lt;/span&gt; table_2&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;td&gt;&lt;center&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;table class="wikitable" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; margin: 1em 0px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;common_value&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_1&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_2&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;OOOOOO&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;LLLLLL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;grey&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;6666&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;white&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;0000&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;purple&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;7777&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;purple&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;2222&lt;/span&gt;&lt;/td&gt;&lt;td style="background-color: #cccccc; border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;b&gt;&lt;span style="font-family: inherit;"&gt;NULL&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;black&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;8888&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;FFFFFF&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h4 style="background-color: white; background-image: none; border-bottom-style: none; color: #2988d4; font-weight: normal; line-height: 19.1875px; margin: 0px 0px 0.3em; overflow: hidden; padding-bottom: 0.17em; padding-top: 0.5em; position: relative; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span class="mw-headline" id="INNER_JOIN"&gt;INNER&amp;nbsp;&lt;/span&gt;&lt;span class="mw-headline"&gt;JOIN&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;div style="background-color: white; color: #323232; line-height: 19.1875px; margin-bottom: 0.5em; margin-top: 0.4em; text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;The INNER JOIN is like the FULL OUTER JOIN but it creates row only for values that exist on both the left table and the right table.&lt;/span&gt;&lt;/div&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border: 1px dashed rgb(47, 111, 171); direction: ltr; line-height: 1.1em; padding: 1em;"&gt;
&lt;div class="sql source-sql" style="line-height: normal;"&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;FROM&lt;/span&gt; table_1 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;INNER&lt;/span&gt; &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;JOIN&lt;/span&gt; table_2 &lt;span class="kw1" style="color: #993333; font-weight: bold;"&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="de1" style="background-image: none; border: 0px none white; line-height: 1.2em; padding: 0px; vertical-align: top;"&gt;&lt;span style="font-family: inherit;"&gt; table_1&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value &lt;span class="sy0" style="color: #66cc66;"&gt;=&lt;/span&gt; table_2&lt;span class="sy0" style="color: #66cc66;"&gt;.&lt;/span&gt;common_value&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;td&gt;&lt;center&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table style="background-color: white; color: black; line-height: 19.1875px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;center&gt;
&lt;table class="wikitable" style="background-color: #f9f9f9; border-collapse: collapse; border: 1px solid rgb(170, 170, 170); color: black; margin: 1em 0px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;common_value&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_1&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #f2f2f2; border: 1px solid rgb(170, 170, 170); padding: 0.2em; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;specific_value_2&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;OOOOOO&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;red&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;9999&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;LLLLLL&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;black&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;8888&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(170, 170, 170); padding: 0.2em;"&gt;&lt;span style="font-family: inherit;"&gt;FFFFFF&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;Originally posted in &lt;a href="http://www.developerscloud.org/2013/05/sql-joins.html" target="_blank"&gt;May 2013&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/5874131361906068143/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/01/sql-joins.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/5874131361906068143" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/5874131361906068143" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2014/01/sql-joins.html" rel="alternate" title="SQL Joins" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-3633226551574809121</id><published>2013-10-25T14:56:00.003+05:30</published><updated>2013-10-25T15:08:28.100+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="grunt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript minimization"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="News"/><title type="text">Grunt - A command line JavaScript task runner. </title><content type="html">&lt;div lang="en" style="line-height: 0.26in; margin-bottom: 0.1in; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 0.26in;"&gt;Grunt
is a JavaScript task runner that will help you to mini-fy the various
JS files. It will make your work really less while performing
repetitive tasks like minification, compilation, unit testing,
linting, etc with just few lines of code you need to write in command
prompt.&lt;/span&gt;&lt;/div&gt;
&lt;div lang="en" style="line-height: 0.26in; margin-bottom: 0.1in; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEiqLpaRc9xMgEt5jpNBaoOgVfpWtAPNt7c0jiESN5qitv88QwVP8aJbfpLuPkwhQiS6ov44iMvdvqYFAs7eZm3x2tcGhL-Ynff1lvXAsl0KupHYkMF0SW7yFLTKp_jr_SuN74cXTPdhw/s1600/grunt.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img alt="Gruntjs" border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEiqLpaRc9xMgEt5jpNBaoOgVfpWtAPNt7c0jiESN5qitv88QwVP8aJbfpLuPkwhQiS6ov44iMvdvqYFAs7eZm3x2tcGhL-Ynff1lvXAsl0KupHYkMF0SW7yFLTKp_jr_SuN74cXTPdhw/s320/grunt.png" title="Gruntjs" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Grunt is a task-based command line build tool for JavaScript projects.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div lang="en" style="line-height: 0.26in; margin-bottom: 0.1in; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 115%;"&gt;If
you have a Javascript and html based project that used &lt;/span&gt;&lt;a href="http://www.developerscloud.org/2013/03/mvvm-model-view-viewmodel-jump-start.html" style="font-family: Georgia, 'Times New Roman', serif; line-height: 115%;" target="_blank"&gt;MVVM &lt;/a&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 115%;"&gt;model and
you have millions of lines of code to minimize then grunt is the key
for you.&lt;/span&gt;&lt;/div&gt;
&lt;div lang="en" style="line-height: 0.26in; margin-bottom: 0.1in; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 115%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;span style="font-size: large;"&gt;&lt;i&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span lang="en"&gt;Some of the p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;lugins Grunt can enjoy.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-coffee" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="CoffeeScript" src="http://gruntjs.com/img/logo-coffeescript.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-handlebars" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="Handlebars" src="http://gruntjs.com/img/logo-handlebars.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-jade" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="Jade" src="http://gruntjs.com/img/logo-jade.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-jshint" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="JSHint" src="http://gruntjs.com/img/logo-jshint.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-less" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="Less" src="http://gruntjs.com/img/logo-less.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-requirejs" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="Require.js" src="http://gruntjs.com/img/logo-requirejs.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-sass" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;span class="logo"&gt;&lt;img alt="Sass" src="http://gruntjs.com/img/logo-sass.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="logo" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;a class="technology" href="https://npmjs.org/package/grunt-contrib-stylus" style="background-color: white; clear: both; color: #0088cc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25.59375px; text-align: start; text-decoration: none;"&gt;&lt;img alt="Stylus" src="http://gruntjs.com/img/logo-sylus.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;i&gt;&lt;span style="font-size: large;"&gt;Some of the big IT companies that uses grunt..&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;i&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;span class="logo"&gt;&lt;img alt="Twitter" src="http://gruntjs.com/img/logo-twitter.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="jQuery" src="http://gruntjs.com/img/logo-jquery.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Adobe" src="http://gruntjs.com/img/logo-adobe.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Modernizr" src="http://gruntjs.com/img/logo-modernizr.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Bocoup" src="http://gruntjs.com/img/logo-bocoup.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Filament Group" src="http://gruntjs.com/img/logo-fg.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Sauce Labs" src="http://gruntjs.com/img/logo-saucelabs.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;span class="logo"&gt;&lt;img alt="Bitovi" src="http://gruntjs.com/img/logo-bitovi.jpg" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle; width: 174.75px;" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;span style="color: black;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;span lang="en"&gt;and Below is the starter guide provided by grunt official
website to keep you jump started.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 115%; margin-bottom: 0.14in; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;have fun in grunting.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.14in;"&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;span style="color: #6f5a40;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: x-large;"&gt;&lt;span lang="en"&gt;&lt;i&gt;&lt;u&gt;Getting
started:&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="line-height: 0.26in; margin-bottom: 0.1in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #6f5a40;"&gt;Grunt
and Grunt plugins are installed and managed via&amp;nbsp;&lt;/span&gt;&lt;a href="https://npmjs.org/"&gt;&lt;span style="color: #0088cc;"&gt;&lt;span style="text-decoration: none;"&gt;npm&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #6f5a40;"&gt;,
the&amp;nbsp;&lt;/span&gt;&lt;a href="http://nodejs.org/"&gt;&lt;span style="color: #0088cc;"&gt;&lt;span style="text-decoration: none;"&gt;Node.js&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;package
manager.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="border: 1px solid #e1e1e8; line-height: 0.26in; margin-bottom: 0.1in; padding: 0.02in 0.04in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;&lt;span style="color: #6f5a40;"&gt;Grunt
0.4.x requires Node.js version&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="background: #f7f7f9;"&gt;&amp;gt;=
0.8.0&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;em&gt;&lt;span style="color: #6f5a40;"&gt;.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
&lt;span style="color: #6f5a40;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: large;"&gt;Installing
the CLI&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style="line-height: 0.26in; margin-bottom: 0.1in;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="color: #6f5a40; font-family: Georgia, Times New Roman, serif;"&gt;In
order to get started, you'll want to install Grunt's command line
interface (CLI) globally. You may need to use sudo (for OSX, *nix,
BSD etc) or run your command shell as Administrator (for Windows) to
do this.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="western" style="background: #f5f5f5; border: none; line-height: 0.21in; margin-bottom: 0.1in; padding: 0in;"&gt;&lt;code class="western"&gt;&lt;span style="color: #f8f8f8;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;span style="background: #181818;"&gt;npm install -g grunt-cli&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style="border: 1px solid #e1e1e8; line-height: 0.26in; margin-bottom: 0.1in; padding: 0.02in 0.04in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #6f5a40;"&gt;This
will put the&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;grunt&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;command
in your system path, allowing it to be run from any directory.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="border: 1px solid #e1e1e8; line-height: 0.26in; margin-bottom: 0.1in; padding: 0.02in 0.04in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #6f5a40;"&gt;Note
that installing&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;grunt-cli&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;does
not install the Grunt task runner! The job of the Grunt CLI is
simple: run the version of Grunt which has been installed next to
a&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;Gruntfile&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;.
This allows multiple versions of Grunt to be installed on the same
machine simultaneously.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 class="western" style="line-height: 0.42in; margin-bottom: 0.1in; margin-top: 0in;"&gt;
&lt;span style="color: #6f5a40;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: large;"&gt;How
the CLI works&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style="border: 1px solid #e1e1e8; line-height: 0.26in; margin-bottom: 0.1in; padding: 0.02in 0.04in;"&gt;
&lt;br /&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #6f5a40;"&gt;Each
time&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;grunt&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;is
run, it looks for a locally installed Grunt using
node's&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;require()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;system.
Because of this, you can run&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;grunt&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;&amp;nbsp;from
any subfolder in your project.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="border: 1px solid #e1e1e8; line-height: 0.26in; margin-bottom: 0.1in; padding: 0.02in 0.04in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;span style="color: #6f5a40;"&gt;If
a locally installed Grunt is found, the CLI loads the local
installation of the Grunt library, applies the configuration from
your&amp;nbsp;&lt;/span&gt;&lt;code class="western"&gt;&lt;span style="color: #dd1144;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #f7f7f9;"&gt;Gruntfile&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #6f5a40;"&gt;,
and executes any tasks you've requested for it to run.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: 0.26in; margin-bottom: 0.1in;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;em&gt;&lt;span style="color: #6f5a40;"&gt;To
really understand what is happening,&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;em&gt;&lt;a href="https://github.com/gruntjs/grunt-cli/blob/master/bin/grunt"&gt;&lt;span style="color: #0088cc;"&gt;&lt;span style="text-decoration: none;"&gt;read
the code&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="color: #6f5a40;"&gt;.
It's very short.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 class="western" style="line-height: 0.42in; margin-bottom: 0.1in; margin-top: 0in;"&gt;
&lt;span style="color: #6f5a40; font-family: Georgia, Times New Roman, serif; font-size: large;"&gt;Further reading can be dine in at&lt;/span&gt;&lt;span style="color: #6f5a40; font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style="color: #6f5a40; font-family: Georgia, Times New Roman, serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href="http://gruntjs.com/getting-started"&gt;&lt;span style="font-size: large;"&gt;http://gruntjs.com/getting-started&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/3633226551574809121/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/10/grunt-command-line-javascript-task.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3633226551574809121" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3633226551574809121" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/10/grunt-command-line-javascript-task.html" rel="alternate" title="Grunt - A command line JavaScript task runner. " type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEiqLpaRc9xMgEt5jpNBaoOgVfpWtAPNt7c0jiESN5qitv88QwVP8aJbfpLuPkwhQiS6ov44iMvdvqYFAs7eZm3x2tcGhL-Ynff1lvXAsl0KupHYkMF0SW7yFLTKp_jr_SuN74cXTPdhw/s72-c/grunt.png" width="72"/><thr:total>0</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-6916461292952682332</id><published>2013-10-02T10:47:00.001+05:30</published><updated>2014-05-26T12:30:07.706+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server Management Studio."/><category scheme="http://www.blogger.com/atom/ns#" term="sql-tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Transact-sql"/><title type="text">Tips to increase your Transact-SQL efficiency Part 2</title><content type="html">&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;First Part :&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;a href="http://www.developerscloud.org/2013/09/tips-to-increase-your-transact-sql.html" style="line-height: 150%;"&gt;http://www.developerscloud.org/2013/09/tips-to-increase-your-transact-sql.html&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;11. Use 'BETWEEN' operator instead of
&amp;gt;= and &amp;lt;= operators to select data in range.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;12. Wisely use the EXISTS, IN clauses in
sub query select statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- IN has the
slowest performance as data is filtered between the range.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- IN is efficient
when most of the filter criteria is in the sub-query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- EXISTS is
efficient when most of the filter criteria is in the main query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;13. Avoid 'NOT IN' in select clause.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Because when we use
“NOT IN” in SQL queries, the query optimizer uses 'Nested table scan' technique&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;to perform the
activity&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;14. Use Stored Procedure, functions(UDF)
and views instead of heavy-duty queries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- The application
must first convert the binary value into a character string (which doubles its
size, thus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;increasing network
traffic and taking more time) before it can be sent to the server. And when the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;server receives the
character string, it then has to convert it back to the binary format (taking
even&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;more time). This
can reduce network traffic as your client will send to the server only stored&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;procedures,
function or view name (perhaps with some parameters) instead of large
heavy-duty&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;queries text. The
use of SP, UDF or view also improves DB security as this can be used to
facilitate&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;permission
management. You can restrict user access to table columns they should not see.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;15. Use 'SET NOCOUNT ON' statement into
your stored procedures or UDF.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Bydefault the SQL
server returns the number of affected rows for each query in SP or UDF&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;functionality. If
the SP or UDF involves lots of insert,update or delete statement (DML scripts)
then this&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;messeging mechanism
will consume lots of I/O resource as for every query execution it send back the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;number or rows
affected.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;'SET NOCOUNT ON'
statement at the begining of SP or UDF body skips the messeging and never
return&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;how many rows
altered through DML scripts.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;16. Use constraints instead of triggers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Constraints are
logical conditions setup on table which allow/restrict the operation on table.
Where as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;Triggers are special
block of program (like Stored procedure) which get execute on certain action on&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;table like
insert,update, delete. Triggers and constraints both are used to maintain the
integrity of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;database but
constraints have more benefits over triggers as it uses very less resources.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;17. Use table variable over temp table
object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Use table variables
objects instead of temporary tables object. Table variable object declare with
'@'&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;symbol where as temp
table object is declare with '#' sign as the suffix of table name.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;#tempTable -&amp;gt;
Temp. table object&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;@tempTable -&amp;gt;
in-memory table variable&amp;nbsp;&lt;/span&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;A table variable is
created in memory, and so performs slightly better than #temp tables. Also&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;because there is even
less locking and logging in a table variable.&amp;nbsp;&lt;/span&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Table variables are
automatically cleared when the procedure or function goes out of scope, so you&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;don't have to
remember to drop or clear the data. The SQL server mentain very less log
related table&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;variable and log
activity is truncated immediately.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;while #temp table
log activity persists until the log hits a checkpoint, is manually truncated,
or when&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;the server restarts&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;18. use UNION ALL statement instead of
UNION, whenever possible&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;The UNION ALL
statement is much faster than UNION, because UNION ALL statement does not look
for&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;duplicate rows,
while the UNION statement does look for duplicate rows, whether they exist or
not&lt;/span&gt;&lt;br /&gt;
&lt;b style="line-height: 150%;"&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b style="line-height: 150%;"&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;19. Use DISTINCT only whenever it is
neccessery to use.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;DISTINCT clause
filter the result for unique combination of all columns in result rows which
results in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;some performance
degradation. You should use this clause only when it is absolutely necessary
and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;should be used with
minimum columns on table.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;20. Use Indexes on table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Database indexes
are similar to those you can find in libraries. They allow the database to find
the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;requested
information faster, just like a library index will allow a reader to find what
they’re looking for&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;without loosing
time.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;An Index can be
created on a single column or a combination of columns in a database table. A
table&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;index is a database
structure that arranges the values of one or more columns in a database table
in&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;specific order.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;b&gt;&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Conclusion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;"&gt;
&lt;span style="line-height: 150%;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;There are many more
performance improvement techniques in SQL script writing. But the given above&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;are very generic
techniques which can be adopted and implemented in our everyday scripts and can&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif; line-height: 150%;"&gt;make a habit of
writing optimized sql scripts&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/6916461292952682332/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/10/tips-to-increase-your-transact-sql.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6916461292952682332" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/6916461292952682332" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/10/tips-to-increase-your-transact-sql.html" rel="alternate" title="Tips to increase your Transact-SQL efficiency Part 2" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.4764182 76.949115699999979 13.4667792 78.240009699999987</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2567759334691476981</id><published>2013-09-19T22:04:00.000+05:30</published><updated>2014-05-26T12:30:07.692+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PostgreSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server Management Studio."/><category scheme="http://www.blogger.com/atom/ns#" term="sql-tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Transact-sql"/><title type="text"> Tips to increase your Transact-SQL efficiency Part 1.</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Given below are little known tips that you can use to ensure your Transact-SQL queries are performing in the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;most efficient manner possible.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; margin: 0px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7cZocfRhtUgwh4foz586y524lkopeSk_X1lU3Br58K-E4nFVd-DD3sk5Yx9aFVXaMHNCyTKjNQbA1g6JLFnJw3-aIcXS1mNTBV4ikaR6VW6FEA3D4jBAifLcfFL1shyphenhyphenv6WKBcc8LPOA/s1600/Transcact-Sql-Tips-and-Tricks.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Transact-sql-Tips-and-Tricks" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7cZocfRhtUgwh4foz586y524lkopeSk_X1lU3Br58K-E4nFVd-DD3sk5Yx9aFVXaMHNCyTKjNQbA1g6JLFnJw3-aIcXS1mNTBV4ikaR6VW6FEA3D4jBAifLcfFL1shyphenhyphenv6WKBcc8LPOA/s1600/Transcact-Sql-Tips-and-Tricks.jpg" style="cursor: move;" title="Transact-sql-Tips-and-Tricks" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;1.&lt;/b&gt; Avoid '*' in select query.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Restrict the queries result set by returning only the particular columns from the table and not all the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;table's columns. The sql query becomes faster if you use the actual column names in SELECT&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;statement instead of than '*'.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;2. &lt;/b&gt;Avoid COUNT(*) in select statement to check the existence of records in table.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Instead use IF EXISTS() to check records.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Write the query as:&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;IF EXISTS (SELECT * FROM table_name WHERE column_name = ‘xxx’)&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Instead of :&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;SELECT COUNT(*) FROM table_name WHERE column_name = ‘xxx’&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;3.&lt;/b&gt; Use alternate of SELECT COUNT(*).&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Use an alternative way instead of the SELECT COUNT(*) statement to count the number &amp;nbsp; &amp;nbsp; of records in&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;table.&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- SELECT COUNT(*) statement makes a full table scan to return the total table's row &amp;nbsp; &amp;nbsp; &amp;nbsp; count which can&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;take an extremely long time for large tables.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Use alternate query to achieve the same&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;SELECT rows FROM sysindexes WHERE id = OBJECT_ID('table_name') AND indid &amp;lt; 2&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;4&lt;/b&gt;. Use TOP keyword or the SET ROWCOUNT to fetch first Nth row from table.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- TOP or SET ROWCOUNT clause restricts the number of result and returns the smaller &amp;nbsp;result set. This&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;helps to reduce the data trafic between server and client.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;5.&lt;/b&gt; Use ORDER BY clause with Primary or Indexed column of table&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Fetching the result set order by primary column or Indexed column added big performance benefits&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;as SQL server don't have to perform the extra overheads to rearrange data. Also try to implement the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;ORDER BY clause on Integer column instead of VARCHAR or STRING column.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;6.&lt;/b&gt; Avoid ORDER BY on multiple columns.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Implementing the order by clause on multiple column degrade the query performance as the SQL&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;server has to run data sorting algorithm independently on each column or result set.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;7. &lt;/b&gt;Use 'WHERE' instead of 'HAVING'&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- 'HAVING' clause is used to filter the rows after all the rows are selected. It is just like a filter who filter&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;data from selected list.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- 'WHERE' clause work along with select statement to select only respective rows Do not use HAVING&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;clause for any other purposes.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;8.&lt;/b&gt; Avoid Mathematical expression on column.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;Avoid mathematical expression on column in WHERE clause.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;We should avoid computation on columns as far as possible and hence we will get an index scan&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;instead of a seek&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- For example : SELECT * FROM Orders WHERE OrderID*3 = 33000&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;degrade the performace as query performing calculation on column&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;9.&lt;/b&gt; Minimize the number of subquery block in your query.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;The more number of sub query makes the execution plan complicated. Keep the script logic as simple&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Georgia, 'Times New Roman', serif;"&gt;as possible.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;b&gt;10.&lt;/b&gt; Use 'LIKE' clause in query instead of SUBSTR() function.&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;The SUBSTR() function first extract the value from data and then matching result get added in result&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;set. LIKE clause has potential great advantage over SUBSTR() whenever string data need to compare&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Write the query as:&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;SELECT id, first_name, age FROM student_details WHERE first_name LIKE 'ABC%'&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;- Instead of :&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;SELECT id, first_name, age FROM student_details WHERE SUBSTR(first_name,1,3) = 'ABC';&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;My next post will add 10 more tips to increase your transact-sql efficiency... wait for it.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;Part 2 :-&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://www.developerscloud.org/2013/10/tips-to-increase-your-transact-sql.html"&gt;http://www.developerscloud.org/2013/10/tips-to-increase-your-transact-sql.html&lt;/a&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/2567759334691476981/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/09/tips-to-increase-your-transact-sql.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2567759334691476981" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2567759334691476981" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/09/tips-to-increase-your-transact-sql.html" rel="alternate" title=" Tips to increase your Transact-SQL efficiency Part 1." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7cZocfRhtUgwh4foz586y524lkopeSk_X1lU3Br58K-E4nFVd-DD3sk5Yx9aFVXaMHNCyTKjNQbA1g6JLFnJw3-aIcXS1mNTBV4ikaR6VW6FEA3D4jBAifLcfFL1shyphenhyphenv6WKBcc8LPOA/s72-c/Transcact-Sql-Tips-and-Tricks.jpg" width="72"/><thr:total>0</thr:total><georss:featurename>Bangalore, Karnataka, India</georss:featurename><georss:point>12.9715987 77.594562699999983</georss:point><georss:box>12.9715987 77.594562699999983 12.9715987 77.594562699999983</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-51034721764383767</id><published>2013-09-04T00:20:00.000+05:30</published><updated>2013-09-04T00:30:31.371+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel import in sql"/><category scheme="http://www.blogger.com/atom/ns#" term="importing .xls in sql."/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Update sql statement"/><title type="text">Importing the Excel into the Database (SQL).</title><content type="html">&lt;h3&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-weight: normal;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;We can import the excel into the Database by using the following query.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-weight: normal;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;Suppose we have a table named as &lt;/span&gt;Address_Temp &lt;span style="font-weight: normal;"&gt;and it has three column.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-weight: normal; text-align: justify;"&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif; font-size: small; font-weight: normal;"&gt;&lt;div style="text-align: justify;"&gt;
1. Name&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
2. State&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
3. Zip&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
Here we need to update the zip code with the new value and to update that zip code we need to check the excel.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
So we can use that excel in our sql server by importing it using the following command.&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;div style="text-align: start;"&gt;
Its very easy query but make sure that it won't work in following two scenarios.&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
1. The file need to be in local machine.&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
2. The file should not be password protected.&lt;/div&gt;
&lt;div style="text-align: start;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/h3&gt;
&lt;pre class="lang-sql prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"&gt;&lt;code style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Courier New, Courier, monospace;"&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Declare&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ZipTemp NVarchar&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;255&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;   

&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;set&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ZipTemp &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;SELECT&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;*&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;FROM&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;OPENROWSET&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'Microsoft.Jet.OLEDB.4.0'&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'Excel 8.0;Database=C:\Addresses.xls;IMEX=1'&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'SELECT top 1 ZIP FROM [Sheet1$] where ZIP = "328301"'&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;))&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Update&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;dbo&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;].[&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;Addresses_Temp&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;]&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;set&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; State &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'CA'&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; Zip &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;ZipTemp 
&lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;where&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; Zip &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;'328301'&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;`&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;span style="font-size: small; font-weight: normal;"&gt;&lt;span style="font-family: Georgia, Times New Roman, serif;"&gt;&lt;div style="text-align: justify;"&gt;
Here IMEX stands for mixed data type.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/51034721764383767/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/09/importing-excel-into-database-sql.html#comment-form" rel="replies" title="1 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/51034721764383767" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/51034721764383767" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/09/importing-excel-into-database-sql.html" rel="alternate" title="Importing the Excel into the Database (SQL)." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-40995327091774804</id><published>2013-09-01T20:00:00.000+05:30</published><updated>2013-09-01T20:14:59.062+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming-Basics."/><category scheme="http://www.blogger.com/atom/ns#" term="star pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="star pattern in c#"/><title type="text">Simple Pyramid in Csharp .Net</title><content type="html">&amp;nbsp; &amp;nbsp; *&lt;br /&gt;
&amp;nbsp; ***&lt;br /&gt;
&amp;nbsp;*****&lt;br /&gt;
*******&lt;br /&gt;
&lt;b&gt;Updated&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
As you can see below the code for simple pyramid has two for loop nested in each other.&lt;br /&gt;
So for each row it enter, it increment the counter and draw the star against forming a pyramid like figure. You can use &amp;nbsp;different special counter, play with the loop and enjoy the coding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Simple Pyramid in Csharp&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; class &lt;span style="color: #6fa8dc;"&gt;Program&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; static void&lt;/span&gt; Main(&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] args)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;int &lt;/span&gt;row, col = 0, n = 5;&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;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;for &lt;/span&gt;(row = 0; row &amp;lt;= n; row++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;for &lt;/span&gt;(&lt;span style="color: blue;"&gt;int &lt;/span&gt;r = 0; r &amp;lt;= row; r++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;Console&lt;/span&gt;.Write(&lt;span style="color: red;"&gt;" "&lt;/span&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;for &lt;/span&gt;(col = 1; col &amp;lt;= 2 * row - 1; col++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;Console&lt;/span&gt;.Write(&lt;span style="color: red;"&gt;"*"&lt;/span&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: red;"&gt;"\n"&lt;/span&gt;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;Console&lt;/span&gt;.ReadLine();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output&lt;/b&gt;:&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;Original posted on 01 March 2013&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhb9-yKLciglGktUTdJNshCy7FW_rd7W3_TJ2HCZZtWcVBZUG5IYu3RcMgL1x3tdDCYeMShyphenhyphenhbC_LZJhyLAK0mJjLW50dl0QvRvMHEUom2eyvrppVNy8xZiww4OgpeaXUgLgFz1TAnlg/s1600/pyramid+of+stars.PNG" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhb9-yKLciglGktUTdJNshCy7FW_rd7W3_TJ2HCZZtWcVBZUG5IYu3RcMgL1x3tdDCYeMShyphenhyphenhbC_LZJhyLAK0mJjLW50dl0QvRvMHEUom2eyvrppVNy8xZiww4OgpeaXUgLgFz1TAnlg/s640/pyramid+of+stars.PNG" width="640" /&gt;&lt;/a&gt;


&lt;br /&gt;
&lt;form action="http://feedburner.google.com/fb/a/mailverify" method="post" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=developerscloud/KqGc', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" style="background-color: #fdeef4; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 2px solid #ccc; padding: 3px; text-align: center;" target="popupwindow"&gt;
&lt;div style="font-family: 'Times New Roman' , Times, serif; font-size: medium; font-weight: bold;"&gt;
If you like this post, please subscribe us &lt;/div&gt;
Enter your email address:&lt;br /&gt;
&lt;input name="email" style="width: 200px;" type="text" /&gt;&lt;br /&gt;
&lt;input name="uri" type="hidden" value="developerscloud/KqGc" /&gt;&lt;input name="loc" type="hidden" value="en_US" /&gt;&lt;input style="background-color: white; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-color: #000000; border-style: solid; border-top-left-radius: 5px; border-top-right-radius: 5px; font-family: 'Times New Roman' , Times, serif; font-size: medium; font-weight: bold; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;" type="submit" value="Subscribe" /&gt;
&lt;/form&gt;
&lt;div id="fb-root"&gt;
&lt;/div&gt;
&lt;script&gt;(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_IN/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;


&lt;br /&gt;
&lt;div class="fb-comments" data-href="http://www.developerscloud.org/2013/03/simple-pyramid-in-csharp.html" data-num-posts="10" data-width="470"&gt;
&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/40995327091774804/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/03/simple-pyramid-in-csharp.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/40995327091774804" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/40995327091774804" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/03/simple-pyramid-in-csharp.html" rel="alternate" title="Simple Pyramid in Csharp .Net" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhb9-yKLciglGktUTdJNshCy7FW_rd7W3_TJ2HCZZtWcVBZUG5IYu3RcMgL1x3tdDCYeMShyphenhyphenhbC_LZJhyLAK0mJjLW50dl0QvRvMHEUom2eyvrppVNy8xZiww4OgpeaXUgLgFz1TAnlg/s72-c/pyramid+of+stars.PNG" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-1027607443854707384</id><published>2013-08-31T01:03:00.003+05:30</published><updated>2019-09-08T15:36:53.456+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net failure"/><category scheme="http://www.blogger.com/atom/ns#" term="dot net failure."/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="News"/><title type="text">Rise, Fall and Struggle of Microsoft .Net [Article]</title><content type="html">&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Some years ago there was a guy named Vinod Khosla from IIT- Delhi and Stanford. This awesome guy co-founded Sun Microsystem.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Sun Microsystem as we all know is fully undertaken by Oracle. But Sun Microsystem came up with a fantastic language called Java. This language was becoming too famous and popular since its birth and by 90's its JAVA, JAVA and only JAVA everywhere.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Microsoft who was struggling with the PC market at that time want's to capture the opportunity and Microsoft was building everything like the OS&amp;nbsp; and Office and Java was taking the credit of so called windows application so then MICROSOFT plans to launch its own language.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Yes, so think back a decade or so ago. As you may recall, .Net was supposed to be much more than just the next version of Windows DNA or COM+ or COM. It was supposed to destroy Java, extend the Windows platform, and secure the Microsoft monopoly for another decade or two.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;But then what happened after the DOT COM BUBBLE.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;b&gt;Rise&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Like many Microsoft "innovations," .Net was a copy (embrace) and improvement (extend) of someone else's technology -- in this case, Java. Microsoft sought to extinguish Java by being a better Java; in a number of ways, it succeeded. C# cleaned up some Java mistakes, such as checked exceptions, the need to create an accessor, and mutator methods. The .Net VM had a cleaner bytecode setup.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;So yes again like the OS they have a better language now so In some way it started leading.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;But Unlikely and unfortunately the rise of DoT net has eaten Microsoft's most successful corporate IT development environment, Visual Basic.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;.Net's rise is all about Visual Basic's decline.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Visual Basic .Net didn't have much to recommend it. There wasn't enough documentation, so you had to learn C# anyhow. The API was the same between them, so why not just stick with C#? The corollary was that once you figured out C#, you also knew Java.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;So C# .Net are on top then what happened for its fall and failure&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;Azure failed, its not making noise and business as it have to.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot;, arial, helvetica, sans-serif;"&gt;Windows phone platform has mediocre success even after 3 years of launch.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot;, arial, helvetica, sans-serif;"&gt;Windows 8 is complete failure we all know that.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;As users move from the desktop to the tablet and set top to view their pornography, cat pictures, and Netflix movies, the economics that caused folks to "target" Windows are abating.&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot;, arial, helvetica, sans-serif;"&gt;This results in a downward spiral for 'Softies hoping that writing to .Net is enough.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;So in a Internet crazy market where users are more demanding while Microsoft is exactly opposite i.e. slow and lethargic. .Net is complete failure and if you are a .Net developer don't feel bad and start learning other languages like Node.js and Java.&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;"&gt;And the struggle is still there for .Net which is of no use until they have innovation that is truly innovative.&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/1027607443854707384/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/08/rise-fall-and-struggle-of-microsoft-net.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/1027607443854707384" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/1027607443854707384" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/08/rise-fall-and-struggle-of-microsoft-net.html" rel="alternate" title="Rise, Fall and Struggle of Microsoft .Net [Article]" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-2764881609794021544</id><published>2013-08-22T14:53:00.000+05:30</published><updated>2013-08-22T14:53:57.555+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Advance Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Fax"/><category scheme="http://www.blogger.com/atom/ns#" term="Faxing services"/><category scheme="http://www.blogger.com/atom/ns#" term="Sending-Fax-Code VB"/><category scheme="http://www.blogger.com/atom/ns#" term="VB"/><title type="text">Send a Fax in windows using faxcomexlib and TAPI  in VB code .Net</title><content type="html">&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0K2_KqFzUaAXQmkue2tQMuMwcZLX685Vvevq-9iRgNZ-8of6LBzSRp8Bk8vO8T_N3dWBpqDAN_FRX0DXORGSC1ef-9V6bZojnB067HcGMolox3NpTd5Z7oUH0XcGnR9haBRfR3b0CyGU/s1600/fax.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0K2_KqFzUaAXQmkue2tQMuMwcZLX685Vvevq-9iRgNZ-8of6LBzSRp8Bk8vO8T_N3dWBpqDAN_FRX0DXORGSC1ef-9V6bZojnB067HcGMolox3NpTd5Z7oUH0XcGnR9haBRfR3b0CyGU/s1600/fax.jpg" /&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;An application that provides sending fax from faxmodem, connected to the computer, will be explained in the following post.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white;"&gt;We can use Telephony Application Programming Interface (TAPI) and the Fax Service Extended Component Object Model (COM) API to send fax.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="line-height: 20px; padding-bottom: 15px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The fax service is a Telephony Application Programming Interface (TAPI)-compliant system service that allows users on a network to send and receive faxes from their desktop applications. The service is available on computers that are running Windows&amp;nbsp;2000 and later. The fax service provides the following features:&lt;/span&gt;&lt;/div&gt;
&lt;ul style="line-height: 20px; list-style-position: inside; margin: 5px 0px 20px; padding: 0px 0px 0px 1px;"&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Transmitting faxes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Receiving faxes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Flexible routing of inbound faxes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Outbound routing&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Outgoing fax priorities&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Archiving sent and received faxes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Server and device configuration management&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Client use of server devices for sending and receiving faxes&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Event logging&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Activity logging&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Delivery receipts&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Security permissions&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 20px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The following Microsoft Visual Basic code example sends a fax. Note that if you were to convert this Visual Basic example to Microsoft Visual Basic Scripting Edition (VBScript), you would have to use an enumeration constant instead of the value fptHigh.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 20px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 20px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style="font-family: Consolas, Courier, monospace; font-size: 14px; line-height: 20px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;    Private Sub Form_Load()
        Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
        Dim objFaxServer As New FAXCOMEXLib.FaxServer
        Dim objSender As FAXCOMEXLib.FaxSender
        Dim JobID As Object&lt;/pre&gt;
&lt;pre style="font-family: Consolas, Courier, monospace; font-size: 14px; line-height: 20px; overflow: auto; padding: 5px; word-wrap: normal;"&gt;&lt;a name='more'&gt;&lt;/a&gt;        'Error handling
        On Error GoTo Error_Handler

        'Connect to the fax server
        objFaxServer.Connect("")

        'Set the fax body
        objFaxDocument.Body = "c:\Docs\Body.txt"

        'Name the document
        objFaxDocument.DocumentName = "My First Fax"

        'Set the fax priority
        objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptHIGH


        'Add the recipient with the fax number 12225550100
        objFaxDocument.Recipients.Add("12225550100", "Bud")

        'Choose to attach the fax to the fax receipt
        objFaxDocument.AttachFaxToReceipt = True

        'Set the cover page type and the path to the cover page
        objFaxDocument.CoverPageType = FAXCOMEXLib.FAX_COVERPAGE_TYPE_ENUM.fcptSERVER
        objFaxDocument.CoverPage = "generic"

        'Provide the cover page note
        objFaxDocument.Note = "Here is the info you requested"

        'Provide the address for the fax receipt
        objFaxDocument.ReceiptAddress = "someone@example.com"

        'Set the receipt type to email
        objFaxDocument.ReceiptType = FAXCOMEXLib.FAX_RECEIPT_TYPE_ENUM.frtMAIL

        'Specify that the fax is to be sent at a particular time
        objFaxDocument.ScheduleType = FAXCOMEXLib.FAX_SCHEDULE_TYPE_ENUM.fstSPECIFIC_TIME
        'CDate converts the time to the Date data type
        objFaxDocument.ScheduleTime = CDate("4:35:47 PM")

        objFaxDocument.Subject = "Today's fax"

        'Set the sender properties.
        objFaxDocument.Sender.Title = "Mr."
        objFaxDocument.Sender.Name = "Bob"
        objFaxDocument.Sender.City = "Cleveland Heights"
        objFaxDocument.Sender.State = "Ohio"
        objFaxDocument.Sender.Company = "Microsoft"
        objFaxDocument.Sender.Country = "USA"
        objFaxDocument.Sender.Email = "someone@microsoft.com"
        objFaxDocument.Sender.FaxNumber = "12165555554"
        objFaxDocument.Sender.HomePhone = "12165555555"
        objFaxDocument.Sender.OfficeLocation = "Downtown"
        objFaxDocument.Sender.OfficePhone = "12165555553"
        objFaxDocument.Sender.StreetAddress = "123 Main Street"
        objFaxDocument.Sender.TSID = "Office fax machine"
        objFaxDocument.Sender.ZipCode = "44118"
        objFaxDocument.Sender.BillingCode = "23A54"
        objFaxDocument.Sender.Department = "Accts Payable"

        'Save sender information as default
        objFaxDocument.Sender.SaveDefaultSender()

        'Submit the document to the connected fax server
        'and get back the job ID.

        JobID = objFaxDocument.ConnectedSubmit(objFaxServer)

        MsgBox("The Job ID is :" &amp;amp; JobID(0))

        objFaxServer.Disconnect()

        Exit Sub

Error_Handler:
        'Implement error handling at the end of your subroutine. This 
        ' implementation is for demonstration purposes
        MsgBox("Error number: " &amp;amp; Hex(Err.Number) &amp;amp; ", " &amp;amp; Err.Description)

    End Sub
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #454545; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 14px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;strong style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"&gt;Note&lt;/strong&gt;&lt;span style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"&gt;&amp;nbsp;&amp;nbsp;On Windows&amp;nbsp;Vista, the program must have write access to the archive folder or it will generate an exception.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms684508(v=vs.85).aspx" target="_blank"&gt;Reference&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</content><link href="http://developerscloud.blogspot.com/feeds/2764881609794021544/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/08/send-fax-in-windows-using-faxcomlib-and.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2764881609794021544" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/2764881609794021544" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/08/send-fax-in-windows-using-faxcomlib-and.html" rel="alternate" title="Send a Fax in windows using faxcomexlib and TAPI  in VB code .Net" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0K2_KqFzUaAXQmkue2tQMuMwcZLX685Vvevq-9iRgNZ-8of6LBzSRp8Bk8vO8T_N3dWBpqDAN_FRX0DXORGSC1ef-9V6bZojnB067HcGMolox3NpTd5Z7oUH0XcGnR9haBRfR3b0CyGU/s72-c/fax.jpg" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-3666328797573751838</id><published>2013-08-16T00:00:00.000+05:30</published><updated>2019-03-19T11:06:22.936+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Object oriented programming"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="oops-basics."/><category scheme="http://www.blogger.com/atom/ns#" term="Programming-Basics."/><title type="text">What is OOP ? Basic Concepts.</title><content type="html">&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;What is OOP?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Object oriented programming is a type of programming paradigm based around programming classes and instances of classes called objects. These can be objects that appear on the screen (e.g., pictures, textboxes, etc.) or are part of the programming (e.g. actors, connections, particles, etc.)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;What is an Object?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;An object is merely a collection of related information and functionality. An object can be something that has a corresponding real-world manifestation (such as an employee object), something that has some virtual meaning (such as a window on the screen), or just some convenient abstraction within a program (a list of work to be done, for example).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;An object is composed of the data that describes the object and the operations that can be performed on the object. Information stored in an employee object, for example, might be various identification information (name, address), work information (job title, salary), and so on. The operations performed might include creating an employee paycheck or promoting an employee.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;When creating an object-oriented design, the first step is to determine what the objects are. When dealing with real-life objects, this is often straightforward, but when dealing with the virtual world, the boundaries become less clear. That’s where the art of good design shows up, and it’s why good architects are in such demand.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;What is a Class?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Structures are very similar to Classes in that they collect data together. However, classes extend this idea and are made from two different things:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Attributes - things that the object stores data in, generally variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Methods - Functions and Procedures attached to an Object and allowing the object to perform actions&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Let's take a look at the following example:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: blue; font-family: arial, helvetica, sans-serif;"&gt;class car&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;private &lt;/span&gt;maxSpeed as integer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;public &lt;/span&gt;fuel as integer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;public sub &lt;/span&gt;setSpeed(byVal s as integer)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; maxSpeed = s&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt; end sub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;public function&lt;/span&gt; getSpeed() as integer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color: blue;"&gt;return &lt;/span&gt;maxSpeed&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; end function&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &lt;span style="color: blue;"&gt;public sub&lt;/span&gt; refuel(byVal x as integer)&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: blue;"&gt; console.writeline&lt;/span&gt;("pumping gas!")&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; fuel = fuel + x&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt; end sub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt; public function&lt;/span&gt; getFuel() as integer&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; return fuel&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; end function&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span style="color: blue;"&gt; public sub&lt;/span&gt; drive()&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; fuel = fuel - 1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; end sub&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: arial, helvetica, sans-serif;"&gt;end class&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;two attributes: maxSpeed, fuel&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;four methods&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;three procedures: setSpeed, refuel, drive&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;one function: getSpeed&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; Attributes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;These store information about the object. In the example above we store the fuel and maxSpeed. The attributes are attached to the classes, and if there are several instances (objects) of the classes then each will store its own version of these variables. Note that instead of the usual dim, there is the word private or public, we'll cover that in the encapsulation section.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Methods&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;Unlike structures, OOP allows you to attach functions and procedures to your code. This means that not only can you store details about you car (the attributes), you can also allow for sub routines such as drive() and refuel, which are attached to each class.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link href="http://developerscloud.blogspot.com/feeds/3666328797573751838/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/02/what-is-oop-basic-concepts.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3666328797573751838" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/3666328797573751838" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/02/what-is-oop-basic-concepts.html" rel="alternate" title="What is OOP ? Basic Concepts." type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8662066529793241011.post-8001416115478788853</id><published>2013-08-08T00:54:00.000+05:30</published><updated>2013-08-08T00:39:31.379+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="3 tier architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="advance C#"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="n tier architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="OOPS"/><category scheme="http://www.blogger.com/atom/ns#" term="three tier architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="three tier architecture in csharp"/><category scheme="http://www.blogger.com/atom/ns#" term="three tier architecture sample code in C#"/><title type="text">Three Tier Architecture : A simple Example/Illustration</title><content type="html">&lt;b&gt;Three Tier Architecture: &lt;/b&gt;Very Easy to understand, the three tier are:&lt;br /&gt;
&lt;br /&gt;
1. Presentation layer&lt;br /&gt;
2. Business Layer&lt;br /&gt;
3. Database Layer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simple Example:&lt;br /&gt;
Lets take example of a Songs and Artist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. DataAccess Layer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Below is a class of Data Access Layer, that has some dummy/fudge data, we only write DataBase calling method in DataAccessLayer.&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:"Table Normal";
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:"";
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:"Calibri","sans-serif";
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:"Times New Roman";
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Linq;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;namespace&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; DataBaseLayer&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataAccessLayer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] ArtistName = { &lt;span style="color: #a31515;"&gt;"Akon"&lt;/span&gt;,
&lt;span style="color: #a31515;"&gt;"Shakira"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Michael_Jackson"&lt;/span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] Shakira = { &lt;span style="color: #a31515;"&gt;"Waka
Waka"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Addicted to you"&lt;/span&gt;,
&lt;span style="color: #a31515;"&gt;"Beautiful Liar"&lt;/span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] Akon = { &lt;span style="color: #a31515;"&gt;"Chammak
Challo"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Lonely"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Dont Matter"&lt;/span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] Michael_Jackson = { &lt;span style="color: #a31515;"&gt;"Beat
It"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Dangerous"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Smooth Criminal"&lt;/span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt;[]
Songs(&lt;span style="color: blue;"&gt;string&lt;/span&gt; ArtistName)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] ArtistSong = &lt;span style="color: blue;"&gt;new&lt;/span&gt;
&lt;span style="color: blue;"&gt;string&lt;/span&gt;[3];&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;int&lt;/span&gt; i = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ArtistName == &lt;span style="color: #a31515;"&gt;"Shakira"&lt;/span&gt;
)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt;
s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Shakira)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;ArtistSong[i] = s; ;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;i++;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ArtistName == &lt;span style="color: #a31515;"&gt;"Akon"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt;
s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Akon)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;ArtistSong[i] = s; ;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;i++;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ArtistName == &lt;span style="color: #a31515;"&gt;"Michael_Jackson"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt;
s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Michael_Jackson)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;ArtistSong[i] = s; ;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;i++;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; ArtistSong;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: inherit;"&gt;2&lt;span style="font-size: small;"&gt;. Business Acces&lt;span style="font-size: small;"&gt;s L&lt;span style="font-size: small;"&gt;ayer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:"Table Normal";
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:"";
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:"Calibri","sans-serif";
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:"Times New Roman";
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Linq;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; DataBaseLayer;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;namespace&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; BusinessLayer&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;BusinessAccessLayer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt;[]
DataCalling(&lt;span style="color: blue;"&gt;string&lt;/span&gt; ArtistName)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;DataAccessLayer&lt;/span&gt; dataAccessLayer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataAccessLayer&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; [] ArtistSongs =
dataAccessLayer.Songs(ArtistName);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; ArtistSongs;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
It only has object i.e. parameters and Stored Procedure Name that are used to call DB, its a wire between DB and View, it only believes in business.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;b&gt;3. Presentation Layer&lt;/b&gt; &lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
It is no where related to database and no link, its only work is to display.&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:"Table Normal";
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:"";
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:"Calibri","sans-serif";
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:"Times New Roman";
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Linq;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; System.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;using&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; BusinessLayer;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: 9.5pt;"&gt;namespace&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; Three_Tier_Architecture&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;PresentationLayer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; flag = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; choice
= &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Main(&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] args)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;while&lt;/span&gt; (flag == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;{&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"Please
Enter the Artist Name, Enter Number"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"Choose
From: \n 1. Shakira \n 2. Akon \n 3. Michael Jackson"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;choice = &lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.ReadLine();&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;flag = CallingBusinessLayer(choice);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"Wanna
Continue (Y/N)"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; Reply = &lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.ReadLine().ToLower();&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (Reply == &lt;span style="color: #a31515;"&gt;"n"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;flag = 1;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;flag = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; CallingBusinessLayer(&lt;span style="color: blue;"&gt;string&lt;/span&gt;
SelectedChoice)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;BusinessAccessLayer&lt;/span&gt; _businessAccessLayer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;BusinessAccessLayer&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] Songs = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (flag == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;switch&lt;/span&gt; (choice)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: #a31515;"&gt;"1"&lt;/span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Songs =
_businessAccessLayer.DataCalling(&lt;span style="color: #a31515;"&gt;"Shakira"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Songs)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"\n
"&lt;/span&gt; + s + &lt;span style="color: #a31515;"&gt;"\n"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: #a31515;"&gt;"2"&lt;/span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Songs =
_businessAccessLayer.DataCalling(&lt;span style="color: #a31515;"&gt;"Akon"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Songs)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"\n
"&lt;/span&gt; + s + &lt;span style="color: #a31515;"&gt;"\n"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: #a31515;"&gt;"3"&lt;/span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Songs =
_businessAccessLayer.DataCalling(&lt;span style="color: #a31515;"&gt;"Michael_Jackson"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; s &lt;span style="color: blue;"&gt;in&lt;/span&gt; Songs)&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515;"&gt;"\n
"&lt;/span&gt; + s +&lt;span style="color: #a31515;"&gt;"\n"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; 0;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
A very simple and effective example. no Jargon's used. &lt;/div&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"&gt;
&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;things should be pretty clear here.&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal"&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;a href="http://sdrv.ms/13wmBHE" target="_blank"&gt;Download Source Code&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link href="http://developerscloud.blogspot.com/feeds/8001416115478788853/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/03/three-tier-architecture-simple.html#comment-form" rel="replies" title="1 Comments" type="text/html"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/8001416115478788853" rel="edit" type="application/atom+xml"/><link href="http://www.blogger.com/feeds/8662066529793241011/posts/default/8001416115478788853" rel="self" type="application/atom+xml"/><link href="http://developerscloud.blogspot.com/2013/03/three-tier-architecture-simple.html" rel="alternate" title="Three Tier Architecture : A simple Example/Illustration" type="text/html"/><author><name>Harshit Rastogi</name><uri>http://www.blogger.com/profile/05746210669381777643</uri><email>noreply@blogger.com</email><gd:image height="16" rel="http://schemas.google.com/g/2005#thumbnail" src="https://img1.blogblog.com/img/b16-rounded.gif" width="16"/></author><thr:total>1</thr:total></entry></feed>