<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4661445452176680301</id><updated>2024-11-01T03:33:10.976-07:00</updated><category term="T-SQL"/><category term="SQL Server"/><category term="SQL"/><category term="Web Design"/><category term=".NET"/><category term="C#"/><category term="Entity Framework"/><category term="OO"/><category term="CSS"/><category term="Dates"/><category term="JSON"/><category term="Javascript"/><category term="LINQ to Entities"/><category term="Patterns"/><category term="Tips"/><title type='text'>developer-express</title><subtitle type='html'>A developer scrapbook</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-2805692400977683116</id><published>2011-03-04T02:15:00.001-08:00</published><updated>2011-03-04T02:15:01.299-08:00</updated><title type='text'>jQuery: Find the label text for a selected radio button</title><content type='html'>&lt;p&gt;Sometimes the seemingly easiest pieces of code can end up giving you trouble.&amp;#160; This morning I was working on a project where I wanted to display the text (not the value) of a selected radio button.&lt;/p&gt;  &lt;p&gt;In the end it was very simple.&amp;#160; I added a label to my radio buttons and used the following line of code.&lt;/p&gt;  &lt;p&gt;$(&#39;input[name=myname]:checked + label&#39;).text();&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/2805692400977683116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/03/jquery-find-label-text-for-selected.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2805692400977683116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2805692400977683116'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/03/jquery-find-label-text-for-selected.html' title='jQuery: Find the label text for a selected radio button'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-7638721974217166501</id><published>2011-02-22T07:30:00.001-08:00</published><updated>2011-02-22T07:30:02.946-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>SQL Concatenation with the STUFF function and XML PATH clause</title><content type='html'>&lt;p&gt;Recently I had the necessity to retrieve a concatenated string of values as a column for a report.&amp;#160; This can be achieved quite simply by creating a UDF that returns the concatenated string and calling within the SELECT statement.&lt;/p&gt;  &lt;p&gt;However, I do not like using UDF’s within SELECT statements due to performance issues.&amp;#160; So I started searching the net for a possible alternative and came across the following:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://www.kodyaz.com/articles/concatenate-using-xml-path.aspx&quot;&gt;http://www.kodyaz.com/articles/concatenate-using-xml-path.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now I have never used the SQL STUFF function or XML Path clause but the combination of the two enabled me to achieve my goal very quickly.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms188043.aspx&quot; target=&quot;_blank&quot;&gt;The STUFF function inserts a string into another string. It deletes a specified length of characters in the first string at the start position and then inserts the second string into the first string at the start position.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms191268.aspx&quot; target=&quot;_blank&quot;&gt;You can execute SQL queries to return results as XML instead of standard rowsets. These queries can be executed directly or executed from within stored procedures and user-defined functions. To retrieve the results directly, first use the FOR XML clause of the SELECT statement.&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;SELECT TOP 1   &lt;br /&gt;&amp;#160; STUFF(    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SELECT &#39;, &#39; + Username    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FROM Users    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FOR XML PATH(&#39;&#39;)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ), 1, 1, &#39;&#39;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ) As ListOfUsers    &lt;br /&gt;From Users&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/7638721974217166501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/02/sql-concatenation-with-stuff-function.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/7638721974217166501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/7638721974217166501'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/02/sql-concatenation-with-stuff-function.html' title='SQL Concatenation with the STUFF function and XML PATH clause'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-86922542608983162</id><published>2011-02-15T06:32:00.001-08:00</published><updated>2011-02-15T06:32:25.916-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Patterns"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design"/><title type='text'>An Introduction to Using Patterns in Web Design</title><content type='html'>&lt;p&gt;A fantastic article from Ryan Singer at &lt;a href=&quot;http://www.37Signals.com&quot;&gt;37 Signals&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://37signals.com/papers/introtopatterns/index&quot;&gt;http://37signals.com/papers/introtopatterns/index&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The use of design patterns in web design can help developers tackle the tricky balance between &lt;a href=&quot;http://www.smashingmagazine.com/2011/02/04/business-objectives-vs-user-experience/&quot;&gt;user experience and business objectives&lt;/a&gt;.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/86922542608983162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/02/introduction-to-using-patterns-in-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/86922542608983162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/86922542608983162'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/02/introduction-to-using-patterns-in-web.html' title='An Introduction to Using Patterns in Web Design'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-3113031152522243179</id><published>2011-02-04T07:37:00.001-08:00</published><updated>2011-02-04T07:46:48.201-08:00</updated><title type='text'>SQL: OVER Clause</title><content type='html'>&lt;p&gt;The OVER clause allows partitioning and ordering of the rowset.&lt;/p&gt;  &lt;p&gt;The syntax for this function:&lt;/p&gt;  &lt;p&gt;Ranking Window Functions &lt;/p&gt;  &lt;p&gt;&amp;lt; OVER_CLAUSE &amp;gt; :: =&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; OVER ( [ PARTITION BY value_expression, ... [ n ] ]&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;ORDER BY_Clause&amp;gt; )Aggregate Window Functions &lt;/p&gt;  &lt;p&gt;&amp;lt; OVER_CLAUSE &amp;gt; :: = &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; OVER ( [ PARTITION BY value_expression, ... [ n ] ] )&lt;/p&gt;  &lt;p&gt;As specified above the OVER clause can be used in conjunction with aggregate functions, which can make your code a little shorter.&lt;/p&gt;  &lt;p&gt;For example, consider the following bookings table:&lt;/p&gt;  &lt;p&gt;SELECT * FROM #Bookings ORDER BY CourseID&lt;/p&gt;  &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;b&gt;CourseID &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;b&gt;DelegateID &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;b&gt;BookingDate &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;b&gt;BookingCost&lt;/b&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2011-02-04&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;10.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2011-02-04 &lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;10.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2011-01-04 &lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;10.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;3&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2011-03-04 &lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;50.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;3&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;2011-03-04 &lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;50.00&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Now it is quite simple to return the total cost per delegate by using the SUM aggregate function with the OVER clause.&lt;/p&gt;  &lt;p&gt;SELECT CourseID, DelegateID, BookingDate, BookingCost, SUM(BookingCost) OVER (PARTITION BY DelegateID) AS TotalCost FROM #Bookings&lt;/p&gt;  &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;400&quot;&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;&lt;b&gt;CourseID &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;&lt;b&gt;DelegateID &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;&lt;b&gt;BookingDate &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;&lt;b&gt;BookingCost &lt;/b&gt;&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;&lt;b&gt;TotalCost&lt;/b&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;2011-02-04 &lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;10.00&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;70.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;2011-01-04&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;10.00&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;70.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;3&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;2011-03-04&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;50.00&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;70.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;1&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;2011-02-04&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;10.00&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;60.00&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;3&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;2&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;98&quot;&gt;2011-03-04&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;62&quot;&gt;50.00&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;80&quot;&gt;60.00&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;An alternative SQL sctipt without using the OVER clause would be:&lt;/p&gt;  &lt;p&gt;SELECT CourseID, DelegateID, BookingDate, BookingCost,   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (SELECT SUM(BookingCost) FROM #Bookings BK WHERE BK.DelegateID = #Bookings.DelegateID) AS TotalCost    &lt;br /&gt;FROM #Bookings&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/3113031152522243179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/02/sql-over-clause.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/3113031152522243179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/3113031152522243179'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/02/sql-over-clause.html' title='SQL: OVER Clause'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-1080746078435817203</id><published>2011-02-01T14:18:00.000-08:00</published><updated>2011-02-01T14:19:19.967-08:00</updated><title type='text'>jQuery 1.5 Released</title><content type='html'>jQuery 1.5 was released for consumption today!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://jquery.com/&quot;&gt;Grab jQuery 1.5 here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This release includes:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Complete rewrite of the Ajax module.&lt;/li&gt;
&lt;li&gt;New feature: &lt;a href=&quot;http://api.jquery.com/category/deferred-object/&quot;&gt;Deferred Objects&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;New method:&amp;nbsp;&lt;a href=&quot;http://api.jquery.com/jQuery.sub/&quot;&gt;jQuery.sub()&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Performance improvements (Adjacent Traversal)&lt;/li&gt;
&lt;li&gt;Bug Fixes - Approx 83&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/1080746078435817203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/02/jquery-15-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/1080746078435817203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/1080746078435817203'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/02/jquery-15-released.html' title='jQuery 1.5 Released'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-2673759667385530228</id><published>2011-01-22T08:36:00.000-08:00</published><updated>2011-01-22T08:36:28.630-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design"/><title type='text'>Responsive Web Design</title><content type='html'>&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;For me, Responsive Web Design is a relatively new term. &amp;nbsp;Basically it refers to a web design layout that alters to it&#39;s&amp;nbsp;environment. &amp;nbsp;So the layout can alter depending on the screen size or resolution. This is not the same as a fluid design though, with Responsive Design the lay can actually change rather than just scale down.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;http://www.alistapart.com/articles/responsive-web-design/&quot;&gt;A List Apart has a fantastic article on Response Web Design&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;I really like the idea of Responsive Web Design but it does seem a lot of effort, so I intent to start messing around with some CSS frameworks that embrace it.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/2673759667385530228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/01/responsive-web-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2673759667385530228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2673759667385530228'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/01/responsive-web-design.html' title='Responsive Web Design'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-5552290780916401068</id><published>2011-01-22T08:16:00.000-08:00</published><updated>2011-01-22T08:36:50.849-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design"/><title type='text'>Free eBook for Web Designers: 5 Tips for Better Sites</title><content type='html'>&lt;div&gt;Webvantas 5 tips for better sites:&lt;br /&gt;
&lt;br /&gt;
1. Draw the line between design and implementation&lt;br /&gt;
2. Think in terms of information architecture&lt;br /&gt;
3. Pick the best CMS for your needs&lt;br /&gt;
4. Know What jQuery Can Do for You&lt;br /&gt;
5. Drive traffic with SEO and social media&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.webvanta.com/5tips-ebook?s=influ2&quot;&gt;Free eBook for Web Designers: 5 Tips for Better Sites&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;A good set of guidlines which may seem obvious but are often overlooked, especially once development has begun.  Many times development projects go astray because developers &quot;cannot see the wood for the trees&quot;.  I participially like tip 3 but would not limit it to the CMS, choose the right tool for job period.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/5552290780916401068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/01/free-ebook-for-web-designers-5-tips-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5552290780916401068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5552290780916401068'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/01/free-ebook-for-web-designers-5-tips-for.html' title='Free eBook for Web Designers: 5 Tips for Better Sites'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-508968580050871911</id><published>2011-01-21T01:00:00.000-08:00</published><updated>2011-01-21T01:11:02.561-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dates"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>SQL: Format Dates with DATENAME()</title><content type='html'>&lt;div&gt;&lt;b&gt;DATNAME()&lt;/b&gt; is an &lt;b&gt;ANSI compliant&lt;/b&gt;, fast date part function built into &lt;b&gt;SQL Server&lt;/b&gt;.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;It accepts two arguments datepart and date. The datepart parameter specifies which part of the date to return - day, month, year with the function returning an nvarchar.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;b&gt;Syntax&lt;/b&gt;&lt;/div&gt;&lt;div&gt;DATENAME ( datepart ,date)&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/div&gt;&lt;div&gt;SELECT DATENAME(m, GETDATE())&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;Result&lt;/b&gt;&lt;/div&gt;&lt;div&gt;January&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span codelanguage=&quot;other&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms174395(v=sql.90).aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms174395(v=sql.90).aspx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span codelanguage=&quot;other&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/508968580050871911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/01/sql-format-dates-with-datename.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/508968580050871911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/508968580050871911'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/01/sql-format-dates-with-datename.html' title='SQL: Format Dates with DATENAME()'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-1337078094379587367</id><published>2011-01-20T04:46:00.000-08:00</published><updated>2011-01-20T10:36:34.403-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Capitalise first letters in SQL Server</title><content type='html'>&lt;b&gt;SQL Server&lt;/b&gt; has no built in function to &lt;b&gt;capitalise the first letter&lt;/b&gt; of each word in a string. &amp;nbsp;The function outlined below will do just that.&lt;br /&gt;
&lt;br /&gt;
This function has proved very valuable!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFcVvJ8-HsEOfIo5F4FOh33j2kMykn6heuhKst5vBBnKh95HqdRWWL1d_sdAIN_zLGCk9QkFSp8ESNa7EpWiQaXsOVlr3OwM-SGfgoga40x39Ji7dCHT5QBsvBA4PcqtXUL2uTxw-Ri2PZ/s1600/IniCap.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;547&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFcVvJ8-HsEOfIo5F4FOh33j2kMykn6heuhKst5vBBnKh95HqdRWWL1d_sdAIN_zLGCk9QkFSp8ESNa7EpWiQaXsOVlr3OwM-SGfgoga40x39Ji7dCHT5QBsvBA4PcqtXUL2uTxw-Ri2PZ/s640/IniCap.JPG&quot; width=&quot;615&quot; /&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;
Source:&amp;nbsp;&lt;a href=&quot;http://www.sql-server-helper.com/functions/initcap.aspx&quot;&gt;http://www.sql-server-helper.com/functions/initcap.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/1337078094379587367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2011/01/capitalise-first-letters-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/1337078094379587367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/1337078094379587367'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2011/01/capitalise-first-letters-in-sql-server.html' title='Capitalise first letters in SQL Server'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFcVvJ8-HsEOfIo5F4FOh33j2kMykn6heuhKst5vBBnKh95HqdRWWL1d_sdAIN_zLGCk9QkFSp8ESNa7EpWiQaXsOVlr3OwM-SGfgoga40x39Ji7dCHT5QBsvBA4PcqtXUL2uTxw-Ri2PZ/s72-c/IniCap.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-2169822137183479472</id><published>2010-11-04T02:28:00.000-07:00</published><updated>2010-11-04T08:05:07.934-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="OO"/><title type='text'>Partial Classes, Interfaces &amp; Generics</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;b&gt;Partial classes&lt;/b&gt; can be used to split definitions of classes, structs or interfaces over two or more source files. Each source file contains a section of the class definition which are combined at when the application is compiled.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt; Partial classes can be beneficial in the following situations: &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Working on large projects, allowing developers to work on different sections of a class without both having to access the same physical file.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;li&gt;Working with generated source code, as code can be added to a class without touching the original source file.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Improve maintainability by logically grouping code.&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
An &lt;b&gt;interface&lt;/b&gt; is a contract between classes.  An interface is particularly powerful in C# as it allows multiple inheritance.&lt;br /&gt;
&lt;br /&gt;
Interfaces are abstract types that contain no actual data but simply expose behaviours to the classes that implements them.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Generics&lt;/b&gt; use type parameters, which allow classes and methods that can defer specification until they are instantiated. &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Maximises code reuse, type safety and performance.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Most common use in collections&lt;/li&gt;
&lt;/ul&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/2169822137183479472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/11/partial-classes-interfaces-generics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2169822137183479472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2169822137183479472'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/11/partial-classes-interfaces-generics.html' title='Partial Classes, Interfaces &amp; Generics'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-5841812960920963300</id><published>2010-10-29T08:12:00.000-07:00</published><updated>2010-10-29T08:12:27.541-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="OO"/><title type='text'>C# System Types</title><content type='html'>The type system in .NET or Common Type System (CTS) divides types into 2 categories:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Values Types&lt;/li&gt;
&lt;li&gt;Reference Types&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;b&gt;Value Types&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;These are simple data types that directly contain their data, for example:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Integers&lt;/li&gt;
&lt;li&gt;Floats&lt;/li&gt;
&lt;li&gt;Enums&lt;/li&gt;
&lt;li&gt;Structs&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;b&gt;Reference Types&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;These types store references to objects. &amp;nbsp;Reference type variables have the ability to refer to the same data, so two variables can point to same object and the object be manipulated by performing operations of both variables. &amp;nbsp;Examples include:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;Interfaces&lt;/li&gt;
&lt;li&gt;Delegates&lt;/li&gt;
&lt;li&gt;Arrays&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/5841812960920963300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/10/c-system-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5841812960920963300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5841812960920963300'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/10/c-system-types.html' title='C# System Types'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-5417569488609385070</id><published>2010-10-28T01:05:00.000-07:00</published><updated>2010-10-28T01:06:11.902-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>SQL: Format Dates</title><content type='html'>Formatting dates in T-SQL is generally a nuisance as no format date function exists. In the past I have seen many developers (including myself) use the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms174420.aspx&quot;&gt;DATEPART()&lt;/a&gt; functions to split the dates and then manually build up a date string.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhComtqnjEBvm6DG_A_ASisMXkVf28QE0Q_j5jjeRLFzGQxU1DkJgfua6WEeYb52Ffpw0Hl_7rH7CuFmTTtgotYl-Hb4lclw68Pi1IU4zKqog7Odjb0n1nsYJkLgPF12LV58NtVLginEFwO/s1600/SQL1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;62&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhComtqnjEBvm6DG_A_ASisMXkVf28QE0Q_j5jjeRLFzGQxU1DkJgfua6WEeYb52Ffpw0Hl_7rH7CuFmTTtgotYl-Hb4lclw68Pi1IU4zKqog7Odjb0n1nsYJkLgPF12LV58NtVLginEFwO/s400/SQL1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively I have seen developers &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms187928.aspx&quot;&gt;CAST()&lt;/a&gt; the date to format.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXhCDvUqyEsmOyl4cJ0n0WrA_ne4XdUp0Gbwix791BXIGz_UMHOSPxhTkiLYrvhNTfe4Ppy-5QCynF1W9_5FqDtv9qI5fXaFtPT4pTmO3rA0UKtm3lImqCnElR5Y4sE9WmUKHXCSNT4fe5/s1600/SQL2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;31&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXhCDvUqyEsmOyl4cJ0n0WrA_ne4XdUp0Gbwix791BXIGz_UMHOSPxhTkiLYrvhNTfe4Ppy-5QCynF1W9_5FqDtv9qI5fXaFtPT4pTmO3rA0UKtm3lImqCnElR5Y4sE9WmUKHXCSNT4fe5/s400/SQL2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Recently however, I discovered the different date formats that come standard in SQL Server as part of the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms187928.aspx&quot;&gt;CONVERT()&lt;/a&gt; function.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_Tf5XT9TYcdaVm5XyZ1xgWD50CXWfJ52oJvx2yCalyCSF324ZxUqLoOXiQauaDDZ9kKouyqH9mtdNb1z2ul9mPIzKRw8ejDEmPaAy1XNWkWvmK1QtBZj63IPwXHZiTPSrcFEF5Jywu0l/s1600/SQL3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho_Tf5XT9TYcdaVm5XyZ1xgWD50CXWfJ52oJvx2yCalyCSF324ZxUqLoOXiQauaDDZ9kKouyqH9mtdNb1z2ul9mPIzKRw8ejDEmPaAy1XNWkWvmK1QtBZj63IPwXHZiTPSrcFEF5Jywu0l/s640/SQL3.jpg&quot; width=&quot;385&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;For an excellent thorough list of date formats please visit &amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sql-server-helper.com/tips/date-formats.aspx&quot;&gt;http://www.sql-server-helper.com/tips/date-formats.aspx&lt;/a&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/5417569488609385070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/10/sql-format-dates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5417569488609385070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/5417569488609385070'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/10/sql-format-dates.html' title='SQL: Format Dates'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhComtqnjEBvm6DG_A_ASisMXkVf28QE0Q_j5jjeRLFzGQxU1DkJgfua6WEeYb52Ffpw0Hl_7rH7CuFmTTtgotYl-Hb4lclw68Pi1IU4zKqog7Odjb0n1nsYJkLgPF12LV58NtVLginEFwO/s72-c/SQL1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-8762727778751476051</id><published>2010-10-27T05:04:00.000-07:00</published><updated>2010-10-28T01:06:57.555-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>SQL: Get the length of text, ntext &amp; image</title><content type='html'>&lt;div style=&quot;margin: 2px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Ever needed to find the lengh of a ntext field in SQL only to be met with the following error message, whilst using the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms190329.aspx&quot;&gt;LEN()&lt;/a&gt; function?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj56oboX7YdI9PsBL5MsowvEFvlrmBnbmo1k7BtNg7fPhh5nUUTzWa-4_ufwMj4257lhHoivPXJKZq_a-L9P_2aKCFts5B3T09dHzXciGQI728WAqh6CBIvJ4q45SbElu05LGSwgGmWHkqE/s1600/SQLError.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj56oboX7YdI9PsBL5MsowvEFvlrmBnbmo1k7BtNg7fPhh5nUUTzWa-4_ufwMj4257lhHoivPXJKZq_a-L9P_2aKCFts5B3T09dHzXciGQI728WAqh6CBIvJ4q45SbElu05LGSwgGmWHkqE/s400/SQLError.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This can be achieved by simply using the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms173486.aspx&quot;&gt;DATALENGHT()&lt;/a&gt; function. &amp;nbsp;DATALENGTH is especially useful with&amp;nbsp;&lt;span class=&quot;input&quot;&gt;varchar&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;input&quot;&gt;varbinary&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;input&quot;&gt;text&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;input&quot;&gt;image&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;input&quot;&gt;nvarchar&lt;/span&gt;, and&amp;nbsp;&lt;span class=&quot;input&quot;&gt;ntext&lt;/span&gt;&amp;nbsp;data types because these data types can store variable-length data.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Note:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; line-height: 18px;&quot;&gt;Compatibility levels can affect return values. For more information about compatibility levels&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/8762727778751476051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/10/sql-get-length-of-text-ntext-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/8762727778751476051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/8762727778751476051'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/10/sql-get-length-of-text-ntext-image.html' title='SQL: Get the length of text, ntext &amp; image'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj56oboX7YdI9PsBL5MsowvEFvlrmBnbmo1k7BtNg7fPhh5nUUTzWa-4_ufwMj4257lhHoivPXJKZq_a-L9P_2aKCFts5B3T09dHzXciGQI728WAqh6CBIvJ4q45SbElu05LGSwgGmWHkqE/s72-c/SQLError.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-2834962830167242223</id><published>2010-09-29T12:39:00.000-07:00</published><updated>2010-09-29T12:41:13.855-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ to Entities"/><title type='text'>Getting Started with LINQ to Entities</title><content type='html'>&lt;div&gt;Introducing the object context, basics queries, eager loading, lazy loading and projection.&lt;/div&gt;&lt;div&gt;In this video, Julie Lerman will show you how to query your database with LINQ to Entities queries against an Entity Data Model. This video uses Entity Framework 4.0 and Visual Studio 2010.&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;em style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: italic; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;em style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: italic; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Presented by&amp;nbsp;&lt;/em&gt;&lt;a href=&quot;http://www.pluralsight.com/&quot; id=&quot;ctl00_mainContentContainer_ctl04&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066dd; cursor: pointer; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Julie Lerman&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;script src=&quot;http://msdn.microsoft.com/objectforward/default.aspx?type=VideoPlayer&amp;amp;video=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F2%2FA%2FC%2F2AC2D1AE-0580-4210-ACA5-C8780A5FE226%2FLerman_GettingStartedWithLinqToEntities.wmv&amp;amp;thumb=http%3A%2F%2Fi.msdn.microsoft.com%2Fff628210.Lerman_GettingStartedWithLinqToEntities_400.jpg&amp;amp;title=&amp;amp;width=400&amp;amp;height=400&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;b&gt;Context object&lt;/b&gt;&lt;br /&gt;
var context = new myModel.MyEntities&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Basic query&lt;/b&gt;&lt;br /&gt;
var query = from c in context.Customers select c;&lt;br /&gt;
var customers = query.ToList();&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Basic filter query&lt;/b&gt;&lt;br /&gt;
var query = from c in context.Customers where c.customerID==5 select c;&lt;br /&gt;
var customer = query.FirstOrDefault();&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Eager loading&lt;/b&gt;&lt;br /&gt;
var query = from c in context.Customers.Include(&quot;SalesOrdersHeaders&quot;) where c.customerID==5 select c;&lt;br /&gt;
var customer = query.FirstOrDefault();&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Lazy loading (.NET 4 only)&lt;/b&gt;&lt;br /&gt;
var query = from c in context.Customers where c.customerID==5 select c;&lt;br /&gt;
var customer = query.FirstOrDefault();&lt;br /&gt;
lblTest.Text = customer.SalesOrdersHeader.Count&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Projection&lt;/b&gt;&lt;br /&gt;
var query = from c in context.Customers where c.customerID==5&lt;br /&gt;
select new { c.CustomerID, c.Firstname, c.Lastname }; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/2834962830167242223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/09/getting-started-with-linq-to-entities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2834962830167242223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/2834962830167242223'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/09/getting-started-with-linq-to-entities.html' title='Getting Started with LINQ to Entities'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-7340868165824398101</id><published>2010-09-21T11:20:00.000-07:00</published><updated>2010-09-21T11:20:17.309-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><title type='text'>Creating an Entity Data Model from a Database</title><content type='html'>&lt;div&gt;The entity framework is an object-relational mapping (ORM) framework for the .NET Framework.  The entity framework separates the conceptual and logical data models, allowing developers to program against the conceptual model rather than the logical model.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;This video walks you through the basics of creating an entity data model from an existing database using Entity Framework 4.0 and Visual Studio 2010. You’ll learn to run the Entity Data Model wizard, connect to a database, and select database objects for your model. Once the model has been created, you’ll then learn about the basic features of the model such as the entities, associations and properties.&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;em style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: italic; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;em style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-style: italic; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Presented by&amp;nbsp;&lt;/em&gt;&lt;a href=&quot;http://www.pluralsight.com/&quot; id=&quot;ctl00_mainContentContainer_ctl04&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0066dd; cursor: pointer; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Julie Lerman&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;script src=&quot;http://msdn.microsoft.com/objectforward/default.aspx?type=VideoPlayer&amp;amp;video=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F2%2FA%2FC%2F2AC2D1AE-0580-4210-ACA5-C8780A5FE226%2FJulieLermanEDMfromDB.wmv&amp;amp;thumb=http%3A%2F%2Fi.msdn.microsoft.com%2Fff191186.JulieLermanEDMfromDB_400.jpg&amp;amp;title=Creating%20an%20Entity%20Data%20Model%20from%20a%20Database&amp;amp;width=400&amp;amp;height=400&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/7340868165824398101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/09/creating-entity-data-model-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/7340868165824398101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/7340868165824398101'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/09/creating-entity-data-model-from.html' title='Creating an Entity Data Model from a Database'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4661445452176680301.post-6707202798749372555</id><published>2010-08-07T04:14:00.000-07:00</published><updated>2010-08-07T04:14:53.994-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><title type='text'>JSON - An Express Overview</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Whilst building a new reporting engine this week I was advised by a friend to consider using JSON as a simple and effective way to store the business rules. Having not used JSON before, I decided to take a quick look and found it to be a very straightforward yet elegant way of storing data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;What is JSON?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;JSON (JavaScript Object Notation) is a neat and structured text-based data format that is an accepted alternative to XML.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;JSON comprises of two structures:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;A set of name/values pairs, which is basically an object. Both the name and value mus be in double quotes.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;An ordered list of values, which is basically an array. Values in turn can store strings, numbers, objects, arrays, Booleans and nulls.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Basic Objects&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;var jString = { &quot;Firstname&quot;: &quot;Joe&quot;, &quot;Lastname&quot;: &quot;Bloggs&quot; }&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
document.writeln(jString.Firstname); // Output Joe&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Basic Array&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;var jString = { &quot;Firstname&quot;: &quot;Joe&quot;, &quot;Lastname&quot;: &quot;Bloggs&quot;, &quot;Sports&quot;: [&quot;Football&quot;, &quot;Tennis&quot;, &quot;Jujitsu&quot;] }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;for (var i in jString.Sports) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;document.writeln(jString.Sports[i]);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;// Ouput:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Football Tennis Jujitsu&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developer-express.blogspot.com/feeds/6707202798749372555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developer-express.blogspot.com/2010/08/json-express-overview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/6707202798749372555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4661445452176680301/posts/default/6707202798749372555'/><link rel='alternate' type='text/html' href='http://developer-express.blogspot.com/2010/08/json-express-overview.html' title='JSON - An Express Overview'/><author><name>Richard</name><uri>http://www.blogger.com/profile/00475832012688411090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>