<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D08CSHszeCp7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573</id><updated>2011-11-28T07:17:49.580+08:00</updated><category term="Interface implementations" /><category term="asp.net database" /><category term="horizontal scrolling panel" /><category term="c# Linq" /><category term="web user controls" /><category term="asp.net database access layer" /><category term="div panel" /><category term="access layer" /><category term="vertical scrolling panel" /><category term="sql standards" /><category term="agent007 games" /><category term="sql database standards" /><category term="mvc" /><category term="asp.net access layer" /><category term="Create MVC Controller" /><category term="Games" /><category term="LinqToSql Nullable where Clause" /><category term="MVC Controller" /><category term="Linq" /><category term="Linq query" /><category term="how to use interface in c#" /><category term="minesweeper" /><category term="Super Sweeper" /><category term="asp.net" /><category term="c# interface" /><category term="framework" /><category term="database access layer" /><category term="MVC Controller Tutorial" /><category term="LinqToSql" /><category term="Create Controller" /><title>C# Developer Blogs</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://csharpdotnetdev.blogspot.com/" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/KrNB" /><feedburner:info uri="blogspot/krnb" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0cBQ3k_fCp7ImA9WxFaGU0.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-6712449360567323184</id><published>2010-07-24T00:02:00.016+08:00</published><updated>2010-07-24T01:10:52.744+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-24T01:10:52.744+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="LinqToSql" /><category scheme="http://www.blogger.com/atom/ns#" term="LinqToSql Nullable where Clause" /><category scheme="http://www.blogger.com/atom/ns#" term="c# Linq" /><title>C# LinqToSql Nullable where Clause</title><content type="html">I will discuss for this blog is how to query using LinqToSql with a Nullable WHERE Clause.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight:bold; color:red;"&gt;PROBLEM:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;I have a tree-structured database table with tight relationships. That means, all top/parent nodes are a NULLABLE parentID. How can we query the same level nodes using LinqToSql?&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight:bold; color:blue;"&gt;TABLE STRUCTURE:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;IdTreeNode&lt;/td&gt;&lt;td&gt;int&lt;/td&gt;&lt;td&gt;PK (Identity Field)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;IdParentNode&lt;/td&gt;&lt;td&gt;int&lt;/td&gt;&lt;td&gt;NULLABLE, FK (Relates to IdTreeNode)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;nvarchar(50)&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight:bold; color:black;"&gt;EXAMPLE DATA:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Node Name (IdTreeNode/IdParentNode)&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Top node 1 (1/null)&lt;/li&gt;&lt;li&gt;Top node 2 (2/null)&lt;ul style="color: green;"&gt;&lt;li&gt;Middle node 1 (3/2)&lt;/li&gt;&lt;li&gt;Middle node 2 (4/2)&lt;ul style="color: black"&gt;&lt;li&gt;Bottom node 1 (5/4)&lt;/li&gt;&lt;li&gt;Bottom node 2 (6/4)&lt;/li&gt;&lt;li&gt;Bottom node 3 (7/4)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Top node 3 (8/null)&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight:bold; color:green;"&gt;LINQ QUERY:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#339999;"&gt;MyDataContext&lt;/span&gt; db = &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;new&lt;/span&gt; &lt;span class="Apple-style-span"  style="color:#339999;"&gt;MyDataContext&lt;/span&gt;();&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;int?&lt;/span&gt; idParentNode = 2;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;int &lt;/span&gt;anyvalue = 0;&lt;span class="Apple-style-span"  style="color:#009900;"&gt; //use anyvalue that you are sure will not be a value of IdParentNode&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;var&lt;/span&gt; result = (&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;from&lt;/span&gt; item &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;in&lt;/span&gt; db.TreeViews &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;where object&lt;/span&gt;.Equals(item.IdParentNode ?? anyvalue, idParentNode ?? anyvalue select item)&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight:bold; color:green;"&gt;RESULTS:&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Middle node 1&lt;br /&gt;Middle node 2&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-6712449360567323184?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xJd0ebR-Qb7_Qa6nmuvLM-4GHN0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xJd0ebR-Qb7_Qa6nmuvLM-4GHN0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xJd0ebR-Qb7_Qa6nmuvLM-4GHN0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xJd0ebR-Qb7_Qa6nmuvLM-4GHN0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/mECBCk4khIc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/6712449360567323184/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=6712449360567323184" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/6712449360567323184?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/6712449360567323184?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/mECBCk4khIc/c-linqtosql-nullable-where-clause.html" title="C# LinqToSql Nullable where Clause" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2010/07/c-linqtosql-nullable-where-clause.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8DSXc_cCp7ImA9WxVQGEg.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-5503615119627429495</id><published>2009-02-06T00:24:00.003+08:00</published><updated>2009-02-06T00:54:38.948+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-06T00:54:38.948+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linq query" /><category scheme="http://www.blogger.com/atom/ns#" term="c# Linq" /><category scheme="http://www.blogger.com/atom/ns#" term="Linq" /><title>Simple c# Linq query</title><content type="html">//This is the extension used to call list functions.&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;&lt;br /&gt;public class Person&lt;br /&gt;{&lt;br /&gt;    public string FirstName { get; set; }&lt;br /&gt;    public string Lastname { get; set; }&lt;br /&gt;    public int Age { get; set; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class LinqImplementation&lt;br /&gt;{&lt;br /&gt;    List&lt;Person&gt; Persons = new List&lt;Person&gt;();&lt;br /&gt;    public LinqImplementation()&lt;br /&gt;    {&lt;br /&gt;        //This is the old .Net 2005 Implementation of Person class&lt;br /&gt;        Person eve = new Person();&lt;br /&gt;        eve.FirstName = "Eve";&lt;br /&gt;        eve.Lastname = "Davis";&lt;br /&gt;        eve.Age = 39;&lt;br /&gt;        Persons.Add(eve);&lt;br /&gt;&lt;br /&gt;        //This is .Net 2008 Implementation of Person class&lt;br /&gt;        Person adam = new Person(){&lt;br /&gt;            FirstName = "Adam",&lt;br /&gt;            Lastname="Sandler",&lt;br /&gt;            Age = 42&lt;br /&gt;        };&lt;br /&gt;        Persons.Add(adam);&lt;br /&gt;&lt;br /&gt;        //To Simplify things up, I created method to generate list of person&lt;br /&gt;        CreatePerson(Persons, "Bill", "Gates", 58);&lt;br /&gt;        CreatePerson(Persons, "Rob", "Thomas", 44);&lt;br /&gt;        CreatePerson(Persons, "Kobe", "Bryant", 29);&lt;br /&gt;        CreatePerson(Persons, "George", "Bush", 65);&lt;br /&gt;        CreatePerson(Persons, "Barak", "Obama", 59);&lt;br /&gt;        CreatePerson(Persons, "George", "Washington", 59);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    private void CreatePerson(List&lt;Person&gt; Persons, string firstname, string lastname, int age)&lt;br /&gt;    {&lt;br /&gt;        Person person = new Person() { FirstName = firstname, Lastname = lastname, Age = age };&lt;br /&gt;        Persons.Add(person);&lt;br /&gt;    }&lt;br /&gt;    //This is the query to get the list of person with firstname equal to George&lt;br /&gt;    public List&lt;Person&gt; GetPersonFirstName()&lt;br /&gt;    {&lt;br /&gt;        return (from person in Persons &lt;br /&gt;                where person.FirstName == "George" &lt;br /&gt;                select person).ToList&lt;Person&gt;();&lt;br /&gt;    }&lt;br /&gt;    //This is the query to get the list of person with the age of 40 up to 60&lt;br /&gt;    public List&lt;Person&gt; GetPersonAge()&lt;br /&gt;    {&lt;br /&gt;        return (from person in Persons&lt;br /&gt;                where person.Age &gt;= 40 &amp;&amp; person.Age &lt;= 60&lt;br /&gt;                select person).ToList&lt;Person&gt;();&lt;br /&gt;    }&lt;br /&gt;    //This is the query to get the list of person with the age of 40 up to 60&lt;br /&gt;    //And adding order as descending.&lt;br /&gt;    public List&lt;Person&gt; GetPersonAgeDescending()&lt;br /&gt;    {&lt;br /&gt;        return (from person in Persons orderby person.Age descending&lt;br /&gt;                where person.Age &gt;= 40 &amp;&amp; person.Age &lt;= 60&lt;br /&gt;                select person).ToList&lt;Person&gt;();&lt;br /&gt;    }&lt;br /&gt;    //This is the query to get the list of person with the age of 40 up to 60&lt;br /&gt;    //And adding order as ascending.&lt;br /&gt;    public List&lt;Person&gt; GetPersonAgeAscending()&lt;br /&gt;    {&lt;br /&gt;        return (from person in Persons&lt;br /&gt;                orderby person.Age ascending&lt;br /&gt;                where person.Age &gt;= 40 &amp;&amp; person.Age &lt;= 60&lt;br /&gt;                select person).ToList&lt;Person&gt;();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;//Test this in your console application.&lt;br /&gt;//Hoping that this helps a lot&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-5503615119627429495?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-nQ1-x3x1oCWUj0tmyC9tdst1Zg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-nQ1-x3x1oCWUj0tmyC9tdst1Zg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-nQ1-x3x1oCWUj0tmyC9tdst1Zg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-nQ1-x3x1oCWUj0tmyC9tdst1Zg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/8kHOdEga4T8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/5503615119627429495/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=5503615119627429495" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/5503615119627429495?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/5503615119627429495?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/8kHOdEga4T8/simple-c-linq-query.html" title="Simple c# Linq query" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2009/02/simple-c-linq-query.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MCRH06eyp7ImA9WxVTFUs.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-2463149379393344667</id><published>2008-12-29T22:14:00.026+08:00</published><updated>2008-12-29T23:44:25.313+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-29T23:44:25.313+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="horizontal scrolling panel" /><category scheme="http://www.blogger.com/atom/ns#" term="div panel" /><category scheme="http://www.blogger.com/atom/ns#" term="vertical scrolling panel" /><title>Div Panels</title><content type="html">Hello folks. If you're searching for the div panel source codes, you won't be disappointed in this page.&lt;br /&gt;&lt;br /&gt;&lt;h3 id="top" style="margin: auto;"&gt;Here are some samples of div panels:&lt;/h3&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#standard"&gt;Standard Div Panel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#vscroll"&gt;Scrollable Div Panel (Vertical)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#hscroll"&gt;Scrollable Div Panel (Horizontal)&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3 id="standard"&gt;Standard Div Panel&lt;/h3&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Source code:&lt;/span&gt;&lt;br /&gt;&amp;lt;div style="border: 1px solid blue; height: 100px;"&amp;gt;&lt;br /&gt;Put your content here...&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Sample Result:&lt;/span&gt;&lt;br /&gt;&lt;div style="border: 1px solid blue; background-color: rgb(238, 238, 238); height: 100px;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);font-size:180%;" &gt;Put your content here...&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#top"&gt;Top&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 id="vscroll"&gt;Scrollable Div Panel (Vertical)&lt;/h3&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Source code:&lt;/span&gt;&lt;br /&gt;&amp;lt;div style="border: 1px solid blue; height: 100px; overflow-y: scroll;"&amp;gt;&lt;br /&gt;Put your content here...&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Sample Result:&lt;/span&gt;&lt;br /&gt;&lt;div style="border: 1px solid blue; overflow-y: scroll; background-color: rgb(238, 238, 238); height: 100px;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);font-size:180%;" &gt;Put your content here...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);font-size:180%;" &gt;Put your content here...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);font-size:180%;" &gt;Put your content here...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);font-size:180%;" &gt;Put your content here...&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#top"&gt;Top&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 id="hscroll"&gt;Scrollable Div Panel (Horizontal)&lt;/h3&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Source code:&lt;/span&gt;&lt;br /&gt;&amp;lt;div style="border: 1px solid blue; overflow-x: scroll; background-color: rgb(238, 238, 238); width: 400px; white-space: nowrap;"&amp;gt;&lt;br /&gt;Put your content here....&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Sample Result:&lt;/span&gt;&lt;br /&gt;&lt;div style="border: 1px solid blue; overflow-x: scroll; background-color: rgb(238, 238, 238); width: 400px; white-space: nowrap;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 0, 0);font-size:350;" &gt;Put your content here....&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);font-size:350;" &gt;Put your content here....&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);font-size:350;" &gt;Put your content here....&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=4057532179067962573&amp;amp;postID=2463149379393344667#top"&gt;Top&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-2463149379393344667?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/z3VhCZ6nOpVYpErfSAp9c_UjKuU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z3VhCZ6nOpVYpErfSAp9c_UjKuU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/z3VhCZ6nOpVYpErfSAp9c_UjKuU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z3VhCZ6nOpVYpErfSAp9c_UjKuU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/Z7-t7ZxlQX4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/2463149379393344667/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=2463149379393344667" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/2463149379393344667?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/2463149379393344667?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/Z7-t7ZxlQX4/div-panels.html" title="Div Panels" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/12/div-panels.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkICRHg6eip7ImA9WxVTFUs.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-6022938550729735523</id><published>2008-12-27T09:52:00.009+08:00</published><updated>2008-12-29T23:29:25.612+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-29T23:29:25.612+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Interface implementations" /><category scheme="http://www.blogger.com/atom/ns#" term="c# interface" /><category scheme="http://www.blogger.com/atom/ns#" term="how to use interface in c#" /><title>C# Interface usage</title><content type="html">This is how to create an interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; interface IPerson {&lt;br /&gt;string Firstname {get;set;}&lt;br /&gt;string Lastname {get;set;}&lt;br /&gt;DateTime BirthDate {get;set;}&lt;br /&gt;DateTime GetCurrentAge();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are two ways to implement the interface you've created. It is either you implement it implicitly and or you implement it explicitly.&lt;br /&gt;&lt;br /&gt;This is how to implement it Implicitly.&lt;br /&gt;&lt;div style="overflow: auto; height: 250px; background-color: rgb(238, 238, 238); padding-left: 10px;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; class Engineer : IPerson {&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string firsname;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string lastname;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; DateTime birthDate;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; Engineer(string _firstname, string _lastname, DateTime _birthdate){&lt;br /&gt;Firstname = _firsname;&lt;br /&gt;Lastname = _lastname;&lt;br /&gt;BirthDate = _birthdate;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string Firstname {&lt;br /&gt;get { return firstname; }&lt;br /&gt;set { firsname = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string Lastname {&lt;br /&gt;get { return lastname; }&lt;br /&gt;set { lastname = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; DateTime BirthDate {&lt;br /&gt;get { return birthDate; }&lt;br /&gt;set { birthDate = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; DateTime GetCurrentAge () {&lt;br /&gt;return DateTime.Now.Subtract(BirthDate);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This is how to implement it Explicitly.&lt;br /&gt;&lt;div style="overflow: auto; height: 250px; background-color: rgb(238, 238, 238); padding-left: 10px;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; class Engineer : IPerson {&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string firsname;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; string lastname;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; DateTime birthDate;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public&lt;/span&gt; Engineer(string _firstname, string _lastname, DateTime _birthdate){&lt;br /&gt;Firstname = _firsname;&lt;br /&gt;Lastname = _lastname;&lt;br /&gt;BirthDate = _birthdate;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;IPerson.string Firstname {&lt;br /&gt;get { return firstname; }&lt;br /&gt;set { firsname = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;IPerson.string Lastname {&lt;br /&gt;get { return lastname; }&lt;br /&gt;set { lastname = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;IPerson.DateTime BirthDate {&lt;br /&gt;get { return birthDate; }&lt;br /&gt;set { birthDate = value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;IPerson.DateTime GetCurrentAge () {&lt;br /&gt;return DateTime.Now.Subtract(BirthDate);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-6022938550729735523?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KTbENUOibJMhsS1I2jJWD1tt_Ik/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KTbENUOibJMhsS1I2jJWD1tt_Ik/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KTbENUOibJMhsS1I2jJWD1tt_Ik/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KTbENUOibJMhsS1I2jJWD1tt_Ik/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/r1A-APUbop8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/6022938550729735523/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=6022938550729735523" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/6022938550729735523?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/6022938550729735523?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/r1A-APUbop8/c-interface-usage.html" title="C# Interface usage" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/12/c-interface-usage.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMFQn85eSp7ImA9WxdaGEg.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-7136155660978496915</id><published>2008-08-27T23:09:00.024+08:00</published><updated>2008-08-28T00:26:53.121+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-28T00:26:53.121+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Create MVC Controller" /><category scheme="http://www.blogger.com/atom/ns#" term="Create Controller" /><category scheme="http://www.blogger.com/atom/ns#" term="MVC Controller Tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="MVC Controller" /><title>Creating Controller ASP.Net MVC Framework</title><content type="html">&lt;div style="text-align: justify;"&gt;If you have installed the ASP.NET MVC Framework correctly, you would probably have an easy time on creating a new MVC Controller. &lt;a href="http://quickstarts.asp.net/3-5-extensions/mvc/MvcAddController.aspx" target="_black"&gt;(Quick Link)&lt;/a&gt; However, there are times that you need to create new controllers without using the wizard. One of the most particular reason is... you just want to create it your self. So, if you are one of those guys that are not lazy or just curious, then you are in the right site.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Creating Controller&lt;/h3&gt;First of all, you need to add a code file in your project.&lt;br /&gt;&lt;br /&gt;In the file you just created add this code:&lt;br /&gt;&lt;div style="border: 1px solid black;"&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color:blue;"&gt;public class&lt;/span&gt; ProductController : Controller&lt;br /&gt;{&lt;br /&gt;&lt;span style="color:blue;"&gt; public ActionResult &lt;/span&gt;Index()&lt;br /&gt;{&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//Add action logic here&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;return &lt;/span&gt;View();&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;For those who have very little knowledge on creating MVC Controller, don't worry. I'll explain it to you.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div  style="border: 1px solid black;color:gray;"&gt;&lt;br /&gt;&lt;pre&gt;public class &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;ProductController&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; &lt;/span&gt;: Controller&lt;br /&gt;{&lt;br /&gt;public &lt;span style="color: rgb(51, 51, 255);"&gt;ActionResult &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;Index&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0); font-weight: bold;"&gt;int parameter1, string parameter2&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;br /&gt;{&lt;br /&gt;//Add action logic here&lt;br /&gt;return &lt;span style="color: rgb(51, 51, 255);"&gt;View();&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;Color Coded (above) Explanation:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;RED:&lt;/span&gt; The Controller Name. In making a controller you must keep this format, ControllerName + Controller.&lt;br /&gt;&lt;/div&gt;Examples:&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr style="background-color: rgb(51, 204, 0); color: black;"&gt;&lt;td style="font-weight: bold;"&gt;Controller Name&lt;/td&gt;&lt;td style="font-weight: bold;"&gt;Controller Class Name&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Profile&lt;/td&gt;&lt;td&gt;ProfileController&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Department&lt;br /&gt;&lt;/td&gt;&lt;td&gt;DepartmentController&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Request&lt;/td&gt;&lt;td&gt;RequestController&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;You should also remember that if you create a view on this controller you must create a new folder under the views with the same name of your Controller Name.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(0, 153, 0); font-weight: bold;"&gt;Green:&lt;/span&gt; The Action Method. This is the method in which your logic will be implemented. As default, Action Method Name (with return value of ActionResult) should be always the same as the ViewPage Name you want to render. If you want to render a ViewPage that is not the same as Action Method's Name, then you should specify it in the View() Method.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;EXAMPLE:&lt;br /&gt;return View("AnotherViewPage");&lt;br /&gt;&lt;br /&gt;&lt;a href="http://quickstarts.asp.net/3-5-extensions/mvc/MvcViews.aspx" target="_blank"&gt;(Click this for the Reference)&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;BLUE:&lt;/span&gt; Action Method return value.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;ActionResult Return Type&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;All action methods must return an instance a class that is derived from ActionResult. The ActionResult class is the base for all action results. However, there are different action result types, depending on the action that the action method is taking. For example, the most common action is to call the View method. The View method returns an instance of the ViewResult class, which is derived from ActionResult.&lt;/p&gt;&lt;p&gt;The following list shows the built-in action result types.&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;p&gt;ViewResult. Returned by the View method.&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;p&gt;RedirectToRouteResult. Returned by the RedirectToAction and RedirectToRoute methods.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RedirectResult. Returned by the Redirect method.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;ContentResult. Returned by the Content method.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;JsonResult. Return by the Json method.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;EmptyResult. Returned if the action method must return a null result.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-7136155660978496915?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3YZ60DgirIvtlDki_fEc-TJG-Ss/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3YZ60DgirIvtlDki_fEc-TJG-Ss/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3YZ60DgirIvtlDki_fEc-TJG-Ss/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3YZ60DgirIvtlDki_fEc-TJG-Ss/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/R1Kbacr7rRA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/7136155660978496915/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=7136155660978496915" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/7136155660978496915?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/7136155660978496915?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/R1Kbacr7rRA/creating-controller-aspnet-mvc.html" title="Creating Controller ASP.Net MVC Framework" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/08/creating-controller-aspnet-mvc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4ESHc9eyp7ImA9WxVTFUs.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-1184233849469846285</id><published>2008-08-27T22:04:00.023+08:00</published><updated>2008-12-29T23:35:09.963+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-29T23:35:09.963+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mvc" /><category scheme="http://www.blogger.com/atom/ns#" term="framework" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>ASP.Net MVC Framework Introduction</title><content type="html">&lt;div style="text-align: justify;"&gt;MVC stands for &lt;b&gt;Model - View - Controller&lt;/b&gt; and is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Model&lt;/h3&gt;Used to accessing, retrieving, using, and maintaining data.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;View&lt;/h3&gt;Used for displaying all the data.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Controller&lt;/h3&gt;Used to handle things from &lt;b&gt;View to Model&lt;/b&gt; and From &lt;b&gt;Model to View&lt;/b&gt;. The interaction between View and Model happens in the Controller.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Release History:&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;ASP.NET MVC Framework ( December 10, 2007)&lt;/li&gt;&lt;li&gt;ASP.NET MVC Preview 2 ( March 5, 2008 )&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ASP.NET MVC Preview 3 ( May 1, 2008 )&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ASP.NET MVC Preview 4 ( July 16, 2008 )&lt;/li&gt;&lt;li&gt;ASP.NET MVC Preview 5 ( August 28, 2008 )&lt;/li&gt;&lt;li&gt;ASP.NET MVC Beta ( October 16, 2008 )&lt;/li&gt;&lt;li&gt;ASP.NET MVC Release (expected to be released on, January, 2009)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/mvc/" target="_blank"&gt;ASP.NET MVC Official Website&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-1184233849469846285?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TLfL_1XQpTFdC5uQHMBqf11RHQA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TLfL_1XQpTFdC5uQHMBqf11RHQA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TLfL_1XQpTFdC5uQHMBqf11RHQA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TLfL_1XQpTFdC5uQHMBqf11RHQA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/tNzUNYjFOBs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/1184233849469846285/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=1184233849469846285" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/1184233849469846285?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/1184233849469846285?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/tNzUNYjFOBs/aspnet-mvc-framework-introduction.html" title="ASP.Net MVC Framework Introduction" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/08/aspnet-mvc-framework-introduction.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QDRH8zfyp7ImA9WxZXFU4.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-5925198958595568284</id><published>2008-03-03T14:39:00.012+08:00</published><updated>2008-03-03T16:02:55.187+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-03T16:02:55.187+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="web user controls" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><title>User Controls for Reusable Forms</title><content type="html">&lt;div style="text-align: justify;"&gt;ASP.NET Web User Controls are very useful to minimize the development time of a project. It helps to reuse the codes all over again without recoding it. Image if you created a code that has 1000 lines and used in two tables. This would take you to change about 50%-80% of your codes in the second table. However, if you used Web User Controls, you will only need to change/set the property you want and takes you more or less 10% total time to put it in the second table. Another advantage of User Controls is that if you change anything in the code, you don't need to change all the other similar codes, all the others will automatically changed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;STANDARDIZATION NOTES:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;You must use User Controls if that code can still be used in other forms.&lt;/li&gt;&lt;li&gt;If the query varies but the results are still the same usage of User Control is Recommended.&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;Example:&lt;br /&gt;Create a blogging table. Blogs will be differentiated as &lt;span style="font-style: italic; font-weight: bold;"&gt;Draft &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;and &lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Published&lt;/span&gt;. All &lt;span style="font-weight: bold; font-style: italic;"&gt;Unregistered Users &lt;/span&gt;can only view all the blogs published by all Registered Users. &lt;span style="font-style: italic; font-weight: bold;"&gt;Registered user&lt;/span&gt; can still view all published blogs by all users but &lt;span style="font-weight: bold;"&gt;has a management page&lt;/span&gt; where he/she can view all his blog work may it published or still a draft. Draft Blogs are in one table and Published Blogs are on the other table.&lt;br /&gt;&lt;br /&gt;In this example there are three queries, the All Published &lt;span style="font-weight: bold;"&gt;(AP)&lt;/span&gt;, Published by User &lt;span style="font-weight: bold;"&gt;(PU)&lt;/span&gt;, and Drafted by User &lt;span style="font-weight: bold;"&gt;(DU)&lt;/span&gt;. There is also one table, the blogging table &lt;span style="font-weight: bold;"&gt;(BT)&lt;/span&gt; but will be use for three times, in the Blog page, Management Page Draft area, and Management Page Published area. To save development time it is obvious to use the ASP.NET Web User Control. However there three different queries that we must follow. To solve this we must have a &lt;span style="font-weight: bold;"&gt;User Control Property&lt;/span&gt; that determines what query to be used. You can create an &lt;a href="http://msdn2.microsoft.com/en-us/library/cc138362.aspx"&gt;Enumeration&lt;/a&gt; to be represent those queries.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 255);"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public enum&lt;/span&gt; &lt;/span&gt;QueryType{ AllPublished,   Drafted, Published, None } &lt;span style="color: rgb(0, 153, 0);"&gt;//None Represents nothing was selected and returns nothing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To set the Property:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public &lt;/span&gt;&lt;span style="color: rgb(0, 204, 204);"&gt;QueryType&lt;/span&gt; ViewBlog{&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;set&lt;/span&gt;{&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;if&lt;/span&gt; (&lt;span style="color: rgb(51, 102, 255);"&gt;value &lt;/span&gt;== &lt;span style="color: rgb(0, 204, 204);"&gt;QueryType&lt;/span&gt;.AllPublished){&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//Do the query here&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;else if&lt;/span&gt; (&lt;span style="color: rgb(51, 102, 255);"&gt;value &lt;/span&gt;== &lt;span style="color: rgb(0, 204, 204);"&gt;QueryType&lt;/span&gt;.Published){&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//Do the query here&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;else if&lt;/span&gt; (&lt;span style="color: rgb(51, 102, 255);"&gt;value &lt;/span&gt;== &lt;span style="color: rgb(0, 204, 204);"&gt;QueryType&lt;/span&gt;.Drafted){&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//Do the query here&lt;/span&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;If you add this User Control in the web page and look at its property, you will see  another property (ViewBlog) in the MISC property. Use this property to set the values of the User Control.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-5925198958595568284?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1tllZErAXkC1lf36fiw9eLDMXOM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1tllZErAXkC1lf36fiw9eLDMXOM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1tllZErAXkC1lf36fiw9eLDMXOM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1tllZErAXkC1lf36fiw9eLDMXOM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/9pGzYuPd7o4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/5925198958595568284/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=5925198958595568284" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/5925198958595568284?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/5925198958595568284?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/9pGzYuPd7o4/user-controls-for-reusable-forms.html" title="User Controls for Reusable Forms" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/03/user-controls-for-reusable-forms.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cMRXgyfyp7ImA9WxdaGEk.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-8704342605433334376</id><published>2008-02-27T18:35:00.006+08:00</published><updated>2008-08-27T22:58:04.697+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-27T22:58:04.697+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="database access layer" /><category scheme="http://www.blogger.com/atom/ns#" term="sql database standards" /><category scheme="http://www.blogger.com/atom/ns#" term="access layer" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net database access layer" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net access layer" /><category scheme="http://www.blogger.com/atom/ns#" term="asp.net database" /><title>ASP .Net Database Access Layer Standards</title><content type="html">&lt;p style="text-align: justify;" class="MsoNormal"&gt;In a professional ASP.Net programming world, an IT company should have standards on how to access the database on every programming tasks they have. We have already determined the &lt;a href="http://csharp-allen007.blogspot.com/2008/02/sql-standards.html"&gt;SQL Database Standards&lt;/a&gt;.  Now we need to determine how to access and use it in our ASP.Net Projects. But first we need to point out the following words:&lt;/p&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Datasets &lt;/span&gt;- a collection of &lt;a id="ctl00_rs1_mainContentContainer_ctl44" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe158055_c|ctl00_rs1_mainContentContainer_ctl44',this);" href="http://msdn2.microsoft.com/en-us/library/9186hy08%28VS.80%29.aspx"&gt;DataTable&lt;/a&gt; objects that you can relate to each other with &lt;a id="ctl00_rs1_mainContentContainer_ctl45" onclick="javascript:Track('ctl00_rs1_mainContentContainer_cpe158055_c|ctl00_rs1_mainContentContainer_ctl45',this);" href="http://msdn2.microsoft.com/en-us/library/dz0az7c7%28VS.80%29.aspx"&gt;DataRelation&lt;/a&gt; objects. &lt;span style="font-style: italic;font-size:78%;" &gt;(MSDN)&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Database Factory&lt;/span&gt; - it is a compilation of codes which is used to access the database. Those functions/methods involved in the codes can be used all over again, thus, boosting the productivity of a programmer.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Data Sources &lt;/span&gt;- is a representation of data.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-8704342605433334376?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Z0yKPIgByyYU9cRxgeFKPbHE69I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z0yKPIgByyYU9cRxgeFKPbHE69I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Z0yKPIgByyYU9cRxgeFKPbHE69I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z0yKPIgByyYU9cRxgeFKPbHE69I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/B4v7MXGPBe8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/8704342605433334376/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=8704342605433334376" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/8704342605433334376?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/8704342605433334376?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/B4v7MXGPBe8/asp-net-database-access-layer-standards.html" title="ASP .Net Database Access Layer Standards" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/02/asp-net-database-access-layer-standards.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEBR3Y8fSp7ImA9WxRQFEo.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-7148235310142801273</id><published>2008-02-26T17:56:00.029+08:00</published><updated>2008-10-08T23:10:56.875+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-08T23:10:56.875+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql database standards" /><category scheme="http://www.blogger.com/atom/ns#" term="sql standards" /><title>SQL Database Standards</title><content type="html">&lt;span style="font-weight: bold;"&gt;Table Basics&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Table Names&lt;/span&gt; - Should alway be&lt;span style="font-weight: bold;"&gt;&lt;/span&gt; in the same meaning with the referred object/item.&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Example:&lt;/span&gt;&lt;/span&gt; Create a table that stores the basic information of a person.&lt;br /&gt;So, the table name should be named as &lt;span style="font-weight: bold; font-style: italic;"&gt;Persons&lt;/span&gt;&lt;span style="font-style: italic;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Field Names &lt;/span&gt;- Should always be in the same meaning with the referred object/item.&lt;/li&gt;&lt;/ul&gt; &lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Example:&lt;/span&gt;&lt;/span&gt; Create a table that stores the basic information of a person.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-size:78%;"&gt;Informations:&lt;/span&gt; &lt;/span&gt;Given Name, Family Name, Birth Date, Home Address&lt;br /&gt;So, the table fields must be like this:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;personID (Primary Key)&lt;/li&gt;&lt;li&gt;firstname (Given Name)&lt;/li&gt;&lt;li&gt;lastname (Family Name)&lt;/li&gt;&lt;li&gt;birthDate (Birth Date)&lt;/li&gt;&lt;li&gt;homeAddress (Home Address)&lt;/li&gt;&lt;/ol&gt; &lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;CRUD Methods&lt;/span&gt; (Create, Read, Update, and Delete) - All SQL queries should be in the &lt;span style="font-style: italic;"&gt;Stored Procedures&lt;/span&gt;. However, if the query involves two or more tables and is used not only for Reading, you can create another Stored Procedure provided it has proper naming conventions (&lt;span style="font-style: italic;"&gt;See: Stored Procedures &lt;/span&gt;&lt;span style="font-style: italic;"&gt;Section&lt;/span&gt;&lt;span style="font-style: italic;"&gt;)&lt;/span&gt;. If the query involves two or more tables and is only used for Reading (SELECT Command) it should be created as &lt;span style="font-style: italic;"&gt;Views&lt;/span&gt; and should by named as format Vw_[database name or initials]_[table name].&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Example:&lt;/span&gt;&lt;/span&gt; Create a Views for Persons Table in SocietyInformation database. So, the Views  name would be: &lt;span style="font-style: italic; font-weight: bold;"&gt;Vw_SocietyInformation_Persons&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Stored Procedures&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Creation &lt;/span&gt;- there should only be one stored procedure for each table.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Naming &lt;/span&gt;- Should always be in the same name as the table referred plus "Sp_" (Stands for Stored Procedure) and the database name or initials , as the first letters, followed by the underscore symbol. The format should be like this: Sp_[database name or initials]_[table name]&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Example:&lt;/span&gt;&lt;/span&gt; Create a stored procedure for Persons Table in SocietyInformation database.&lt;br /&gt;So, the Store Procedure name would be: &lt;span style="font-style: italic; font-weight: bold;"&gt;Sp_SocietyInformation_Persons&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;However, if the Store Procedure involves two or more tables and is used not only for Reading, the Stored Procedure's last section name should be the name of the process made. The format should be like this: SP_[database name or initials]_[process name]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-style: italic;"&gt;Example:&lt;/span&gt;&lt;/span&gt; Create a stored procedure for Adding, Viewing, Editing, and Deleting a Family Tree.&lt;br /&gt;So, the Store Procedure name would be: &lt;span style="font-style: italic; font-weight: bold;"&gt;Sp_SocietyInformation_FamilyTree&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Variable Names &lt;/span&gt;- Stored Procedure must always have @option variable, for selecting the section, and @ReturnValue, as the result return value (commonly used to get SCOPE_IDENTITY()) and will be the Reserved VariableNames. Other variables must be in the same meaning of its field name. Use synonyms for the variable whose field name is the same as the two Reserved Variable Names.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Sections &lt;/span&gt;- Stored Procedures must be divided into sections for every CRUD method involved. Sections are selected by @option variable. These sections are as follows:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Creating &lt;/span&gt;&lt;span&gt;(&lt;span style="font-style: italic;"&gt;INSERT Command&lt;/span&gt;)&lt;/span&gt; - &lt;span style="color: rgb(255, 0, 0);"&gt;@option = 1 to 200&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Reading &lt;/span&gt;&lt;span&gt;(&lt;span style="font-style: italic;"&gt;SELECT Command&lt;/span&gt;)&lt;/span&gt; - &lt;span style="color: rgb(255, 0, 0);"&gt;@option = 601 up&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Updating &lt;/span&gt;&lt;span&gt;(&lt;span style="font-style: italic;"&gt;UPDATE Command&lt;/span&gt;)&lt;/span&gt; - &lt;span style="color: rgb(255, 0, 0);"&gt;@option = 201 to 400&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Deleting &lt;/span&gt;&lt;span&gt;(&lt;span style="font-style: italic;"&gt;DELETE Command&lt;/span&gt;)&lt;/span&gt; - &lt;span style="color: rgb(255, 0, 0);"&gt;@option = 401 to 600&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;Note: Reading Section has 601 up sections because SELECT Command is the most used Command in SQL.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 102, 102);font-family:webdings;font-size:180%;"  &gt;SAMPLE&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;---------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Situation:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create a database so that a company can see its old and new employees. The database name is &lt;span style="font-weight: bold;"&gt;CompanyInformation&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Tables:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Persons&lt;/li&gt;&lt;ul&gt;&lt;li&gt;personID (&lt;span style="font-style: italic;"&gt;PK&lt;/span&gt;)&lt;/li&gt;&lt;li&gt;firstname&lt;/li&gt;&lt;li&gt;lastname&lt;/li&gt;&lt;li&gt;homeAddress&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Company&lt;/li&gt;&lt;ul&gt;&lt;li&gt;companyID (&lt;span style="font-style: italic;"&gt;PK&lt;/span&gt;)&lt;/li&gt;&lt;li&gt;companyName&lt;/li&gt;&lt;li&gt;address&lt;/li&gt;&lt;li&gt;businessType&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Employments&lt;/li&gt;&lt;ul&gt;&lt;li&gt;employmentID (&lt;span style="font-style: italic;"&gt;PK&lt;/span&gt;)&lt;/li&gt;&lt;li&gt;employmentDate&lt;/li&gt;&lt;li&gt;position&lt;br /&gt;&lt;/li&gt;&lt;li&gt;companyID (&lt;span style="font-style: italic;"&gt;FK&lt;/span&gt;)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;personID (&lt;span style="font-style: italic;"&gt;FK&lt;/span&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Stored Procedures:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Sp_CompanyInformation_Persons&lt;/li&gt;&lt;ul&gt;&lt;li style="color: rgb(204, 102, 204); font-weight: bold;"&gt;Variables&lt;/li&gt;&lt;ul&gt;&lt;li&gt;@option&lt;/li&gt;&lt;li&gt;@ReturnValue&lt;/li&gt;&lt;li&gt;@personID&lt;br /&gt;&lt;/li&gt;&lt;li&gt;@firstname&lt;/li&gt;&lt;li&gt;@lastname&lt;/li&gt;&lt;li&gt;@homeAddress&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-weight: bold; color: rgb(204, 51, 204);"&gt;Query&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;IF &lt;/span&gt;@option = 1&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;INSERT INTO &lt;span style="color: rgb(0, 0, 0);"&gt;Persons&lt;/span&gt;&lt;/span&gt;(firstname, lastname, homeAddress)&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;VALUES&lt;/span&gt;(@firstname, @lastname, homeAddress)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SET &lt;/span&gt;@ReturnValue = SCOPE_IDENTITY()&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF&lt;span style="color: rgb(0, 0, 0);"&gt;@option = 201&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;UPDATE &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Persons&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;SET&lt;br /&gt;    &lt;/span&gt;firstname = @firstname,&lt;br /&gt;lastname = @lastname,&lt;br /&gt;homeAddress = @homeAddress&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;WHERE &lt;/span&gt;personID &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;= @&lt;/span&gt;&lt;/span&gt;personID&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = @personID&lt;br /&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 401&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DELETE &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Persons&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;WHERE &lt;/span&gt;personID &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;= @&lt;/span&gt;&lt;/span&gt;personID&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = @personID&lt;br /&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 601&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;SELECT &lt;span style="color: rgb(0, 0, 0);"&gt;*&lt;/span&gt; FROM &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Persons&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;END&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Sp_CompanyInformation_Company&lt;/li&gt;&lt;ul style="font-weight: bold; color: rgb(204, 51, 204);"&gt;&lt;li&gt;Variables&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;@option&lt;/li&gt;&lt;li&gt;@ReturnValue&lt;/li&gt;&lt;li&gt;@companyID&lt;br /&gt;&lt;/li&gt;&lt;li&gt;@companyName&lt;/li&gt;&lt;li&gt;@address&lt;/li&gt;&lt;li&gt;@businessType&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-weight: bold; color: rgb(204, 51, 204);"&gt;Query&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;IF &lt;/span&gt;@option = 1&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;INSERT INTO &lt;span style="color: rgb(0, 0, 0);"&gt;Company&lt;/span&gt;&lt;/span&gt;(companyName, address, businessType)&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;VALUES&lt;/span&gt;(@companyName, @address, @busineessType)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SET &lt;/span&gt;@ReturnValue = SCOPE_IDENTITY()&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF&lt;span style="color: rgb(0, 0, 0);"&gt;@option = 201&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;UPDATE &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Company&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;SET&lt;br /&gt;    &lt;/span&gt;    companyName = @companyName,&lt;br /&gt;       address = @address,&lt;br /&gt;       businessType = @businessType&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    WHERE &lt;span style="color: rgb(0, 0, 0);"&gt;companyID = @&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;companyID &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;@&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;companyID &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 401&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DELETE &lt;span style="color: rgb(0, 0, 0);"&gt;Company &lt;/span&gt;WHERE &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;companyID &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;= &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;@&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;companyID &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;@&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;companyID &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt; END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 601&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;SELECT &lt;span style="color: rgb(0, 0, 0);"&gt;*&lt;/span&gt; FROM &lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Company&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;END&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Sp_CompanyInformation_Employment&lt;/li&gt;&lt;ul&gt;&lt;li style="font-weight: bold; color: rgb(204, 51, 204);"&gt;Variables&lt;/li&gt;&lt;ul&gt;&lt;li&gt;@option&lt;/li&gt;&lt;li&gt;@ReturnValue&lt;/li&gt;&lt;li&gt;@employmentID&lt;/li&gt;&lt;li&gt;@employmentDate&lt;/li&gt;&lt;li&gt;@position&lt;br /&gt;&lt;/li&gt;&lt;li&gt;@companyID&lt;br /&gt;&lt;/li&gt;&lt;li&gt;@personID&lt;/li&gt;&lt;/ul&gt;&lt;li style="font-weight: bold; color: rgb(204, 51, 204);"&gt;Query&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;IF &lt;/span&gt;@option = 1&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;INSERT INTO &lt;/span&gt;Employments(employmentDate, position, companyID, personID)&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;VALUES&lt;/span&gt;(@employmentDate, @position, @companyID, @personID)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;SET &lt;/span&gt;@ReturnValue = SCOPE_IDENTITY()&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF&lt;span style="color: rgb(0, 0, 0);"&gt;@option = 201&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;UPDATE &lt;span style="color: rgb(0, 0, 0);"&gt;Employments &lt;/span&gt;SET&lt;br /&gt;    &lt;/span&gt;    employmentDate = @employmentDate,&lt;br /&gt;       position = @position,&lt;br /&gt;       companyID = @companyID,&lt;br /&gt;       personID = @personID&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    WHERE &lt;span style="color: rgb(0, 0, 0);"&gt;employmentID = @employmentID&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = @&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;employmentID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 401&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;DELETE &lt;span style="color: rgb(0, 0, 0);"&gt;Employment &lt;/span&gt;WHERE &lt;span style="color: rgb(0, 0, 0);"&gt;employmentID = @employmentID&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;    SET &lt;/span&gt;@ReturnValue = @&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;employmentID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;Return &lt;/span&gt;@ReturnValue&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;END&lt;br /&gt;&lt;br /&gt;ELSE IF &lt;span style="color: rgb(0, 0, 0);"&gt;@option = 601&lt;/span&gt;&lt;br /&gt;BEGIN&lt;br /&gt;SELECT &lt;span style="color: rgb(0, 0, 0);"&gt;*&lt;/span&gt; FROM &lt;span style="color: rgb(0, 0, 0);"&gt;Employment&lt;/span&gt;&lt;br /&gt;END&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-7148235310142801273?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vgvzZTIXOY0v5pWkI0Y0h1nsHkc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vgvzZTIXOY0v5pWkI0Y0h1nsHkc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vgvzZTIXOY0v5pWkI0Y0h1nsHkc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vgvzZTIXOY0v5pWkI0Y0h1nsHkc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/n_e2_Ec-HcI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/7148235310142801273/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=7148235310142801273" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/7148235310142801273?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/7148235310142801273?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/n_e2_Ec-HcI/sql-standards.html" title="SQL Database Standards" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/02/sql-standards.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QCQHgyfCp7ImA9WxZSFUs.&quot;"><id>tag:blogger.com,1999:blog-4057532179067962573.post-2300648621712455153</id><published>2008-01-25T07:46:00.001+08:00</published><updated>2008-01-29T09:16:01.694+08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-29T09:16:01.694+08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="agent007 games" /><category scheme="http://www.blogger.com/atom/ns#" term="Super Sweeper" /><category scheme="http://www.blogger.com/atom/ns#" term="minesweeper" /><category scheme="http://www.blogger.com/atom/ns#" term="Games" /><title>My Very First Produced Game</title><content type="html">At last I have finished my very own game. Its called the "Super Sweeper". It is a minesweeper, winmine as windows called it,  like games that you need to defuse mines that are created randomly. Colorful numbered clues are also provided so that you can pin-point the location of a mine. In addition to the minesweeper game, there are new features that the gamer would really loved.  These are the Following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Point System - points are based by the clues opened, mines defused, mistakes committed, time elapsed, round bonus, and the remaining life in a round.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;High Scores - high score will be based in points, not in time.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Level-based mine count - number of mines increase as level increases.&lt;/li&gt;&lt;li&gt;Life Points - has 10 Max. life in the game.&lt;/li&gt;&lt;li&gt;Bonus Life Rewards - a bonus life will be rewarded if there will be no mistake in a round.&lt;/li&gt;&lt;li&gt;Round Bonus - round bonus is a point reward that will be given if you will have 3, at the most, mistakes.&lt;/li&gt;&lt;/ul&gt;To those who love to play windows minesweeper, you can try this at home.  I hope you'll loved it. I'll post soon the address where you can download it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4057532179067962573-2300648621712455153?l=csharpdotnetdev.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/77niPVlsgJMzZfEbk-6Cojr0HT8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/77niPVlsgJMzZfEbk-6Cojr0HT8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/77niPVlsgJMzZfEbk-6Cojr0HT8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/77niPVlsgJMzZfEbk-6Cojr0HT8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/KrNB/~4/jtIXlzHBfE0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://csharpdotnetdev.blogspot.com/feeds/2300648621712455153/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=4057532179067962573&amp;postID=2300648621712455153" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/2300648621712455153?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4057532179067962573/posts/default/2300648621712455153?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/KrNB/~3/jtIXlzHBfE0/my-very-first-produced-game.html" title="My Very First Produced Game" /><author><name>allen007</name><uri>http://www.blogger.com/profile/09605207889718679622</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://csharpdotnetdev.blogspot.com/2008/01/my-very-first-produced-game.html</feedburner:origLink></entry></feed>

