<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SnapJag Creative Designs &#187; Programming</title>
	<atom:link href="http://www.snapjag.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snapjag.com</link>
	<description>Specialists in busines consulting, database administration, programming, hosting, photography, and creative system designs.</description>
	<lastBuildDate>Fri, 25 Nov 2011 00:59:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>WebsiteSpark Program for Noobies and Small Businesses</title>
		<link>http://www.snapjag.com/2009/09/websitespark-program-for-noobies-and-small-businesses/</link>
		<comments>http://www.snapjag.com/2009/09/websitespark-program-for-noobies-and-small-businesses/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 21:25:02 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=715</guid>
		<description><![CDATA[Microsoft has been moving at lightning speed to give software away. Especially to web professionals that want to make a huge difference in their new start-up career.  They may actually be on their way to provide a great stimulus package, that&#8217;s what I think. When Microsoft decides to give away thousands of dollars of software [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has been moving at lightning speed to give software away. Especially to web professionals that want to make a huge difference in their new start-up career.  They may actually be on their way to provide a great stimulus package, that&#8217;s what I think. When Microsoft decides to give away thousands of dollars of software for free, you should perk up and listen. <a href="http://www.microsoft.com/web/websitespark/" target="_blank">WebsiteSpark </a>is a participation program you will not want to look past.<span id="more-715"></span></p>
<p>It&#8217;s difficult to start a business and the tools to use in your profession are required to be effective and useful. Well, that effort just got a ton easier in the programming industry. There are some &#8220;hoops&#8221; to pass through and some fees that can be assessed if you exit the program early, but they are significantly less than the upfront costs to get started. A similar program was introduced last year <a href="http://www.downloadsquad.com/2008/02/19/microsoft-gives-away-free-developer-software-to-students/" target="_blank">Dreamspark </a>and enhanced this year to offer High School students with a free programming software bundle. It used to only be fore College students. Now, that same concept has been extended and is introduced to small business and noobies that want to start programming. I wish I had this opportunity when I was first starting out. I bought Visual Basic 1.0 Standard at my University at the whopping student discount price of $500.00, upfront.</p>
<p>Get on board with this and make a name for yourself. It&#8217;s definitely worth it. The worst of it is, if you exit the program and pay a measly $100.00. That&#8217;s small potatoes compared to the $1000.00 price tag for the bundle just to get the software. It&#8217;s almost like a try before you buy shareware program, but you&#8217;re actually encouraged to develop production software. What do you have to lose, $100.00, but you have everything else to gain. <a href="http://www.microsoft.com/web/websitespark/" target="_blank">WebsiteSpark </a>may be your ticket to the big leagues and eventually a big fat check.</p>
<p>So some of the conditions are:</p>
<ul>
<li>Pay $100 to exit the participating program</li>
<li>Membership can also last no more than three years, after which time Microsoft, of course, hopes you sign on as a Network Partner.</li>
<li>You must roll-out a new application or website within 6 months of joining.</li>
<li>If you hit the big times, the ride is over; but you may not care since would be living the fat life.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/09/websitespark-program-for-noobies-and-small-businesses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Dreamspark Opportunity Extended</title>
		<link>http://www.snapjag.com/2009/09/dreamspark-y-opp-ext/</link>
		<comments>http://www.snapjag.com/2009/09/dreamspark-y-opp-ext/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 20:51:51 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=709</guid>
		<description><![CDATA[The opportunity for students just got a little sweeter. It used to be that under the Dreamspark program, college students wanting to get their feet wet in programming, could signup for the program and receive some of Microsoft&#8217;s flagship programming applications for free! Yes, free! When did Microsoft ever offer something for free. Well, they [...]]]></description>
			<content:encoded><![CDATA[<p>The opportunity for students just got a little sweeter. It used to be that under the <a href="https://www.dreamspark.com/" target="_blank">Dreamspark </a>program, college students wanting to get their feet wet in programming, could signup for the program and receive some of Microsoft&#8217;s flagship programming applications for free! Yes, free! When did Microsoft ever offer something for free. Well, they got close &#8230; it is free &#8230; however, they simply want to make sure the offer is being provided to the right market group. Students.</p>
<p>The sweet spot just hit by offering this now not to just College students, but now High School students. In the grades from 9 through 12. The &#8220;very small&#8221; catch is that the students must go through a few &#8220;small&#8221; hoops to get it.  I would highly advise that anyone in school from grade 9 to college look into this &#8230; it&#8217;s great. The students in High School will need to have the assistance of a school representative to make the requests, download the keys, and download the software for the student, but that&#8217;s a small price to pay for the really small price to start getting into programming.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/09/dreamspark-y-opp-ext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>C# Missing References</title>
		<link>http://www.snapjag.com/2009/07/c-missing-reference/</link>
		<comments>http://www.snapjag.com/2009/07/c-missing-reference/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 23:08:18 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Assemblies]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Libraries]]></category>
		<category><![CDATA[References]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=635</guid>
		<description><![CDATA[If you are getting an error like &#8220;The type or namespace name does not exist in the namespace&#8221; you may have found yourself tweaking the references or the using statements in your C# code. The using statement and the referencing statement differ in that the using statement is a logical link and reference to the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are getting an error like &#8220;The type or namespace name does not exist in the namespace&#8221; you may have found yourself tweaking the references or the using statements in your C# code.</p>
<p>The using statement and the referencing statement differ in that the using statement is a logical link and reference to the namespace library, this makes it so you can shorten your qualifications to objects. Instead of typeing System.Windows.Forms.Textbox. You place a using statement &#8220;using System.Windows.Forms&#8221; at the top of your page and you only have to now use the word Textbox to reference the object. These are also usually statements to libraries within your current namespace.</p>
<p>The References are registrations to libraries and dlls that are to be used outside your namespace.</p>
<p>Recently in a project, there were a number of projects that had change adding some ENUM references that were prominently used in the application. These errors made it immpossible to build the solution. In order to rid yourself of this error, you must resolve a conflict, or supply a reference or using statement.</p>
<p>First, check the statement where the error occurs. Make sure the namespace/library that the object refers to is available in the project. If you find the source cs file, look to see if the Namespace is different than where the object is being used. If they are different, then either fully qualify the namespace in front of the object, or add the &#8220;using &lt;full namespace&gt;;&#8221; statement at the top.</p>
<p>Try and compile the application, if you still have the error, then look in the current project (where the error occurs) References list and see if the assembly/library is there. It&#8217;s it isn&#8217;t, then add the new Reference by either locating the .NET object, COM object, project, or file.</p>
<p>When this has been added, try compiling again. If you still get the error, then you&#8217;ll have write some comments here and provide your code for me to be able to help you further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/07/c-missing-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Using properties in an ASP.net Web Control</title>
		<link>http://www.snapjag.com/2009/04/using-properties-in-an-aspnet-web-control/</link>
		<comments>http://www.snapjag.com/2009/04/using-properties-in-an-aspnet-web-control/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:28:04 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Web Control]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=465</guid>
		<description><![CDATA[When creating a web control in an ASP.net application many times you will need to make references to information, data values and other contents of the web control from the web control parent. This is done by adding a Property statement on the control. It could be as simple as a Username and Password control [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a web control in an ASP.net application many times you will need to make references to information, data values and other contents of the web control from the web control parent. This is done by adding a Property statement on the control. It could be as simple as a Username and Password control to set or get the information at times of requesting login details.</p>
<p>Follow these steps to connect and use data on the User Web Control:</p>
<ol>
<li>Create a new Web Control in your application project</li>
<li>Place two label and two textboxes on the control</li>
<li>Name the two controls txtUsername and txtAddress</li>
<li>In the code behind of the control add the following code (C#)private string username = String.Empty;<br />
private string password; = String.Empty;</li>
<p>public string Username {<br />
get { return username; }<br />
set { set username = value; }<br />
}</p>
<p>public string Password{<br />
get { return password; }<br />
set { set password; = value; }<br />
}</p>
<li>Close the control designer windows, saving all changes</li>
<li>Open the web page that will use the control</li>
<li>Drag and drop the new web control onto the web page canvas (if you already had the web control on your webpage and you added new interface elements (public functions or properties), you will likely need to remove the controls including the REGISTER statements at the top of the page so that the interface elements are reconnected to the page for you.</li>
<li>In the code behind the web page, make any references to the Tag name of the control (assuming &#8220;uc1&#8243; in this case) using the following statements (C#).this.uc1.Username = &#8220;Your username&#8221;;<br />
this.uc1.Password{ = &#8220;Your password&#8221;;</li>
</ol>
<p>This concludes the tutorial to add a simple web control and connect to it from the parent web page where it resides. This concept will help in many ways like, login pages, bread crumbs, contained lists, or other user interface lists.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/04/using-properties-in-an-aspnet-web-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>C# GridView rows not vertically aligned</title>
		<link>http://www.snapjag.com/2009/03/gridview-rows-not-vertically-aligned/</link>
		<comments>http://www.snapjag.com/2009/03/gridview-rows-not-vertically-aligned/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:19:50 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=244</guid>
		<description><![CDATA[A recent project caused me grief until it dawned on me what the problem and the fix was. The GridView has a height property value and if it&#8217;s changed from the default (which is NULL), or to anything less than 25px (arbitrary number) you may experience an undesierable result where the GridView will vertically align [...]]]></description>
			<content:encoded><![CDATA[<p>A recent project caused me grief until it dawned on me what the problem and the fix was. The GridView has a height property value and if it&#8217;s changed from the default (which is NULL), or to anything less than 25px (arbitrary number) you may experience an undesierable result where the GridView will vertically align the rows in the middle of the control. I did this inadvertantly, creating this undesireable result, and I wanted to share with you the fix and why does this. <span id="more-276"></span></p>
<p><img class="alignright size-full wp-image-247" title="GridView Middle Vertical Alignment" src="http://gleew.files.wordpress.com/2009/03/gridviewalign01.png" alt="GridView Middle Vertical Alignment" width="367" height="147" />To recreate the issue, follow these instructions:<br />
* Create a new GridView control on your page<br />
* Set the DataSoruce to an ObjectSource control (there is more work to do here, but won&#8217;t be explained here)<br />
* Set the GridView height to 100px (arbitrary number), or resize it in height to be at least this number; again, this is a high arbitrary number for maximum visual effect. If it&#8217;s any smaller in height, you may not see the dramatic effect.<br />
* Add ONE and only ONE row to the ObjectSource<br />
* You will see that the GridView vertically aligns the row to the middle of the control.</p>
<p><img class="alignright size-full wp-image-247" title="GridView Middle Vertical Alignment" src="http://gleew.files.wordpress.com/2009/03/gridviewalign03.png" alt="GridView Top Vertical Alignment" width="353" height="142" />To fix the issue, do this:<br />
* remove the Height value in the property</p>
<div class="mceTemp">
<div class="mceTemp">This situation presents itself when the Height property of the grid has been changed. Either by changing the Height property or resizing the height of the control. If it changes to a large value, more rows will be spaced apart. If you it&#8217;s a small number, then you probably haven&#8217;t experienced this problem, but could when you don&#8217;t add large values.</div>
</div>
<p>By default, there is no Height value so the problem doesn&#8217;t present itself. In my situation, I placed a GridView on my form inside of a Panel with a Vertical scroll on so I can scroll through the gridview rows. There are, I&#8217;m sure, other ways to accomplish this, but it was all that was required for the project.</p>
<p>When adding 5 or more rows to the GridView ObjectSource the rows were their optimal height and top-aligned. However, if I add 5 or less rows, the rows are expanded in height and are spread evenly across the height of the GridView. Especially when there is only one row &#8230; the row will show in the middle of the GridView vertically. I want it to be top-aligned. I tried everhthing, I changed properties, I added CSS styles and alignment attributes, but nothing changed the effect.</p>
<p>It dawned on me that the rows were expanding to fill the vertical height of the GridView. I checked the Height property and it was set to 88px (bolded to show that it wasn&#8217;t the default value). I changed it to 1px (again bolded, so I knew it wasn&#8217;t the default) and the problem went away. But knowing this wasn&#8217;t the default, I could possibly run in to other problems. I then assumed that a NULL Height value was the default. I erased any value in the Height property, tried it again, and it worked. I have thus left it at this value.</p>
<p>Lesson learned, when I created the control in the first place, I resized the GridView to fill the expanse of the Panel in it&#8217;s width and height. The Height property was set and the grid was trying to fill the height of the control automatically. An undesireable effect.</p>
<p>You may want this effect to exist, but just know it happens so it&#8217;s done on purpose and not by accident.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2009/03/gridview-rows-not-vertically-aligned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>SMO SQL Server Error Reading Stored Procedures Collection</title>
		<link>http://www.snapjag.com/2008/11/sql_smo_sp_error/</link>
		<comments>http://www.snapjag.com/2008/11/sql_smo_sp_error/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 17:53:17 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=123</guid>
		<description><![CDATA[The following error is appearing while running Visual Studio 2005 and developing an application with SMO capabilities. It appears when trying perform a foreach( on ActiveDB.StoredProcedures). Could not load file or assembly &#8216;Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&#8242; or one of its dependencies. An attempt was made to load a program with an incorrect format. I found [...]]]></description>
			<content:encoded><![CDATA[<p>The following error is appearing while running Visual Studio 2005 and developing an application with SMO capabilities. It appears when trying perform a <em>foreach( on ActiveDB.StoredProcedures)</em>.</p>
<blockquote><p>Could not load file or assembly &#8216;Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&#8242; or one of its dependencies. An attempt was made to load a program with an incorrect format.</p></blockquote>
<p>I found an MSDN article that recommends downloading the 64 bit SMO assembly.<span id="more-266"></span></p>
<p>Here is the Microsoft MSDN article that talks about SQL Server connectivity for both 2005 and backward compatibility.</p>
<ul>
<li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=D09C1D60-A13C-4479-9B91-9E8B9D835CDC&amp;displaylang=en" target="_blank">Feature Pack for Microsoft SQL Server 2005</a></li>
</ul>
<p>I had to close all applications, especially Visual Studio and then installed the following application.</p>
<ul>
<li><a href="http://download.microsoft.com/download/4/4/D/44DBDE61-B385-4FC2-A67D-48053B8F9FAD/SQLServer2005_ADOMD_x64.msi" target="_blank"></a><a href="http://download.microsoft.com/download/4/4/D/44DBDE61-B385-4FC2-A67D-48053B8F9FAD/SQLServer2005_XMO_x64.msi"><span><strong></strong></span></a><strong><a href="http://download.microsoft.com/download/4/4/D/44DBDE61-B385-4FC2-A67D-48053B8F9FAD/SQLServer2005_XMO_x64.msi">X64 Package</a></strong> (SQLServer2005_XMO_x64.msi) &#8211; 14675 KB</li>
</ul>
<p>My system info is:</p>
<ul>
<li>OS Name &#8211; Microsoft® Windows Vista™ Home Premium</li>
<li>Version &#8211; 6.0.6001 Service Pack 1 Build 6001</li>
<li>System Type &#8211; x64-based PC</li>
<li>Processor &#8211; AMD Turion(tm) X2 Dual-Core Mobile RM-70, 2000 Mhz, 2 Core(s), 2 Logical Processor(s)</li>
</ul>
<p>The installation took care of updating and using the latest SMO objects in the project. No removing of Assemblies or references was needed. Worked like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/11/sql_smo_sp_error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>.NET DataGridView Edit Pencil Icon</title>
		<link>http://www.snapjag.com/2008/10/net-datagridview-endedit/</link>
		<comments>http://www.snapjag.com/2008/10/net-datagridview-endedit/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 15:28:05 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=91</guid>
		<description><![CDATA[There&#8217;s a problem when editing the DataGridView. Problem: The pencil glyph icon in edit mode wouldn&#8217;t go away. Here&#8217;s the situation and the solution. Solution: If the property Virtual is set to false the glyph will go away, period. Even after doing this, a call to the EndEdit() function wasn&#8217;t required to make the glyph [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a problem when editing the DataGridView.</p>
<p>Problem: The pencil glyph icon in edit mode wouldn&#8217;t go away. Here&#8217;s the situation and the solution.</p>
<p>Solution: If the property <em>Virtual</em> is set to <em>false</em> the glyph will go away, period.</p>
<p>Even after doing this, a call to the EndEdit() function wasn&#8217;t required to make the glyph go away even though other people say that it&#8217;s required. Test it though to make sure. Suffice it to say that if you&#8217;re still having a problem after setting the <em>Virtual</em> property, then it&#8217;s something with the grid property settings or the programmatic overrides you&#8217;re doing. But this setting worked for me.</p>
<p>Any additional comments or concerns about this?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/10/net-datagridview-endedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>Visual Studio DataGridView</title>
		<link>http://www.snapjag.com/2008/10/visual-studio-datagridview/</link>
		<comments>http://www.snapjag.com/2008/10/visual-studio-datagridview/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 15:39:24 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=88</guid>
		<description><![CDATA[An application I wrote to compare values in the rows of two datagridviews, set side-by-side, will hide rows if no difference is found; which then leaves just the rows that are different. Simple enough, but an error was thrown when one of the grid&#8217;s cells was active. This is the error. Row associated with the [...]]]></description>
			<content:encoded><![CDATA[<p>An application I wrote to compare values in the rows of two datagridviews, set side-by-side, will hide rows if no difference is found; which then leaves just the rows that are different. Simple enough, but an error was thrown when one of the grid&#8217;s cells was active. This is the error.</p>
<pre>Row associated with the currency manager's position cannot be made invisible.</pre>
<p>The solution is to put the following command somewhere at the top of your routine before accessing the grid rows (C# code).</p>
<pre>&lt;DataGridView&gt;.CurrentCell = null</pre>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/10/visual-studio-datagridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>.NET and MySQL</title>
		<link>http://www.snapjag.com/2008/09/net-and-mysql/</link>
		<comments>http://www.snapjag.com/2008/09/net-and-mysql/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 02:15:15 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.snapjag.com/?p=427</guid>
		<description><![CDATA[Searching for a document that helps to connect a .NET web application with MySQL is hard to find. So, I thought I would provide instructions I put together while developing my own applications. The .NET infrastructure is very flexible and is easier to use than people think. Here are the steps that I went through [...]]]></description>
			<content:encoded><![CDATA[<p>Searching for a document that helps to connect a .NET web application with MySQL is hard to find. So, I thought I would provide instructions I put together while developing my own applications.</p>
<p>The .NET infrastructure is very flexible and is easier to use than people think. Here are the steps that I went through to get everything working and connected. Because I program in C# this tutorial is presented in that language. This is an outline of the process and steps to accomplish this tutorial. It helps to keep the ideas in check and that there are no missing subjects.</p>
<ol>
<li>Install <a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads" target="_blank">MySQL v5.0</a></li>
<li>Install Visual Studio (use the <a href="http://www.microsoft.com/express/download/" target="_blank">express editions</a> if you don&#8217;t have full versions)</li>
<li>Install the <a href="http://dev.mysql.com/downloads/connector/net/5.2.html" target="_blank">MySQL 5.0 .NET Data Connector v5.2</a> (for example mysql-connector-net-5.2.1.zip) or <a href="http://dev.mysql.com/downloads/connector/" target="_blank">other connector</a> of your programming choice.</li>
<li>Start building a database
<ol>
<li>A nice application to use is <a href="http://www.modelright.com/downloads.aspx" target="_blank">ModelRight 3 community edition</a></li>
<li>Create two tables and add some fields and join one of the tables to the other in a parent-child relationship</li>
<li>Generate (engineer) the database to MySQL</li>
</ol>
</li>
<li>Open Visual Studio</li>
<li>Go to the Server Explorer, right-click on Data Connections</li>
<li>Click Add Connection</li>
<li>Change the datasource to MySQL Database and make sure the Data provider is <em>.NET Framerwork Data Provider for MySQL</em> and click OK</li>
<li>Login to the server with the following:
<ol>
<li>Server name: localhost</li>
<li>User name: root</li>
<li>Password: the initial password you gave when setting up MySQL</li>
<li>Database name: This is the name of the database you will attach to. It&#8217;s possible you haven&#8217;t set one up yet, see the Building a MySQL Database below.</li>
</ol>
</li>
<li>Create a website application using Visual Studio (File | New | Website)</li>
<li>Pick ASP.NET Web Site (or ASP.NET AJAX-Enabled Web Site) if you have the <a href="http://go.microsoft.com/?linkid=7684736" target="_blank">.NET AJAX Toolkit</a> installed.</li>
<li>Add the connection string to Web.Config</li>
<li>Update App_Code data layer classes to use the schema of the database</li>
<li>Add an Object Data Connection to the web page with the following settings</li>
<li>Put a DataGridView on the screen and connect it to the Object Data Connection object with these settings</li>
<li>Run the application</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/09/net-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<price></price>	</item>
		<item>
		<title>C# Console Application Versions</title>
		<link>http://www.snapjag.com/2008/04/c-console-application-versions/</link>
		<comments>http://www.snapjag.com/2008/04/c-console-application-versions/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 16:35:44 +0000</pubDate>
		<dc:creator>snapjag</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gleew.wordpress.com/?p=21</guid>
		<description><![CDATA[Well, something stumped me. But figured it out &#8230; As part of my C# console application, I wanted to print out the version (Major.Minor.Revision) as part of the help output so I could know the release details. And without the Application object, I just wanted the simple information from the build assembly. The C# Code [...]]]></description>
			<content:encoded><![CDATA[<p>Well, something stumped me. But figured it out &#8230; As part of my C# console application, I wanted to print out the version (Major.Minor.Revision) as part of the help output so I could know the release details. And without the Application object, I just wanted the simple information from the build assembly.<span id="more-247"></span></p>
<h3>The C# Code<em><strong><br />
</strong></em></h3>
<pre>Version vrs = Environment.Version;
Console.Write("Version: {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Revision);</pre>
<p>Nice. Hope that helps you too, cause it took a little bit to sift through a lot of &#8220;mud blogs&#8221; to find it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snapjag.com/2008/04/c-console-application-versions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<price></price>	</item>
	</channel>
</rss>

