Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 11, 2016
0 parents commit 120b7f5
Show file tree
Hide file tree
Showing 879 changed files with 21,985 additions and 0 deletions.
Binary file added 2537.pdf
Binary file not shown.
Binary file added 2538.pdf
Binary file not shown.
Binary file added 9781590595466.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2005 Damon Armstrong

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


43 changes: 43 additions & 0 deletions Pro ASP.NET 2.0/Chapter01/Chapter01.sln
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\Website\", "Website\", "{3B97B629-34B8-4D99-A670-D26FDF1ABCCA}"
ProjectSection(WebsiteProperties) = preProject
ProjectReferences = "{56329FFA-B2EB-44C1-BF29-194893D08F31}|IconConfiguration.dll;"
Debug.AspNetCompiler.VirtualPath = "/Website"
Debug.AspNetCompiler.PhysicalPath = "Website\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "true"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/Website"
Release.AspNetCompiler.PhysicalPath = "Website\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Website\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "true"
Release.AspNetCompiler.Debug = "False"
VWDPort = "16900"
EndProjectSection
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "IconConfiguration", "IconConfiguration\IconConfiguration.vbproj", "{56329FFA-B2EB-44C1-BF29-194893D08F31}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed platforms = Debug|Mixed platforms
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3B97B629-34B8-4D99-A670-D26FDF1ABCCA}.Debug|Any CPU.ActiveCfg = Debug|.NET
{3B97B629-34B8-4D99-A670-D26FDF1ABCCA}.Debug|Any CPU.Build.0 = Debug|.NET
{3B97B629-34B8-4D99-A670-D26FDF1ABCCA}.Debug|Mixed platforms.ActiveCfg = Debug|.NET
{3B97B629-34B8-4D99-A670-D26FDF1ABCCA}.Debug|Mixed platforms.Build.0 = Debug|.NET
{56329FFA-B2EB-44C1-BF29-194893D08F31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56329FFA-B2EB-44C1-BF29-194893D08F31}.Debug|Mixed platforms.ActiveCfg = Debug|Any CPU
{56329FFA-B2EB-44C1-BF29-194893D08F31}.Debug|Mixed platforms.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,99 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.40607</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{56329FFA-B2EB-44C1-BF29-194893D08F31}</ProjectGuid>
<OutputType>Library</OutputType>
<StartupObject>
</StartupObject>
<RootNamespace>IconConfiguration</RootNamespace>
<AssemblyName>IconConfiguration</AssemblyName>
<MyType>Windows</MyType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<IncrementalBuild>true</IncrementalBuild>
<OutputPath>bin\</OutputPath>
<DocumentationFile>IconConfiguration.xml</DocumentationFile>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<IncrementalBuild>false</IncrementalBuild>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DocumentationFile>IconConfiguration.xml</DocumentationFile>
<NoWarn>42016,42017,42018,42019,42032</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
</ItemGroup>
<ItemGroup>
<Compile Include="IconConfigurationCollection.vb" />
<Compile Include="IconConfigurationHandler.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="IconConfigurationItem.vb" />
<Compile Include="My Project\AssemblyInfo.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="My Project\MyApplication.vb">
<AutoGen>True</AutoGen>
<DependentUpon>MyApplication.myapp</DependentUpon>
</Compile>
<Compile Include="My Project\MyResources.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>MyResources.resx</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="My Project\MySettings.vb">
<AutoGen>True</AutoGen>
<DependentUpon>MySettings.settings</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="My Project\MyResources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>MyResources.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\MyApplication.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>MyApplication.vb</LastGenOutput>
</None>
<None Include="My Project\MySettings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>MySettings.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<AppDesigner Include="My Project\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.Targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
@@ -0,0 +1,38 @@
Public Class IconConfigurationCollection
Inherits CollectionBase

'***************************************************************************
Public UnknownIconInfo As IconConfigurationItem

'***************************************************************************
Private Function GetExtensionIndex(ByVal Extension As String) As Integer

