Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Oct 16, 2016
0 parents
commit ec948c0
Showing
3,139 changed files
with
2,235,182 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Freeware License, some rights reserved | ||
|
||
Copyright (c) 2011 Adam Freeman and Steven Sanderson | ||
|
||
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. | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
...ASP.NET MVC 3 Framework/03 - First MVC App/1. Creating a New MVC Project/PartyInvites.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyInvites", "PartyInvites\PartyInvites.csproj", "{B59711CA-8F97-4673-8972-042AED11EC6A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{B59711CA-8F97-4673-8972-042AED11EC6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B59711CA-8F97-4673-8972-042AED11EC6A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B59711CA-8F97-4673-8972-042AED11EC6A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B59711CA-8F97-4673-8972-042AED11EC6A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
28 changes: 28 additions & 0 deletions
28
... Framework/03 - First MVC App/1. Creating a New MVC Project/PartyInvites/Content/Site.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* Styles for validation helpers | ||
-----------------------------------------------------------*/ | ||
.field-validation-error | ||
{ | ||
color: #ff0000; | ||
} | ||
|
||
.field-validation-valid | ||
{ | ||
display: none; | ||
} | ||
|
||
.input-validation-error | ||
{ | ||
border: 1px solid #ff0000; | ||
background-color: #ffeeee; | ||
} | ||
|
||
.validation-summary-errors | ||
{ | ||
font-weight: bold; | ||
color: #ff0000; | ||
} | ||
|
||
.validation-summary-valid | ||
{ | ||
display: none; | ||
} |
15 changes: 15 additions & 0 deletions
15
... - First MVC App/1. Creating a New MVC Project/PartyInvites/Controllers/HomeController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Web.Mvc; | ||
|
||
namespace PartyInvites.Controllers { | ||
|
||
public class HomeController : Controller { | ||
|
||
public ViewResult Index() { | ||
|
||
int hour = DateTime.Now.Hour; | ||
ViewBag.Greeting = hour < 12 ? "Good morning" : "Good afternoon"; | ||
return View(); | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...MVC 3 Framework/03 - First MVC App/1. Creating a New MVC Project/PartyInvites/Global.asax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%@ Application Codebehind="Global.asax.cs" Inherits="PartyInvites.MvcApplication" Language="C#" %> |
35 changes: 35 additions & 0 deletions
35
... 3 Framework/03 - First MVC App/1. Creating a New MVC Project/PartyInvites/Global.asax.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
using System.Web.Routing; | ||
|
||
namespace PartyInvites { | ||
// Note: For instructions on enabling IIS6 or IIS7 classic mode, | ||
// visit http://go.microsoft.com/?LinkId=9394801 | ||
|
||
public class MvcApplication : System.Web.HttpApplication { | ||
public static void RegisterGlobalFilters(GlobalFilterCollection filters) { | ||
filters.Add(new HandleErrorAttribute()); | ||
} | ||
|
||
public static void RegisterRoutes(RouteCollection routes) { | ||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | ||
|
||
routes.MapRoute( | ||
"Default", // Route name | ||
"{controller}/{action}/{id}", // URL with parameters | ||
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults | ||
); | ||
|
||
} | ||
|
||
protected void Application_Start() { | ||
AreaRegistration.RegisterAllAreas(); | ||
|
||
RegisterGlobalFilters(GlobalFilters.Filters); | ||
RegisterRoutes(RouteTable.Routes); | ||
} | ||
} | ||
} |
132 changes: 132 additions & 0 deletions
132
...amework/03 - First MVC App/1. Creating a New MVC Project/PartyInvites/PartyInvites.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion> | ||
</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{B59711CA-8F97-4673-8972-042AED11EC6A}</ProjectGuid> | ||
<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>PartyInvites</RootNamespace> | ||
<AssemblyName>PartyInvites</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<MvcBuildViews>false</MvcBuildViews> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> | ||
<Reference Include="System.Web.WebPages" /> | ||
<Reference Include="System.Web.Helpers" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Web.DynamicData" /> | ||
<Reference Include="System.Web.Entity" /> | ||
<Reference Include="System.Web.ApplicationServices" /> | ||
<Reference Include="System.ComponentModel.DataAnnotations" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Web" /> | ||
<Reference Include="System.Web.Extensions" /> | ||
<Reference Include="System.Web.Abstractions" /> | ||
<Reference Include="System.Web.Routing" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Configuration" /> | ||
<Reference Include="System.Web.Services" /> | ||
<Reference Include="System.EnterpriseServices" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Controllers\HomeController.cs" /> | ||
<Compile Include="Global.asax.cs"> | ||
<DependentUpon>Global.asax</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Global.asax" /> | ||
<Content Include="Content\Site.css" /> | ||
<Content Include="Web.config" /> | ||
<Content Include="Web.Debug.config"> | ||
<DependentUpon>Web.config</DependentUpon> | ||
</Content> | ||
<Content Include="Web.Release.config"> | ||
<DependentUpon>Web.config</DependentUpon> | ||
</Content> | ||
<Content Include="Scripts\jquery-1.4.1.js" /> | ||
<Content Include="Scripts\jquery-1.4.1.min.js" /> | ||
<Content Include="Scripts\jquery-1.4.1-vsdoc.js" /> | ||
<Content Include="Scripts\jquery.unobtrusive-ajax.js" /> | ||
<Content Include="Scripts\jquery.unobtrusive-ajax.min.js" /> | ||
<Content Include="Scripts\jquery.validate.js" /> | ||
<Content Include="Scripts\jquery.validate.min.js" /> | ||
<Content Include="Scripts\jquery.validate.unobtrusive.js" /> | ||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" /> | ||
<Content Include="Scripts\jquery.validate-vsdoc.js" /> | ||
<Content Include="Scripts\MicrosoftAjax.js" /> | ||
<Content Include="Scripts\MicrosoftAjax.debug.js" /> | ||
<Content Include="Scripts\MicrosoftMvcAjax.js" /> | ||
<Content Include="Scripts\MicrosoftMvcAjax.debug.js" /> | ||
<Content Include="Scripts\MicrosoftMvcValidation.js" /> | ||
<Content Include="Scripts\MicrosoftMvcValidation.debug.js" /> | ||
<Content Include="Views\Web.config" /> | ||
<Content Include="Views\_ViewStart.cshtml" /> | ||
<Content Include="Views\Shared\_Layout.cshtml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Models\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Views\Home\Index.cshtml" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> --> | ||
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'"> | ||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" /> | ||
</Target> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | ||
<WebProjectProperties> | ||
<UseIIS>False</UseIIS> | ||
<AutoAssignPort>True</AutoAssignPort> | ||
<DevelopmentServerPort>2489</DevelopmentServerPort> | ||
<DevelopmentServerVPath>/</DevelopmentServerVPath> | ||
<IISUrl> | ||
</IISUrl> | ||
<NTLMAuthentication>False</NTLMAuthentication> | ||
<UseCustomServer>False</UseCustomServer> | ||
<CustomServerUrl> | ||
</CustomServerUrl> | ||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> | ||
</WebProjectProperties> | ||
</FlavorProperties> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
</Project> |
28 changes: 28 additions & 0 deletions
28
...rk/03 - First MVC App/1. Creating a New MVC Project/PartyInvites/PartyInvites.csproj.user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | ||
<WebProjectProperties> | ||
<StartPageUrl> | ||
</StartPageUrl> | ||
<StartAction>SpecificPage</StartAction> | ||
<AspNetDebugging>True</AspNetDebugging> | ||
<SilverlightDebugging>False</SilverlightDebugging> | ||
<NativeDebugging>False</NativeDebugging> | ||
<SQLDebugging>False</SQLDebugging> | ||
<ExternalProgram> | ||
</ExternalProgram> | ||
<StartExternalURL> | ||
</StartExternalURL> | ||
<StartCmdLineArguments> | ||
</StartCmdLineArguments> | ||
<StartWorkingDirectory> | ||
</StartWorkingDirectory> | ||
<EnableENC>False</EnableENC> | ||
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug> | ||
</WebProjectProperties> | ||
</FlavorProperties> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
</Project> |
35 changes: 35 additions & 0 deletions
35
.../03 - First MVC App/1. Creating a New MVC Project/PartyInvites/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using 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. | ||
[assembly: AssemblyTitle("PartyInvites")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("Microsoft")] | ||
[assembly: AssemblyProduct("PartyInvites")] | ||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("440d8c5b-b599-41ab-be0e-9b0774047674")] | ||
|
||
// 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 Revision and Build Numbers | ||
// by using the '*' as shown below: | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Oops, something went wrong.