<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="VbProjectDownloads" title="Project Downloads" %>
<%@ Import Namespace="System.IO"%>


<script runat="server" language="VB">
    Sub downloadProject(ByVal sender As Object, ByVal e As EventArgs)
        Dim fileName As String = ""
        Dim filePath As String = ""
        
        Response.ContentType = "application\octet-stream"
        
        Select Case CType(sender, Button).ID
            Case "btnColorPicker"
                fileName = "ColorPicker.zip"
                filePath = "ProjectDownloads/ColorPicker.zip"
            Case "btnCompactDisc"
                fileName = "CompactDiscCollection.zip"
                filePath = "ProjectDownloads/CompactDiscCollection.zip"
            Case "btnElement"
                fileName = "ElementProject.zip"
                filePath = "ProjectDownloads/ElementProject.zip"
            Case "btnHospital"
                fileName = "Hospital Reagent Program.zip"
                filePath = "ProjectDownloads/Hospital Reagent Program.zip"
            Case "btnState"
                fileName = "StateGame.zip"
                filePath = "ProjectDownloads/StateGame.zip"
            Case "btnPersonalProfile"
                fileName = "PersonProfile.zip"
                filePath = "ProjectDownloads/PersonProfile.zip"
            Case "btnSimpleBind"
                fileName = "SimpleDataBinding.zip"
                filePath = "ProjectDownloads/SimpleDataBinding.zip"
        End Select
            
        If Not fileName.Equals("") Or Not filePath.Equals("") Then
            Response.AddHeader("Content-Disposition", "inline; filename=" + fileName)
            Response.WriteFile(filePath)
            Response.Flush()
            Response.End()
        Else
            
        End If
        
        
        
    End Sub
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="headerContent" Runat="Server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="rightColumnContent" Runat="Server">
    <table width ="1000">
<tr>
<td><table id="tblCompactDiscCollection" 
        style="border: thin solid #000000;"3" >
    <tr>
    <td><b>Project Name&nbsp;&nbsp;&nbsp;</b></td> 
    <td style="width: 900px">Compact Disc Collection</td>
    </tr>
    <tr>
    <td><b>Details&nbsp;&nbsp;&nbsp;</b></td>
    <td style="width: 900px">Keep track of your compact disc collection with this program. Add, edit and delete items to your collection. </td>
    </tr>
    <tr>
    <td><b>Size&nbsp;&nbsp;&nbsp;</b></td>
    <td style="width: 900px">1.43 MB</td>
    </tr>
    <tr>
    <td><b>Extension&nbsp;&nbsp;&nbsp;</b></td>
    <td style="width: 900px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords&nbsp;&nbsp;&nbsp;</b></td>
    <td style="width: 900px"><a href="http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx">ArrayList</a> , <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.aspx">BindingSource</a> , <a href="http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx">DataTable</a> ,
    <a href="http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx">FileStream</a> , <a href="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx">StringBuilder</a> , <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx">XmlDocument</a> , <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlexception.aspx">XmlException</a> , 
    <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlnodelist.aspx">XmlNodeList</a> , <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmltextreader.aspx">XmlTextReader</a>, <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmltextwriter.aspx">XmlTextWriter</a> </td>
    </tr>
    <tr>
    <td><b>License&nbsp;&nbsp;&nbsp;</b></td>
    <td style="width: 900px"><asp:Button ID="btnCompactDisc" runat="server" OnClick="downloadProject" Text="Free Download" /></td>
    </tr>
    </table>
</td>
</tr>   
    
  <tr> 
  <td>
<table id="tblColorPicker" style="border: thin solid #000000;"3">
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td style="width: 901px">ColorPicker</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td style="width: 901px">Choose the color by using two different color pickers. Slider control chooses a value of an alpha, 
        red, green, and blue value to automatically see the color.</td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td style="width: 901px">63.5 KB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td style="width: 901px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td style="width: 901px"><a href="http://msdn.microsoft.com/en-us/library/bb980062(VS.95).aspx">Color</a> , <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.fontdialog.aspx">FontDialog</a></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td style="width: 901px"> <asp:Button ID="btnColorPicker" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
  </tr> 
    
 <tr>
 <td>
<table id="tblPersonalProfile" style="border: thin solid #000000;"3">
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td>PersonProfile</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td>A WPF program that adds a personal profile of a person to an xml file. The program can retrieve the personal profile and display it into a datagridview control.</td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td>1.66 MB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td>.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td><a href="http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx">ArrayList</a> , <a href="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.binary.binaryformatter.aspx">BinaryFormatter</a> , <a href="http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx">FileStream</a></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td><asp:Button ID="btnPersonalProfile" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
 </tr> 
    
  <tr>  
  <td>
<table id="tblHospitalReagent" style="border: thin solid #000000;"3">
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td style="width: 900px">Hospital Reagent Program</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td style="width: 900px">Hospital Reagent program allows you to save information regarding reagents used in a hospital. Add, edit and delete items to your collection.</td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td style="width: 900px">2.71 MB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td style="width: 900px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td style="width: 900px"></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td style="width: 900px"><asp:Button ID="btnHospital" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
 </tr> 
   
 <tr> 
 <td>
<table id="tblStateGame" style="border: thin solid #000000;"3">
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td style="width: 900px">StateGame</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td style="width: 900px">Retrieve a state's name, capital, state bird, state flower, and birth date in this program.</td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td style="width: 900px">152 KB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td style="width: 900px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td style="width: 900px"><a href="http://msdn.microsoft.com/en-us/library/bb980062(VS.95).aspx">Color</a></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td style="width: 900px"><asp:Button ID="btnState" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
 </tr> 
    
  <tr>  
  <td>
<table id="tblElementProject" style="border: thin solid #000000;"3" >
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td style="width: 900px">ElementProject</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td style="width: 900px">See the periodic element&#39;s atomic number, name, and symbol. Also convert sizes 
        of bytes all the way up to Yottabytes. </td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td style="width: 900px">127 KB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td style="width: 900px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td style="width: 900px"><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.filedialog.aspx">FileDialog</a> , <a href="http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx">FileInfo</a></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td style="width: 900px"><asp:Button ID="btnElement" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
 </tr>
 
  <tr>
  <td>
  <table id="tblSimpleDataBindings" style="border: thin solid #000000;"3" >
    <tr>
    <td><b><a>Project Name</a></b></td>
    <td style="width: 900px">Simple Data Binding</td>
    </tr>
    <tr>
    <td><b>Details</b></td>
    <td style="width: 900px">Shows how to bind a BindingSource to a BindingNavigator and to combobox and listbox.</td>
    </tr>
    <tr>
    <td><b>Size</b></td>
    <td style="width: 900px">8 KB</td>
    </tr>
    <tr>
    <td><b>Extension</b></td>
    <td style="width: 900px">.Zip</td>
    </tr>
    <tr>
    <td><b>Keywords</b></td>
    <td style="width: 900px"><a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.aspx">BindingSource</a> , <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.aspx">BindingNavigator</a> <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx">ComboBox</a> <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.aspx">ListBox</a></td>
    </tr>
    <tr>
    <td><b>License</b></td>
    <td style="width: 900px"><asp:Button ID="btnSimpleBind" OnClick="downloadProject" runat="server" Text="Free Download" /></td>
    </tr>
    </table>
 </td>
 </tr>
  
  </table>  
  </asp:Content>