Dim IconConfigItem As IconConfigurationItem
Extension = Extension.ToUpper

For index As Integer = 0 To List.Count - 1
IconConfigItem = DirectCast(List.Item(index), IconConfigurationItem)
If IconConfigItem.Extension.ToUpper = Extension Then
Return index
End If
Next

Return -1

End Function

'***************************************************************************
Default ReadOnly Property GetIconInfo(ByVal Extension As String) As IconConfigurationItem
Get
Dim Index As Integer = GetExtensionIndex(Extension)
If Index = -1 Then Return UnknownIconInfo
Return DirectCast(List.Item(Index), IconConfigurationItem)
End Get
End Property

'***************************************************************************
Public Function Add(ByRef obj As IconConfigurationItem) As Integer
Return List.Add(obj)
End Function

End Class
@@ -0,0 +1,48 @@
Imports System.Configuration
Imports System.Xml

Public Class IconConfigurationHandler
Implements IConfigurationSectionHandler

'***************************************************************************
Public Function Create(ByVal parent As Object, _
ByVal configContext As Object, _
ByVal section As System.Xml.XmlNode) As Object _
Implements IConfigurationSectionHandler.Create

Dim ReturnObj As New IconConfigurationCollection
Dim IconItem As IconConfigurationItem

Dim IconNodes As XmlNodeList = section.SelectNodes("icon")
Dim IconNode As XmlNode
Dim ExtensionNodes As XmlNodeList
Dim ExtensionNode As XmlNode

'Acquire and Process the Icon Nodes
For Each IconNode In IconNodes
ExtensionNodes = IconNode.SelectNodes("ext")
For Each ExtensionNode In ExtensionNodes

IconItem = New IconConfigurationItem( _
IconNode.Attributes.GetNamedItem("imageUrl").Value, _
IconNode.Attributes.GetNamedItem("description").Value, _
ExtensionNode.InnerText)
ReturnObj.Add(IconItem)

Next
Next

'Acquire and Process the Unknown Icon Node
IconNode = section.SelectSingleNode("unknownIcon")
If Not IconNode Is Nothing Then
ReturnObj.UnknownIconInfo = New IconConfigurationItem( _
IconNode.Attributes.GetNamedItem("imageUrl").Value, _
IconNode.Attributes.GetNamedItem("description").Value, _
String.Empty)
End If

Return ReturnObj

End Function

End Class
@@ -0,0 +1,46 @@
Public Class IconConfigurationItem

'***************************************************************************
Private _IconImageUrl As String
Private _Description As String
Private _Extension As String

'***************************************************************************
Public Property IconImageUrl As String
Get
Return _IconImageUrl
End Get
Set(ByVal value As String)
_IconImageUrl = value
End Set
End Property
'***************************************************************************
Public Property Description As String
Get
Return _Description
End Get
Set(ByVal value As String)
_Description = value
End Set
End Property

'***************************************************************************
Public Property Extension As String
Get
Return _Extension
End Get
Set(ByVal value As String)
_Extension = value
End Set
End Property

'***************************************************************************
Public Sub New(ByVal IconImageUrlParam As String, _
ByVal DescriptionParam As String, _
ByVal ExtensionParam As String)
IconImageUrl = IconImageUrlParam
Description = DescriptionParam
Extension = ExtensionParam
End Sub

End Class
@@ -0,0 +1,35 @@
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("IconConfiguration")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("Credera")>
<Assembly: AssemblyProduct("IconConfiguration")>
<Assembly: AssemblyCopyright("Copyright @ Credera 2005")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("b940b080-b9f6-4fb3-a7b1-3e0b49b15c4c")>

' Version information for an assembly consists of the following four values:
'
' Major Version
' Minor Version
' Build Number
' Revision
'
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="Windows-1252"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>false</MySubMain>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>1</ApplicationType>
</MyApplicationData>
@@ -0,0 +1,12 @@
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

0 comments on commit 120b7f5

Please sign in to comment.