Skip to content

Commit 9075cd9

Browse files
committed
initial files
1 parent 667cb66 commit 9075cd9

File tree

200 files changed

+182668
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+182668
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.31101.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindMvcDropdownList", "BindMvcDropdownList\BindMvcDropdownList.csproj", "{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
73.5 KB
Binary file not shown.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace BindMvcDropdownList
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15+
"~/Scripts/jquery.validate*"));
16+
17+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
18+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
19+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20+
"~/Scripts/modernizr-*"));
21+
22+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23+
"~/Scripts/bootstrap.js",
24+
"~/Scripts/respond.js"));
25+
26+
bundles.Add(new StyleBundle("~/Content/css").Include(
27+
"~/Content/bootstrap.css",
28+
"~/Content/site.css"));
29+
}
30+
}
31+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace BindMvcDropdownList
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace BindMvcDropdownList
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}
Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>
8+
</ProductVersion>
9+
<SchemaVersion>2.0</SchemaVersion>
10+
<ProjectGuid>{B8E4307F-01A2-45F2-91BE-DD40BA4C33FF}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>BindMvcDropdownList</RootNamespace>
15+
<AssemblyName>BindMvcDropdownList</AssemblyName>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
<MvcBuildViews>false</MvcBuildViews>
18+
<UseIISExpress>true</UseIISExpress>
19+
<IISExpressSSLPort />
20+
<IISExpressAnonymousAuthentication />
21+
<IISExpressWindowsAuthentication />
22+
<IISExpressUseClassicPipelineMode />
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25+
<DebugSymbols>true</DebugSymbols>
26+
<DebugType>full</DebugType>
27+
<Optimize>false</Optimize>
28+
<OutputPath>bin\</OutputPath>
29+
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34+
<DebugType>pdbonly</DebugType>
35+
<Optimize>true</Optimize>
36+
<OutputPath>bin\</OutputPath>
37+
<DefineConstants>TRACE</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
</PropertyGroup>
41+
<ItemGroup>
42+
<Reference Include="Microsoft.CSharp" />
43+
<Reference Include="System" />
44+
<Reference Include="System.Data" />
45+
<Reference Include="System.Drawing" />
46+
<Reference Include="System.Web.DynamicData" />
47+
<Reference Include="System.Web.Entity" />
48+
<Reference Include="System.Web.ApplicationServices" />
49+
<Reference Include="System.ComponentModel.DataAnnotations" />
50+
<Reference Include="System.Core" />
51+
<Reference Include="System.Data.DataSetExtensions" />
52+
<Reference Include="System.Xml.Linq" />
53+
<Reference Include="System.Web" />
54+
<Reference Include="System.Web.Extensions" />
55+
<Reference Include="System.Web.Abstractions" />
56+
<Reference Include="System.Web.Routing" />
57+
<Reference Include="System.Xml" />
58+
<Reference Include="System.Configuration" />
59+
<Reference Include="System.Web.Services" />
60+
<Reference Include="System.EnterpriseServices" />
61+
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62+
<Private>True</Private>
63+
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
64+
</Reference>
65+
<Reference Include="System.Net.Http">
66+
</Reference>
67+
<Reference Include="System.Net.Http.WebRequest">
68+
</Reference>
69+
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70+
<Private>True</Private>
71+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.Helpers.dll</HintPath>
72+
</Reference>
73+
<Reference Include="System.Web.Mvc, Version=__MvcPagesVersion__, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
74+
<Private>True</Private>
75+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.2\lib\net45\System.Web.Mvc.dll</HintPath>
76+
</Reference>
77+
<Reference Include="System.Web.Optimization">
78+
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
79+
</Reference>
80+
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
81+
<Private>True</Private>
82+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.2\lib\net45\System.Web.Razor.dll</HintPath>
83+
</Reference>
84+
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85+
<Private>True</Private>
86+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.dll</HintPath>
87+
</Reference>
88+
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
89+
<Private>True</Private>
90+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
91+
</Reference>
92+
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
93+
<Private>True</Private>
94+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.2\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
95+
</Reference>
96+
<Reference Include="WebGrease">
97+
<Private>True</Private>
98+
<HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath>
99+
</Reference>
100+
<Reference Include="Antlr3.Runtime">
101+
<Private>True</Private>
102+
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
103+
</Reference>
104+
</ItemGroup>
105+
<ItemGroup>
106+
<Reference Include="Newtonsoft.Json">
107+
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
108+
</Reference>
109+
</ItemGroup>
110+
<ItemGroup>
111+
<Compile Include="App_Start\BundleConfig.cs" />
112+
<Compile Include="App_Start\FilterConfig.cs" />
113+
<Compile Include="App_Start\RouteConfig.cs" />
114+
<Compile Include="Controllers\CategoryService.cs" />
115+
<Compile Include="Controllers\HomeController.cs" />
116+
<Compile Include="Global.asax.cs">
117+
<DependentUpon>Global.asax</DependentUpon>
118+
</Compile>
119+
<Compile Include="Models\AccountViewModels.cs" />
120+
<Compile Include="Models\CategoryModel.cs" />
121+
<Compile Include="Properties\AssemblyInfo.cs" />
122+
</ItemGroup>
123+
<ItemGroup>
124+
<Content Include="Content\bootstrap-theme.css" />
125+
<Content Include="Content\bootstrap-theme.min.css" />
126+
<Content Include="Content\bootstrap.css" />
127+
<Content Include="Content\bootstrap.min.css" />
128+
<Content Include="favicon.ico" />
129+
<Content Include="fonts\glyphicons-halflings-regular.svg" />
130+
<Content Include="Global.asax" />
131+
<Content Include="Content\Site.css" />
132+
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
133+
<Content Include="fonts\glyphicons-halflings-regular.woff" />
134+
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
135+
<Content Include="fonts\glyphicons-halflings-regular.eot" />
136+
<Content Include="Content\bootstrap-theme.css.map" />
137+
<Content Include="Content\bootstrap.css.map" />
138+
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
139+
<Content Include="Icon.png" />
140+
<Content Include="Scripts\bootstrap.js" />
141+
<Content Include="Scripts\bootstrap.min.js" />
142+
<Content Include="Scripts\jquery-1.10.2.js" />
143+
<Content Include="Scripts\jquery-1.10.2.min.js" />
144+
<Content Include="Scripts\modernizr-2.8.3.js" />
145+
<Content Include="Scripts\npm.js" />
146+
<Content Include="Scripts\_references.js" />
147+
<Content Include="Web.config" />
148+
<Content Include="Web.Debug.config">
149+
<DependentUpon>Web.config</DependentUpon>
150+
</Content>
151+
<Content Include="Web.Release.config">
152+
<DependentUpon>Web.config</DependentUpon>
153+
</Content>
154+
<Content Include="Views\Web.config" />
155+
<Content Include="Views\_ViewStart.cshtml" />
156+
<Content Include="Views\Shared\Error.cshtml" />
157+
<Content Include="Views\Shared\_Layout.cshtml" />
158+
<Content Include="Views\Home\About.cshtml" />
159+
<Content Include="Views\Home\Contact.cshtml" />
160+
<Content Include="Views\Home\Index.cshtml" />
161+
<Content Include="Scripts\jquery-1.10.2.min.map" />
162+
<Content Include="Views\Account\_ExternalLoginsListPartial.cshtml" />
163+
<Content Include="Views\Account\ConfirmEmail.cshtml" />
164+
<Content Include="Views\Account\ExternalLoginConfirmation.cshtml" />
165+
<Content Include="Views\Account\ExternalLoginFailure.cshtml" />
166+
<Content Include="Views\Account\ForgotPassword.cshtml" />
167+
<Content Include="Views\Account\ForgotPasswordConfirmation.cshtml" />
168+
<Content Include="Views\Account\Login.cshtml" />
169+
<Content Include="Views\Account\Register.cshtml" />
170+
<Content Include="Views\Account\ResetPassword.cshtml" />
171+
<Content Include="Views\Account\ResetPasswordConfirmation.cshtml" />
172+
<Content Include="Views\Account\SendCode.cshtml" />
173+
<Content Include="Views\Account\VerifyCode.cshtml" />
174+
<Content Include="Views\Manage\AddPhoneNumber.cshtml" />
175+
<Content Include="Views\Manage\ChangePassword.cshtml" />
176+
<Content Include="Views\Manage\Index.cshtml" />
177+
<Content Include="Views\Manage\ManageLogins.cshtml" />
178+
<Content Include="Views\Manage\SetPassword.cshtml" />
179+
<Content Include="Views\Manage\VerifyPhoneNumber.cshtml" />
180+
<Content Include="Views\Shared\Lockout.cshtml" />
181+
<Content Include="Views\Shared\_LoginPartial.cshtml" />
182+
<Content Include="Views\Home\StaticBind.cshtml" />
183+
<Content Include="Views\Home\BindWithViewBag.cshtml" />
184+
<Content Include="Views\Home\BindWithModel.cshtml" />
185+
<Content Include="Views\Home\BindJSONData.cshtml" />
186+
</ItemGroup>
187+
<ItemGroup>
188+
<Folder Include="App_Data\" />
189+
</ItemGroup>
190+
<ItemGroup>
191+
<Content Include="packages.config">
192+
<SubType>Designer</SubType>
193+
</Content>
194+
<None Include="Project_Readme.html" />
195+
</ItemGroup>
196+
<PropertyGroup>
197+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
198+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
199+
</PropertyGroup>
200+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
201+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
202+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
203+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
204+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
205+
</Target>
206+
<ProjectExtensions>
207+
<VisualStudio>
208+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
209+
<WebProjectProperties>
210+
<UseIIS>True</UseIIS>
211+
<AutoAssignPort>True</AutoAssignPort>
212+
<DevelopmentServerPort>2531</DevelopmentServerPort>
213+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
214+
<IISUrl>http://localhost:2093/</IISUrl>
215+
<NTLMAuthentication>False</NTLMAuthentication>
216+
<UseCustomServer>False</UseCustomServer>
217+
<CustomServerUrl>
218+
</CustomServerUrl>
219+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
220+
</WebProjectProperties>
221+
</FlavorProperties>
222+
</VisualStudio>
223+
</ProjectExtensions>
224+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
225+
Other similar extension points exist, see Microsoft.Common.targets.
226+
<Target Name="BeforeBuild">
227+
</Target>
228+
<Target Name="AfterBuild">
229+
</Target> -->
230+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ProjectView>ProjectFiles</ProjectView>
5+
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
6+
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected>
7+
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected>
8+
<WebStackScaffolding_IsReferencingScriptLibrariesSelected>False</WebStackScaffolding_IsReferencingScriptLibrariesSelected>
9+
<WebStackScaffolding_LayoutPageFile />
10+
</PropertyGroup>
11+
<ProjectExtensions>
12+
<VisualStudio>
13+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
14+
<WebProjectProperties>
15+
<StartPageUrl>
16+
</StartPageUrl>
17+
<StartAction>CurrentPage</StartAction>
18+
<AspNetDebugging>True</AspNetDebugging>
19+
<SilverlightDebugging>False</SilverlightDebugging>
20+
<NativeDebugging>False</NativeDebugging>
21+
<SQLDebugging>False</SQLDebugging>
22+
<ExternalProgram>
23+
</ExternalProgram>
24+
<StartExternalURL>
25+
</StartExternalURL>
26+
<StartCmdLineArguments>
27+
</StartCmdLineArguments>
28+
<StartWorkingDirectory>
29+
</StartWorkingDirectory>
30+
<EnableENC>True</EnableENC>
31+
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
32+
</WebProjectProperties>
33+
</FlavorProperties>
34+
</VisualStudio>
35+
</ProjectExtensions>
36+
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}

0 commit comments

Comments
 (0)