Skip to content

Commit bf91ddc

Browse files
author
hadjieva
committed
Added MobileView Razor server navigation
1 parent c7644e4 commit bf91ddc

Some content is hidden

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

51 files changed

+85557
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{A63E9986-9853-4077-A103-6BD3D30E3441}"
7+
ProjectSection(SolutionItems) = preProject
8+
.nuget\NuGet.Config = .nuget\NuGet.Config
9+
.nuget\NuGet.exe = .nuget\NuGet.exe
10+
.nuget\NuGet.targets = .nuget\NuGet.targets
11+
EndProjectSection
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RazorServerNavigation", "RazorServerNavigation\RazorServerNavigation.csproj", "{0DD62DBA-5604-452D-AABB-5A885BCCAD53}"
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{0DD62DBA-5604-452D-AABB-5A885BCCAD53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22+
{0DD62DBA-5604-452D-AABB-5A885BCCAD53}.Debug|Any CPU.Build.0 = Debug|Any CPU
23+
{0DD62DBA-5604-452D-AABB-5A885BCCAD53}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{0DD62DBA-5604-452D-AABB-5A885BCCAD53}.Release|Any CPU.Build.0 = Release|Any CPU
25+
EndGlobalSection
26+
GlobalSection(SolutionProperties) = preSolution
27+
HideSolutionNode = FALSE
28+
EndGlobalSection
29+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
using RazorServerNavigation.Models;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Web;
6+
using System.Web.Mvc;
7+
8+
namespace Controllers
9+
{
10+
public class HomeController : Controller
11+
{
12+
public ActionResult Index(string SystemId)
13+
{
14+
if (!string.IsNullOrWhiteSpace(SystemId))
15+
{
16+
return RedirectToAction("About", new { SystemId = SystemId });
17+
}
18+
19+
return View();
20+
}
21+
22+
public ActionResult About(string SystemId)
23+
{
24+
ViewBag.FilteredSource = new List<SystemViewModel>
25+
{
26+
new SystemViewModel
27+
{
28+
SystemId = SystemId
29+
},
30+
new SystemViewModel
31+
{
32+
SystemId = SystemId
33+
},
34+
new SystemViewModel
35+
{
36+
SystemId = SystemId
37+
}
38+
};
39+
40+
return View();
41+
}
42+
43+
public ActionResult Contact()
44+
{
45+
return View();
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="RazorServerNavigation.MvcApplication" Language="C#" %>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Data.Entity;
4+
using System.Linq;
5+
using System.Web;
6+
using System.Web.Mvc;
7+
using System.Web.Routing;
8+
9+
namespace RazorServerNavigation
10+
{
11+
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
12+
// visit http://go.microsoft.com/?LinkId=9394801
13+
14+
public class MvcApplication : System.Web.HttpApplication
15+
{
16+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
17+
{
18+
filters.Add(new HandleErrorAttribute());
19+
}
20+
21+
public static void RegisterRoutes(RouteCollection routes)
22+
{
23+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
24+
25+
routes.MapRoute(
26+
"Default", // Route name
27+
"{controller}/{action}/{id}", // URL with parameters
28+
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
29+
);
30+
31+
}
32+
33+
protected void Application_Start()
34+
{
35+
AreaRegistration.RegisterAllAreas();
36+
37+
RegisterGlobalFilters(GlobalFilters.Filters);
38+
RegisterRoutes(RouteTable.Routes);
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
6+
namespace RazorServerNavigation.Models
7+
{
8+
public class SystemViewModel
9+
{
10+
public string SystemId { get; set; }
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("RazorServerNavigation")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("RazorServerNavigation")]
13+
[assembly: AssemblyCopyright("Copyright © 2013")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("27a92191-0b51-4050-8b11-e83a42c2ccf0")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.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>{0DD62DBA-5604-452D-AABB-5A885BCCAD53}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>RazorServerNavigation</RootNamespace>
15+
<AssemblyName>RazorServerNavigation</AssemblyName>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
<MvcBuildViews>false</MvcBuildViews>
18+
<UseIISExpress>true</UseIISExpress>
19+
<IISExpressSSLPort />
20+
<IISExpressAnonymousAuthentication />
21+
<IISExpressWindowsAuthentication />
22+
<IISExpressUseClassicPipelineMode />
23+
<MvcProjectUpgradeChecked>true</MvcProjectUpgradeChecked>
24+
<FileUpgradeFlags>
25+
</FileUpgradeFlags>
26+
<UpgradeBackupLocation>
27+
</UpgradeBackupLocation>
28+
<OldToolsVersion>4.0</OldToolsVersion>
29+
<UseGlobalApplicationHostFile />
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
32+
<DebugSymbols>true</DebugSymbols>
33+
<DebugType>full</DebugType>
34+
<Optimize>false</Optimize>
35+
<OutputPath>bin\</OutputPath>
36+
<DefineConstants>DEBUG;TRACE</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
41+
<DebugType>pdbonly</DebugType>
42+
<Optimize>true</Optimize>
43+
<OutputPath>bin\</OutputPath>
44+
<DefineConstants>TRACE</DefineConstants>
45+
<ErrorReport>prompt</ErrorReport>
46+
<WarningLevel>4</WarningLevel>
47+
</PropertyGroup>
48+
<ItemGroup>
49+
<Reference Include="Kendo.Mvc">
50+
<HintPath>..\lib\KENDOUIMVC\2016.3.914.545.Trial\Kendo.Mvc.dll</HintPath>
51+
</Reference>
52+
<Reference Include="Microsoft.CSharp" />
53+
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
54+
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
55+
<Private>True</Private>
56+
</Reference>
57+
<Reference Include="System.Data.Entity" />
58+
<Reference Include="System" />
59+
<Reference Include="System.Data" />
60+
<Reference Include="System.Drawing" />
61+
<Reference Include="System.ComponentModel.DataAnnotations" />
62+
<Reference Include="System.Core" />
63+
<Reference Include="System.Web" />
64+
<Reference Include="System.Web.Extensions" />
65+
<Reference Include="System.Web.Abstractions" />
66+
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
67+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath>
68+
<Private>True</Private>
69+
</Reference>
70+
<Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
71+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath>
72+
<Private>True</Private>
73+
</Reference>
74+
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
75+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath>
76+
<Private>True</Private>
77+
</Reference>
78+
<Reference Include="System.Web.Routing" />
79+
<Reference Include="System.Configuration" />
80+
<Reference Include="System.Web.Services" />
81+
<Reference Include="System.Web.Providers">
82+
<HintPath>..\packages\Microsoft.AspNet.Providers.Core.1.1\lib\net40\System.Web.Providers.dll</HintPath>
83+
</Reference>
84+
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath>
86+
<Private>True</Private>
87+
</Reference>
88+
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
89+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
90+
<Private>True</Private>
91+
</Reference>
92+
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
93+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
94+
<Private>True</Private>
95+
</Reference>
96+
</ItemGroup>
97+
<ItemGroup>
98+
<Compile Include="Controllers\HomeController.cs" />
99+
<Compile Include="Global.asax.cs">
100+
<DependentUpon>Global.asax</DependentUpon>
101+
</Compile>
102+
<Compile Include="Models\SystemViewModel.cs" />
103+
<Compile Include="Properties\AssemblyInfo.cs" />
104+
</ItemGroup>
105+
<ItemGroup>
106+
<Content Include="Global.asax" />
107+
<Content Include="packages.config">
108+
<SubType>Designer</SubType>
109+
</Content>
110+
<Content Include="Scripts\bootstrap.js" />
111+
<Content Include="Scripts\bootstrap.min.js" />
112+
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
113+
<Content Include="Scripts\jquery-1.10.2.js" />
114+
<Content Include="Scripts\jquery-1.10.2.min.js" />
115+
<Content Include="Scripts\kendo.modernizr.custom.js" />
116+
<Content Include="Scripts\modernizr-2.6.2.js" />
117+
<Content Include="Scripts\npm.js" />
118+
<Content Include="Scripts\respond.js" />
119+
<None Include="Scripts\_references.js" />
120+
<Content Include="Scripts\respond.min.js" />
121+
<Content Include="Web.config" />
122+
<Content Include="Web.Debug.config">
123+
<DependentUpon>Web.config</DependentUpon>
124+
</Content>
125+
<Content Include="Web.Release.config">
126+
<DependentUpon>Web.config</DependentUpon>
127+
</Content>
128+
<Content Include="Views\Web.config" />
129+
</ItemGroup>
130+
<ItemGroup>
131+
<Folder Include="App_Data\" />
132+
<Folder Include="Content\" />
133+
</ItemGroup>
134+
<ItemGroup>
135+
<Content Include="Views\Home\About.cshtml" />
136+
<Content Include="Views\Home\Contact.cshtml" />
137+
<Content Include="Views\Home\Index.cshtml" />
138+
<Content Include="Views\Shared\_Layout.cshtml" />
139+
<Content Include="Views\_ViewStart.cshtml" />
140+
</ItemGroup>
141+
<ItemGroup>
142+
<Content Include="Scripts\jquery-1.10.2.min.map" />
143+
</ItemGroup>
144+
<PropertyGroup>
145+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
146+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
147+
</PropertyGroup>
148+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
149+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
150+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
151+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
152+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
153+
</Target>
154+
<ProjectExtensions>
155+
<VisualStudio>
156+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
157+
<WebProjectProperties>
158+
<UseIIS>True</UseIIS>
159+
<AutoAssignPort>True</AutoAssignPort>
160+
<DevelopmentServerPort>0</DevelopmentServerPort>
161+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
162+
<IISUrl>http://localhost:27155/</IISUrl>
163+
<NTLMAuthentication>False</NTLMAuthentication>
164+
<UseCustomServer>False</UseCustomServer>
165+
<CustomServerUrl>
166+
</CustomServerUrl>
167+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
168+
</WebProjectProperties>
169+
</FlavorProperties>
170+
</VisualStudio>
171+
</ProjectExtensions>
172+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
173+
Other similar extension points exist, see Microsoft.Common.targets.
174+
<Target Name="BeforeBuild">
175+
</Target>
176+
<Target Name="AfterBuild">
177+
</Target> -->
178+
</Project>
Binary file not shown.

0 commit comments

Comments
 (0)