Assignment 6 complete.

This commit is contained in:
Kaj Forney 2023-11-02 17:38:18 -06:00
parent 445d67b4f2
commit de95f591fd
Signed by: kforney
GPG key ID: 3AB4E2E04CEF656F
202 changed files with 47956 additions and 8907 deletions

0
Assignment4/Assignment4.sln Normal file → Executable file
View file

0
Assignment4/Assignment4/Assignment4.csproj Normal file → Executable file
View file

0
Assignment4/Assignment4/Properties/AssemblyInfo.cs Normal file → Executable file
View file

View file

0
Assignment4/Assignment4/Scripts/WebForms/Focus.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/WebForms/GridView.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/WebForms/MSAjax/MicrosoftAjax.js vendored Normal file → Executable file
View file

View file

View file

0
Assignment4/Assignment4/Scripts/WebForms/Menu.js Normal file → Executable file
View file

View file

0
Assignment4/Assignment4/Scripts/WebForms/SmartNav.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/WebForms/TreeView.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/WebForms/WebForms.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/WebForms/WebParts.js Normal file → Executable file
View file

View file

0
Assignment4/Assignment4/Scripts/bootstrap.bundle.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/bootstrap.bundle.min.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/bootstrap.esm.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/bootstrap.esm.min.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/bootstrap.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/bootstrap.min.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/jquery-3.4.1.intellisense.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/jquery-3.4.1.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/jquery-3.4.1.min.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/jquery-3.4.1.slim.js Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/jquery-3.4.1.slim.min.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Scripts/modernizr-2.8.3.js vendored Normal file → Executable file
View file

0
Assignment4/Assignment4/Web.Debug.config Normal file → Executable file
View file

0
Assignment4/Assignment4/Web.Release.config Normal file → Executable file
View file

0
Assignment4/Assignment4/Web.config Normal file → Executable file
View file

0
Assignment4/Assignment4/packages.config Normal file → Executable file
View file

0
Assignment4/Assignment4/styles/calc.css Normal file → Executable file
View file

View file

@ -1,25 +1,25 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 16
VisualStudioVersion = 16.0.34114.132 VisualStudioVersion = 16.0.34114.132
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assignment5", "Assignment5\Assignment5.csproj", "{65DA8B9E-549F-4FB8-81FB-409D90025FC4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assignment5", "Assignment5\Assignment5.csproj", "{65DA8B9E-549F-4FB8-81FB-409D90025FC4}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Debug|Any CPU.Build.0 = Debug|Any CPU {65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Release|Any CPU.ActiveCfg = Release|Any CPU {65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Release|Any CPU.Build.0 = Release|Any CPU {65DA8B9E-549F-4FB8-81FB-409D90025FC4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F8278098-F6FE-4466-BD56-B3454F827362} SolutionGuid = {F8278098-F6FE-4466-BD56-B3454F827362}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View file

@ -1,7 +1,7 @@
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="Assignment5.About" %> <%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="Assignment5.About" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: Title %>.</h2> <h2><%: Title %>.</h2>
<h3>Your application description page.</h3> <h3>Your application description page.</h3>
<p>Use this area to provide additional information.</p> <p>Use this area to provide additional information.</p>
</asp:Content> </asp:Content>

View file

@ -1,17 +1,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
namespace Assignment5 namespace Assignment5
{ {
public partial class About : Page public partial class About : Page
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
} }
} }
} }

View file

@ -1,16 +1,16 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 namespace Assignment5
{ {
public partial class About public partial class About
{ {
} }
} }

View file

@ -1,38 +1,38 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.Optimization; using System.Web.Optimization;
using System.Web.UI; using System.Web.UI;
namespace Assignment5 namespace Assignment5
{ {
public class BundleConfig public class BundleConfig
{ {
// For more information on Bundling, visit https://go.microsoft.com/fwlink/?LinkID=303951 // For more information on Bundling, visit https://go.microsoft.com/fwlink/?LinkID=303951
public static void RegisterBundles(BundleCollection bundles) public static void RegisterBundles(BundleCollection bundles)
{ {
bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include( bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
"~/Scripts/WebForms/WebForms.js", "~/Scripts/WebForms/WebForms.js",
"~/Scripts/WebForms/WebUIValidation.js", "~/Scripts/WebForms/WebUIValidation.js",
"~/Scripts/WebForms/MenuStandards.js", "~/Scripts/WebForms/MenuStandards.js",
"~/Scripts/WebForms/Focus.js", "~/Scripts/WebForms/Focus.js",
"~/Scripts/WebForms/GridView.js", "~/Scripts/WebForms/GridView.js",
"~/Scripts/WebForms/DetailsView.js", "~/Scripts/WebForms/DetailsView.js",
"~/Scripts/WebForms/TreeView.js", "~/Scripts/WebForms/TreeView.js",
"~/Scripts/WebForms/WebParts.js")); "~/Scripts/WebForms/WebParts.js"));
// Order is very important for these files to work, they have explicit dependencies // Order is very important for these files to work, they have explicit dependencies
bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include( bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
"~/Scripts/WebForms/MsAjax/MicrosoftAjax.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js")); "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));
// Use the Development version of Modernizr to develop with and learn from. Then, when youre // Use the Development version of Modernizr to develop with and learn from. Then, when youre
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need // ready for production, use the build tool at https://modernizr.com to pick only the tests you need
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*")); "~/Scripts/modernizr-*"));
} }
} }
} }

View file

@ -1,18 +1,18 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Web; using System.Web;
using System.Web.Routing; using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls; using Microsoft.AspNet.FriendlyUrls;
namespace Assignment5 namespace Assignment5
{ {
public static class RouteConfig public static class RouteConfig
{ {
public static void RegisterRoutes(RouteCollection routes) public static void RegisterRoutes(RouteCollection routes)
{ {
var settings = new FriendlyUrlSettings(); var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Permanent; settings.AutoRedirectMode = RedirectMode.Permanent;
routes.EnableFriendlyUrls(settings); routes.EnableFriendlyUrls(settings);
} }
} }
} }

View file

@ -1,320 +1,320 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" /> <Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion> <ProductVersion>
</ProductVersion> </ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{65DA8B9E-549F-4FB8-81FB-409D90025FC4}</ProjectGuid> <ProjectGuid>{65DA8B9E-549F-4FB8-81FB-409D90025FC4}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Assignment5</RootNamespace> <RootNamespace>Assignment5</RootNamespace>
<AssemblyName>Assignment5</AssemblyName> <AssemblyName>Assignment5</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication /> <IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode /> <IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile /> <UseGlobalApplicationHostFile />
<NuGetPackageImportStamp> <NuGetPackageImportStamp>
</NuGetPackageImportStamp> </NuGetPackageImportStamp>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\</OutputPath> <OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\</OutputPath> <OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.DataAnnotations" /> <Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" /> <Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" /> <Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" /> <Reference Include="System.EnterpriseServices" />
<Reference Include="System.Web.DynamicData" /> <Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" /> <Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" /> <Reference Include="System.Web.ApplicationServices" />
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private> <Private>True</Private>
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath> <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
</Reference> </Reference>
<Reference Include="AspNet.ScriptManager.bootstrap"> <Reference Include="AspNet.ScriptManager.bootstrap">
<HintPath>..\packages\AspNet.ScriptManager.bootstrap.3.4.1\lib\net45\AspNet.ScriptManager.bootstrap.dll</HintPath> <HintPath>..\packages\AspNet.ScriptManager.bootstrap.3.4.1\lib\net45\AspNet.ScriptManager.bootstrap.dll</HintPath>
</Reference> </Reference>
<Reference Include="AspNet.ScriptManager.jQuery"> <Reference Include="AspNet.ScriptManager.jQuery">
<HintPath>..\packages\AspNet.ScriptManager.jQuery.3.4.1\lib\net45\AspNet.ScriptManager.jQuery.dll</HintPath> <HintPath>..\packages\AspNet.ScriptManager.jQuery.3.4.1\lib\net45\AspNet.ScriptManager.jQuery.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.ScriptManager.MSAjax"> <Reference Include="Microsoft.ScriptManager.MSAjax">
<HintPath>..\packages\Microsoft.AspNet.ScriptManager.MSAjax.5.0.0\lib\net45\Microsoft.ScriptManager.MSAjax.dll</HintPath> <HintPath>..\packages\Microsoft.AspNet.ScriptManager.MSAjax.5.0.0\lib\net45\Microsoft.ScriptManager.MSAjax.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.ScriptManager.WebForms"> <Reference Include="Microsoft.ScriptManager.WebForms">
<HintPath>..\packages\Microsoft.AspNet.ScriptManager.WebForms.5.0.0\lib\net45\Microsoft.ScriptManager.WebForms.dll</HintPath> <HintPath>..\packages\Microsoft.AspNet.ScriptManager.WebForms.5.0.0\lib\net45\Microsoft.ScriptManager.WebForms.dll</HintPath>
</Reference> </Reference>
<Reference Include="System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <Reference Include="System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath> <HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json"> <Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference> </Reference>
<Reference Include="WebGrease"> <Reference Include="WebGrease">
<Private>True</Private> <Private>True</Private>
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath> <HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
</Reference> </Reference>
<Reference Include="Antlr3.Runtime"> <Reference Include="Antlr3.Runtime">
<Private>True</Private> <Private>True</Private>
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath> <HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.AspNet.Web.Optimization.WebForms"> <Reference Include="Microsoft.AspNet.Web.Optimization.WebForms">
<Private>True</Private> <Private>True</Private>
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.1.3\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll</HintPath> <HintPath>..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.1.3\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.AspNet.FriendlyUrls"> <Reference Include="Microsoft.AspNet.FriendlyUrls">
<HintPath>..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll</HintPath> <HintPath>..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform"> <Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath> <HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="About.aspx" /> <Content Include="About.aspx" />
<Content Include="Contact.aspx" /> <Content Include="Contact.aspx" />
<Content Include="contentPages\article1.aspx" /> <Content Include="contentPages\article1.aspx" />
<Content Include="contentPages\article2.aspx" /> <Content Include="contentPages\article2.aspx" />
<Content Include="contentPages\article3.aspx" /> <Content Include="contentPages\article3.aspx" />
<Content Include="contentPages\calculator.aspx" /> <Content Include="contentPages\calculator.aspx" />
<Content Include="contentPages\home.aspx" /> <Content Include="contentPages\home.aspx" />
<Content Include="Content\bootstrap-theme.css" /> <Content Include="Content\bootstrap-theme.css" />
<Content Include="Content\bootstrap-theme.min.css" /> <Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" /> <Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" /> <Content Include="Content\bootstrap.min.css" />
<Content Include="Content\Site.css" /> <Content Include="Content\Site.css" />
<Content Include="Default.aspx" /> <Content Include="Default.aspx" />
<Content Include="favicon.ico" /> <Content Include="favicon.ico" />
<Content Include="fonts\glyphicons-halflings-regular.svg" /> <Content Include="fonts\glyphicons-halflings-regular.svg" />
<Content Include="Global.asax" /> <Content Include="Global.asax" />
<Content Include="fonts\glyphicons-halflings-regular.woff2" /> <Content Include="fonts\glyphicons-halflings-regular.woff2" />
<Content Include="fonts\glyphicons-halflings-regular.woff" /> <Content Include="fonts\glyphicons-halflings-regular.woff" />
<Content Include="fonts\glyphicons-halflings-regular.ttf" /> <Content Include="fonts\glyphicons-halflings-regular.ttf" />
<Content Include="fonts\glyphicons-halflings-regular.eot" /> <Content Include="fonts\glyphicons-halflings-regular.eot" />
<Content Include="Content\bootstrap.min.css.map" /> <Content Include="Content\bootstrap.min.css.map" />
<Content Include="Content\bootstrap.css.map" /> <Content Include="Content\bootstrap.css.map" />
<Content Include="Content\bootstrap-theme.min.css.map" /> <Content Include="Content\bootstrap-theme.min.css.map" />
<Content Include="Content\bootstrap-theme.css.map" /> <Content Include="Content\bootstrap-theme.css.map" />
<Content Include="index.html" /> <Content Include="index.html" />
<Content Include="masterPages\masterPage1.Master" /> <Content Include="masterPages\masterPage1.Master" />
<Content Include="fonts\Oswald-Regular.ttf" /> <Content Include="fonts\Oswald-Regular.ttf" />
<Content Include="fonts\Quicksand-Regular.ttf" /> <Content Include="fonts\Quicksand-Regular.ttf" />
<None Include="Scripts\jquery-3.4.1.intellisense.js" /> <None Include="Scripts\jquery-3.4.1.intellisense.js" />
<Content Include="images\avatar.png" /> <Content Include="images\avatar.png" />
<Content Include="images\hlaScreenshot.jpg" /> <Content Include="images\hlaScreenshot.jpg" />
<Content Include="images\mcScreenshot.png" /> <Content Include="images\mcScreenshot.png" />
<Content Include="Scripts\bootstrap.js" /> <Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" /> <Content Include="Scripts\bootstrap.min.js" />
<Content Include="Scripts\jquery-3.4.1.js" /> <Content Include="Scripts\jquery-3.4.1.js" />
<Content Include="Scripts\jquery-3.4.1.min.js" /> <Content Include="Scripts\jquery-3.4.1.min.js" />
<Content Include="Scripts\jquery-3.4.1.slim.js" /> <Content Include="Scripts\jquery-3.4.1.slim.js" />
<Content Include="Scripts\jquery-3.4.1.slim.min.js" /> <Content Include="Scripts\jquery-3.4.1.slim.min.js" />
<Content Include="Scripts\modernizr-2.8.3.js" /> <Content Include="Scripts\modernizr-2.8.3.js" />
<Content Include="Scripts\WebForms\DetailsView.js" /> <Content Include="Scripts\WebForms\DetailsView.js" />
<Content Include="Scripts\WebForms\Focus.js" /> <Content Include="Scripts\WebForms\Focus.js" />
<Content Include="Scripts\WebForms\GridView.js" /> <Content Include="Scripts\WebForms\GridView.js" />
<Content Include="Scripts\WebForms\Menu.js" /> <Content Include="Scripts\WebForms\Menu.js" />
<Content Include="Scripts\WebForms\MenuStandards.js" /> <Content Include="Scripts\WebForms\MenuStandards.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjax.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjax.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxApplicationServices.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxApplicationServices.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxComponentModel.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxComponentModel.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxCore.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxCore.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxGlobalization.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxGlobalization.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxHistory.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxHistory.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxNetwork.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxNetwork.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxSerialization.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxSerialization.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxTimer.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxTimer.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxWebForms.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxWebForms.js" />
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxWebServices.js" /> <Content Include="Scripts\WebForms\MSAjax\MicrosoftAjaxWebServices.js" />
<Content Include="Scripts\WebForms\SmartNav.js" /> <Content Include="Scripts\WebForms\SmartNav.js" />
<Content Include="Scripts\WebForms\TreeView.js" /> <Content Include="Scripts\WebForms\TreeView.js" />
<Content Include="Scripts\WebForms\WebForms.js" /> <Content Include="Scripts\WebForms\WebForms.js" />
<Content Include="Scripts\WebForms\WebParts.js" /> <Content Include="Scripts\WebForms\WebParts.js" />
<Content Include="Scripts\WebForms\WebUIValidation.js" /> <Content Include="Scripts\WebForms\WebUIValidation.js" />
<Content Include="Site.Master" /> <Content Include="Site.Master" />
<Content Include="styles\main.css" /> <Content Include="styles\main.css" />
<Content Include="styles\reset.css" /> <Content Include="styles\reset.css" />
<Content Include="ViewSwitcher.ascx" /> <Content Include="ViewSwitcher.ascx" />
<Content Include="Web.config" /> <Content Include="Web.config" />
<Content Include="Bundle.config" /> <Content Include="Bundle.config" />
<Content Include="Site.Mobile.Master" /> <Content Include="Site.Mobile.Master" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="App_Start\BundleConfig.cs" /> <Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="About.aspx.cs"> <Compile Include="About.aspx.cs">
<DependentUpon>About.aspx</DependentUpon> <DependentUpon>About.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="About.aspx.designer.cs"> <Compile Include="About.aspx.designer.cs">
<DependentUpon>About.aspx</DependentUpon> <DependentUpon>About.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="App_Start\RouteConfig.cs" /> <Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Contact.aspx.cs"> <Compile Include="Contact.aspx.cs">
<DependentUpon>Contact.aspx</DependentUpon> <DependentUpon>Contact.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Contact.aspx.designer.cs"> <Compile Include="Contact.aspx.designer.cs">
<DependentUpon>Contact.aspx</DependentUpon> <DependentUpon>Contact.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="contentPages\article1.aspx.cs"> <Compile Include="contentPages\article1.aspx.cs">
<DependentUpon>article1.aspx</DependentUpon> <DependentUpon>article1.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="contentPages\article1.aspx.designer.cs"> <Compile Include="contentPages\article1.aspx.designer.cs">
<DependentUpon>article1.aspx</DependentUpon> <DependentUpon>article1.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="contentPages\article2.aspx.cs"> <Compile Include="contentPages\article2.aspx.cs">
<DependentUpon>article2.aspx</DependentUpon> <DependentUpon>article2.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="contentPages\article2.aspx.designer.cs"> <Compile Include="contentPages\article2.aspx.designer.cs">
<DependentUpon>article2.aspx</DependentUpon> <DependentUpon>article2.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="contentPages\article3.aspx.cs"> <Compile Include="contentPages\article3.aspx.cs">
<DependentUpon>article3.aspx</DependentUpon> <DependentUpon>article3.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="contentPages\article3.aspx.designer.cs"> <Compile Include="contentPages\article3.aspx.designer.cs">
<DependentUpon>article3.aspx</DependentUpon> <DependentUpon>article3.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="contentPages\calculator.aspx.cs"> <Compile Include="contentPages\calculator.aspx.cs">
<DependentUpon>calculator.aspx</DependentUpon> <DependentUpon>calculator.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="contentPages\calculator.aspx.designer.cs"> <Compile Include="contentPages\calculator.aspx.designer.cs">
<DependentUpon>calculator.aspx</DependentUpon> <DependentUpon>calculator.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="contentPages\home.aspx.cs"> <Compile Include="contentPages\home.aspx.cs">
<DependentUpon>home.aspx</DependentUpon> <DependentUpon>home.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="contentPages\home.aspx.designer.cs"> <Compile Include="contentPages\home.aspx.designer.cs">
<DependentUpon>home.aspx</DependentUpon> <DependentUpon>home.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Default.aspx.cs"> <Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon> <DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Default.aspx.designer.cs"> <Compile Include="Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon> <DependentUpon>Default.aspx</DependentUpon>
</Compile> </Compile>
<Compile Include="Global.asax.cs"> <Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon> <DependentUpon>Global.asax</DependentUpon>
</Compile> </Compile>
<Compile Include="masterPages\masterPage1.Master.cs"> <Compile Include="masterPages\masterPage1.Master.cs">
<DependentUpon>masterPage1.Master</DependentUpon> <DependentUpon>masterPage1.Master</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="masterPages\masterPage1.Master.designer.cs"> <Compile Include="masterPages\masterPage1.Master.designer.cs">
<DependentUpon>masterPage1.Master</DependentUpon> <DependentUpon>masterPage1.Master</DependentUpon>
</Compile> </Compile>
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Site.Master.cs"> <Compile Include="Site.Master.cs">
<DependentUpon>Site.Master</DependentUpon> <DependentUpon>Site.Master</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Site.Master.designer.cs"> <Compile Include="Site.Master.designer.cs">
<DependentUpon>Site.Master</DependentUpon> <DependentUpon>Site.Master</DependentUpon>
</Compile> </Compile>
<Compile Include="Site.Mobile.Master.cs"> <Compile Include="Site.Mobile.Master.cs">
<DependentUpon>Site.Mobile.Master</DependentUpon> <DependentUpon>Site.Mobile.Master</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Site.Mobile.Master.designer.cs"> <Compile Include="Site.Mobile.Master.designer.cs">
<DependentUpon>Site.Mobile.Master</DependentUpon> <DependentUpon>Site.Mobile.Master</DependentUpon>
</Compile> </Compile>
<Compile Include="ViewSwitcher.ascx.cs"> <Compile Include="ViewSwitcher.ascx.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon> <DependentUpon>ViewSwitcher.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="ViewSwitcher.ascx.designer.cs"> <Compile Include="ViewSwitcher.ascx.designer.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon> <DependentUpon>ViewSwitcher.ascx</DependentUpon>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="App_Data\" /> <Folder Include="App_Data\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
<Content Include="Scripts\jquery-3.4.1.slim.min.map" /> <Content Include="Scripts\jquery-3.4.1.slim.min.map" />
<Content Include="Scripts\jquery-3.4.1.min.map" /> <Content Include="Scripts\jquery-3.4.1.min.map" />
<None Include="Web.Debug.config"> <None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
</None> </None>
<None Include="Web.Release.config"> <None Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon> <DependentUpon>Web.config</DependentUpon>
</None> </None>
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup> </PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" /> <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties> <WebProjectProperties>
<UseIIS>True</UseIIS> <UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort> <AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>49817</DevelopmentServerPort> <DevelopmentServerPort>49817</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath> <DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:49817/</IISUrl> <IISUrl>http://localhost:49817/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication> <NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer> <UseCustomServer>False</UseCustomServer>
<CustomServerUrl> <CustomServerUrl>
</CustomServerUrl> </CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties> </WebProjectProperties>
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup> <PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup> </PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" /> <Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
</Target> </Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<bundles version="1.0"> <bundles version="1.0">
<styleBundle path="~/Content/css"> <styleBundle path="~/Content/css">
<include path="~/Content/bootstrap.css" /> <include path="~/Content/bootstrap.css" />
<include path="~/Content/Site.css" /> <include path="~/Content/Site.css" />
</styleBundle> </styleBundle>
</bundles> </bundles>

View file

@ -1,17 +1,17 @@
<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Assignment5.Contact" %> <%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Assignment5.Contact" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: Title %>.</h2> <h2><%: Title %>.</h2>
<h3>Your contact page.</h3> <h3>Your contact page.</h3>
<address> <address>
One Microsoft Way<br /> One Microsoft Way<br />
Redmond, WA 98052-6399<br /> Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr> <abbr title="Phone">P:</abbr>
425.555.0100 425.555.0100
</address> </address>
<address> <address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br /> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a> <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address> </address>
</asp:Content> </asp:Content>

View file

@ -1,17 +1,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
namespace Assignment5 namespace Assignment5
{ {
public partial class Contact : Page public partial class Contact : Page
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
} }
} }
} }

View file

@ -1,16 +1,16 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 namespace Assignment5
{ {
public partial class Contact public partial class Contact
{ {
} }
} }

View file

@ -1,31 +1,31 @@
/* Move down content because we have a fixed navbar that is 50px tall */ /* Move down content because we have a fixed navbar that is 50px tall */
body { body {
padding-top: 50px; padding-top: 50px;
padding-bottom: 20px; padding-bottom: 20px;
} }
/* Wrapping element */ /* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */ /* Set some basic padding to keep content from hitting the edges */
.body-content { .body-content {
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
} }
/* Set widths on the form inputs since otherwise they're 100% wide */ /* Set widths on the form inputs since otherwise they're 100% wide */
input, input,
select, select,
textarea { textarea {
max-width: 280px; max-width: 280px;
} }
/* Responsive: Portrait tablets and up */ /* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.jumbotron { .jumbotron {
margin-top: 20px; margin-top: 20px;
} }
.body-content { .body-content {
padding: 0; padding: 0;
} }
} }

View file

@ -1,42 +1,42 @@
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Assignment5._Default" %> <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Assignment5._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="jumbotron"> <div class="jumbotron">
<h1>ASP.NET</h1> <h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p> <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
<p><a href="http://www.asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p> <p><a href="http://www.asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<h2>Getting started</h2> <h2>Getting started</h2>
<p> <p>
ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model. ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model.
A design surface and hundreds of controls and components let you rapidly build sophisticated, powerful UI-driven sites with data access. A design surface and hundreds of controls and components let you rapidly build sophisticated, powerful UI-driven sites with data access.
</p> </p>
<p> <p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301948">Learn more &raquo;</a> <a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301948">Learn more &raquo;</a>
</p> </p>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h2>Get more libraries</h2> <h2>Get more libraries</h2>
<p> <p>
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects. NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
</p> </p>
<p> <p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301949">Learn more &raquo;</a> <a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301949">Learn more &raquo;</a>
</p> </p>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h2>Web Hosting</h2> <h2>Web Hosting</h2>
<p> <p>
You can easily find a web hosting company that offers the right mix of features and price for your applications. You can easily find a web hosting company that offers the right mix of features and price for your applications.
</p> </p>
<p> <p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301950">Learn more &raquo;</a> <a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301950">Learn more &raquo;</a>
</p> </p>
</div> </div>
</div> </div>
</asp:Content> </asp:Content>

View file

@ -1,17 +1,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
namespace Assignment5 namespace Assignment5
{ {
public partial class _Default : Page public partial class _Default : Page
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
} }
} }
} }

View file

@ -1,16 +1,16 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 namespace Assignment5
{ {
public partial class _Default public partial class _Default
{ {
} }
} }

View file

@ -1 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="Assignment5.Global" Language="C#" %> <%@ Application Codebehind="Global.asax.cs" Inherits="Assignment5.Global" Language="C#" %>

View file

@ -1,21 +1,21 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.Optimization; using System.Web.Optimization;
using System.Web.Routing; using System.Web.Routing;
using System.Web.Security; using System.Web.Security;
using System.Web.SessionState; using System.Web.SessionState;
namespace Assignment5 namespace Assignment5
{ {
public class Global : HttpApplication public class Global : HttpApplication
{ {
void Application_Start(object sender, EventArgs e) void Application_Start(object sender, EventArgs e)
{ {
// Code that runs on application startup // Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes); RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles); BundleConfig.RegisterBundles(BundleTable.Bundles);
} }
} }
} }

View file

@ -1,35 +1,35 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("Assignment5")] [assembly: AssemblyTitle("Assignment5")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Assignment5")] [assembly: AssemblyProduct("Assignment5")]
[assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // 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 // to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. // COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM // The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("65da8b9e-549f-4fb8-81fb-409d90025fc4")] [assembly: Guid("65da8b9e-549f-4fb8-81fb-409d90025fc4")]
// Version information for an assembly consists of the following four values: // Version information for an assembly consists of the following four values:
// //
// Major Version // Major Version
// Minor Version // Minor Version
// Build Number // Build Number
// Revision // Revision
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]

68
Assignment5/Assignment5/Scripts/WebForms/DetailsView.js Normal file → Executable file
View file

@ -1,34 +1,34 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/DetailsView.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/DetailsView.js
function DetailsView() { function DetailsView() {
this.pageIndex = null; this.pageIndex = null;
this.dataKeys = null; this.dataKeys = null;
this.createPropertyString = DetailsView_createPropertyString; this.createPropertyString = DetailsView_createPropertyString;
this.setStateField = DetailsView_setStateValue; this.setStateField = DetailsView_setStateValue;
this.getHiddenFieldContents = DetailsView_getHiddenFieldContents; this.getHiddenFieldContents = DetailsView_getHiddenFieldContents;
this.stateField = null; this.stateField = null;
this.panelElement = null; this.panelElement = null;
this.callback = null; this.callback = null;
} }
function DetailsView_createPropertyString() { function DetailsView_createPropertyString() {
return createPropertyStringFromValues_DetailsView(this.pageIndex, this.dataKeys); return createPropertyStringFromValues_DetailsView(this.pageIndex, this.dataKeys);
} }
function DetailsView_setStateValue() { function DetailsView_setStateValue() {
this.stateField.value = this.createPropertyString(); this.stateField.value = this.createPropertyString();
} }
function DetailsView_OnCallback (result, context) { function DetailsView_OnCallback (result, context) {
var value = new String(result); var value = new String(result);
var valsArray = value.split("|"); var valsArray = value.split("|");
var innerHtml = valsArray[2]; var innerHtml = valsArray[2];
for (var i = 3; i < valsArray.length; i++) { for (var i = 3; i < valsArray.length; i++) {
innerHtml += "|" + valsArray[i]; innerHtml += "|" + valsArray[i];
} }
context.panelElement.innerHTML = innerHtml; context.panelElement.innerHTML = innerHtml;
context.stateField.value = createPropertyStringFromValues_DetailsView(valsArray[0], valsArray[1]); context.stateField.value = createPropertyStringFromValues_DetailsView(valsArray[0], valsArray[1]);
} }
function DetailsView_getHiddenFieldContents(arg) { function DetailsView_getHiddenFieldContents(arg) {
return arg + "|" + this.stateField.value; return arg + "|" + this.stateField.value;
} }
function createPropertyStringFromValues_DetailsView(pageIndex, dataKeys) { function createPropertyStringFromValues_DetailsView(pageIndex, dataKeys) {
var value = new Array(pageIndex, dataKeys); var value = new Array(pageIndex, dataKeys);
return value.join("|"); return value.join("|");
} }

186
Assignment5/Assignment5/Scripts/WebForms/Focus.js Normal file → Executable file
View file

@ -1,93 +1,93 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/WebForms.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/WebForms.js
function WebForm_FindFirstFocusableChild(control) { function WebForm_FindFirstFocusableChild(control) {
if (!control || !(control.tagName)) { if (!control || !(control.tagName)) {
return null; return null;
} }
var tagName = control.tagName.toLowerCase(); var tagName = control.tagName.toLowerCase();
if (tagName == "undefined") { if (tagName == "undefined") {
return null; return null;
} }
var children = control.childNodes; var children = control.childNodes;
if (children) { if (children) {
for (var i = 0; i < children.length; i++) { for (var i = 0; i < children.length; i++) {
try { try {
if (WebForm_CanFocus(children[i])) { if (WebForm_CanFocus(children[i])) {
return children[i]; return children[i];
} }
else { else {
var focused = WebForm_FindFirstFocusableChild(children[i]); var focused = WebForm_FindFirstFocusableChild(children[i]);
if (WebForm_CanFocus(focused)) { if (WebForm_CanFocus(focused)) {
return focused; return focused;
} }
} }
} catch (e) { } catch (e) {
} }
} }
} }
return null; return null;
} }
function WebForm_AutoFocus(focusId) { function WebForm_AutoFocus(focusId) {
var targetControl; var targetControl;
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
targetControl = document.getElementById(focusId); targetControl = document.getElementById(focusId);
} }
else { else {
targetControl = document.all[focusId]; targetControl = document.all[focusId];
} }
var focused = targetControl; var focused = targetControl;
if (targetControl && (!WebForm_CanFocus(targetControl)) ) { if (targetControl && (!WebForm_CanFocus(targetControl)) ) {
focused = WebForm_FindFirstFocusableChild(targetControl); focused = WebForm_FindFirstFocusableChild(targetControl);
} }
if (focused) { if (focused) {
try { try {
focused.focus(); focused.focus();
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
focused.scrollIntoView(false); focused.scrollIntoView(false);
} }
if (window.__smartNav) { if (window.__smartNav) {
window.__smartNav.ae = focused.id; window.__smartNav.ae = focused.id;
} }
} }
catch (e) { catch (e) {
} }
} }
} }
function WebForm_CanFocus(element) { function WebForm_CanFocus(element) {
if (!element || !(element.tagName)) return false; if (!element || !(element.tagName)) return false;
var tagName = element.tagName.toLowerCase(); var tagName = element.tagName.toLowerCase();
return (!(element.disabled) && return (!(element.disabled) &&
(!(element.type) || element.type.toLowerCase() != "hidden") && (!(element.type) || element.type.toLowerCase() != "hidden") &&
WebForm_IsFocusableTag(tagName) && WebForm_IsFocusableTag(tagName) &&
WebForm_IsInVisibleContainer(element) WebForm_IsInVisibleContainer(element)
); );
} }
function WebForm_IsFocusableTag(tagName) { function WebForm_IsFocusableTag(tagName) {
return (tagName == "input" || return (tagName == "input" ||
tagName == "textarea" || tagName == "textarea" ||
tagName == "select" || tagName == "select" ||
tagName == "button" || tagName == "button" ||
tagName == "a"); tagName == "a");
} }
function WebForm_IsInVisibleContainer(ctrl) { function WebForm_IsInVisibleContainer(ctrl) {
var current = ctrl; var current = ctrl;
while((typeof(current) != "undefined") && (current != null)) { while((typeof(current) != "undefined") && (current != null)) {
if (current.disabled || if (current.disabled ||
( typeof(current.style) != "undefined" && ( typeof(current.style) != "undefined" &&
( ( typeof(current.style.display) != "undefined" && ( ( typeof(current.style.display) != "undefined" &&
current.style.display == "none") || current.style.display == "none") ||
( typeof(current.style.visibility) != "undefined" && ( typeof(current.style.visibility) != "undefined" &&
current.style.visibility == "hidden") ) ) ) { current.style.visibility == "hidden") ) ) ) {
return false; return false;
} }
if (typeof(current.parentNode) != "undefined" && if (typeof(current.parentNode) != "undefined" &&
current.parentNode != null && current.parentNode != null &&
current.parentNode != current && current.parentNode != current &&
current.parentNode.tagName.toLowerCase() != "body") { current.parentNode.tagName.toLowerCase() != "body") {
current = current.parentNode; current = current.parentNode;
} }
else { else {
return true; return true;
} }
} }
return true; return true;
} }

72
Assignment5/Assignment5/Scripts/WebForms/GridView.js Normal file → Executable file
View file

@ -1,36 +1,36 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/GridView.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/GridView.js
function GridView() { function GridView() {
this.pageIndex = null; this.pageIndex = null;
this.sortExpression = null; this.sortExpression = null;
this.sortDirection = null; this.sortDirection = null;
this.dataKeys = null; this.dataKeys = null;
this.createPropertyString = GridView_createPropertyString; this.createPropertyString = GridView_createPropertyString;
this.setStateField = GridView_setStateValue; this.setStateField = GridView_setStateValue;
this.getHiddenFieldContents = GridView_getHiddenFieldContents; this.getHiddenFieldContents = GridView_getHiddenFieldContents;
this.stateField = null; this.stateField = null;
this.panelElement = null; this.panelElement = null;
this.callback = null; this.callback = null;
} }
function GridView_createPropertyString() { function GridView_createPropertyString() {
return createPropertyStringFromValues_GridView(this.pageIndex, this.sortDirection, this.sortExpression, this.dataKeys); return createPropertyStringFromValues_GridView(this.pageIndex, this.sortDirection, this.sortExpression, this.dataKeys);
} }
function GridView_setStateValue() { function GridView_setStateValue() {
this.stateField.value = this.createPropertyString(); this.stateField.value = this.createPropertyString();
} }
function GridView_OnCallback (result, context) { function GridView_OnCallback (result, context) {
var value = new String(result); var value = new String(result);
var valsArray = value.split("|"); var valsArray = value.split("|");
var innerHtml = valsArray[4]; var innerHtml = valsArray[4];
for (var i = 5; i < valsArray.length; i++) { for (var i = 5; i < valsArray.length; i++) {
innerHtml += "|" + valsArray[i]; innerHtml += "|" + valsArray[i];
} }
context.panelElement.innerHTML = innerHtml; context.panelElement.innerHTML = innerHtml;
context.stateField.value = createPropertyStringFromValues_GridView(valsArray[0], valsArray[1], valsArray[2], valsArray[3]); context.stateField.value = createPropertyStringFromValues_GridView(valsArray[0], valsArray[1], valsArray[2], valsArray[3]);
} }
function GridView_getHiddenFieldContents(arg) { function GridView_getHiddenFieldContents(arg) {
return arg + "|" + this.stateField.value; return arg + "|" + this.stateField.value;
} }
function createPropertyStringFromValues_GridView(pageIndex, sortDirection, sortExpression, dataKeys) { function createPropertyStringFromValues_GridView(pageIndex, sortDirection, sortExpression, dataKeys) {
var value = new Array(pageIndex, sortDirection, sortExpression, dataKeys); var value = new Array(pageIndex, sortDirection, sortExpression, dataKeys);
return value.join("|"); return value.join("|");
} }

10
Assignment5/Assignment5/Scripts/WebForms/MSAjax/MicrosoftAjax.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxTimer.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxTimer.js
//---------------------------------------------------------- //----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved. // Copyright (C) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------- //----------------------------------------------------------
// MicrosoftAjaxTimer.js // MicrosoftAjaxTimer.js
Type._registerScript("Timer.js",["MicrosoftAjaxComponentModel.js"]);Sys.UI._Timer=function(a){Sys.UI._Timer.initializeBase(this,[a]);this._interval=60000;this._enabled=true;this._postbackPending=false;this._raiseTickDelegate=null;this._endRequestHandlerDelegate=null;this._timer=null;this._pageRequestManager=null;this._uniqueID=null};Sys.UI._Timer.prototype={get_enabled:function(){return this._enabled},set_enabled:function(a){this._enabled=a},get_interval:function(){return this._interval},set_interval:function(a){this._interval=a},get_uniqueID:function(){return this._uniqueID},set_uniqueID:function(a){this._uniqueID=a},dispose:function(){this._stopTimer();if(this._pageRequestManager!==null)this._pageRequestManager.remove_endRequest(this._endRequestHandlerDelegate);Sys.UI._Timer.callBaseMethod(this,"dispose")},_doPostback:function(){__doPostBack(this.get_uniqueID(),"")},_handleEndRequest:function(c,b){var a=b.get_dataItems()[this.get_id()];if(a)this._update(a[0],a[1]);if(this._postbackPending===true&&this._pageRequestManager!==null&&this._pageRequestManager.get_isInAsyncPostBack()===false){this._postbackPending=false;this._doPostback()}},initialize:function(){Sys.UI._Timer.callBaseMethod(this,"initialize");this._raiseTickDelegate=Function.createDelegate(this,this._raiseTick);this._endRequestHandlerDelegate=Function.createDelegate(this,this._handleEndRequest);if(Sys.WebForms&&Sys.WebForms.PageRequestManager)this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance();if(this._pageRequestManager!==null)this._pageRequestManager.add_endRequest(this._endRequestHandlerDelegate);if(this.get_enabled())this._startTimer()},_raiseTick:function(){this._startTimer();if(this._pageRequestManager===null||!this._pageRequestManager.get_isInAsyncPostBack()){this._doPostback();this._postbackPending=false}else this._postbackPending=true},_startTimer:function(){this._timer=window.setTimeout(Function.createDelegate(this,this._raiseTick),this.get_interval())},_stopTimer:function(){if(this._timer!==null){window.clearTimeout(this._timer);this._timer=null}},_update:function(c,b){var a=!this.get_enabled(),d=this.get_interval()!==b;if(!a&&(!c||d)){this._stopTimer();a=true}this.set_enabled(c);this.set_interval(b);if(this.get_enabled()&&a)this._startTimer()}};Sys.UI._Timer.registerClass("Sys.UI._Timer",Sys.UI.Control); Type._registerScript("Timer.js",["MicrosoftAjaxComponentModel.js"]);Sys.UI._Timer=function(a){Sys.UI._Timer.initializeBase(this,[a]);this._interval=60000;this._enabled=true;this._postbackPending=false;this._raiseTickDelegate=null;this._endRequestHandlerDelegate=null;this._timer=null;this._pageRequestManager=null;this._uniqueID=null};Sys.UI._Timer.prototype={get_enabled:function(){return this._enabled},set_enabled:function(a){this._enabled=a},get_interval:function(){return this._interval},set_interval:function(a){this._interval=a},get_uniqueID:function(){return this._uniqueID},set_uniqueID:function(a){this._uniqueID=a},dispose:function(){this._stopTimer();if(this._pageRequestManager!==null)this._pageRequestManager.remove_endRequest(this._endRequestHandlerDelegate);Sys.UI._Timer.callBaseMethod(this,"dispose")},_doPostback:function(){__doPostBack(this.get_uniqueID(),"")},_handleEndRequest:function(c,b){var a=b.get_dataItems()[this.get_id()];if(a)this._update(a[0],a[1]);if(this._postbackPending===true&&this._pageRequestManager!==null&&this._pageRequestManager.get_isInAsyncPostBack()===false){this._postbackPending=false;this._doPostback()}},initialize:function(){Sys.UI._Timer.callBaseMethod(this,"initialize");this._raiseTickDelegate=Function.createDelegate(this,this._raiseTick);this._endRequestHandlerDelegate=Function.createDelegate(this,this._handleEndRequest);if(Sys.WebForms&&Sys.WebForms.PageRequestManager)this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance();if(this._pageRequestManager!==null)this._pageRequestManager.add_endRequest(this._endRequestHandlerDelegate);if(this.get_enabled())this._startTimer()},_raiseTick:function(){this._startTimer();if(this._pageRequestManager===null||!this._pageRequestManager.get_isInAsyncPostBack()){this._doPostback();this._postbackPending=false}else this._postbackPending=true},_startTimer:function(){this._timer=window.setTimeout(Function.createDelegate(this,this._raiseTick),this.get_interval())},_stopTimer:function(){if(this._timer!==null){window.clearTimeout(this._timer);this._timer=null}},_update:function(c,b){var a=!this.get_enabled(),d=this.get_interval()!==b;if(!a&&(!c||d)){this._stopTimer();a=true}this.set_enabled(c);this.set_interval(b);if(this.get_enabled()&&a)this._startTimer()}};Sys.UI._Timer.registerClass("Sys.UI._Timer",Sys.UI.Control);

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxWebServices.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxWebServices.js
//---------------------------------------------------------- //----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved. // Copyright (C) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------- //----------------------------------------------------------
// MicrosoftAjaxWebServices.js // MicrosoftAjaxWebServices.js
Type._registerScript("MicrosoftAjaxWebServices.js",["MicrosoftAjaxNetwork.js"]);Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(a){if(a<0)throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);this._timeout=a},get_defaultUserContext:function(){return typeof this._userContext==="undefined"?null:this._userContext},set_defaultUserContext:function(a){this._userContext=a},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(a){this._succeeded=a},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(a){this._failed=a},get_enableJsonp:function(){return !!this._jsonp},set_enableJsonp:function(a){this._jsonp=a},get_path:function(){return this._path||null},set_path:function(a){this._path=a},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(a){this._callbackParameter=a},_invoke:function(d,e,g,f,c,b,a){c=c||this.get_defaultSucceededCallback();b=b||this.get_defaultFailedCallback();if(a===null||typeof a==="undefined")a=this.get_defaultUserContext();return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(q,a,m,l,j,b,g,e,w,p){var i=w!==false?Sys.Net.WebServiceProxy._xdomain.exec(q):null,c,n=i&&i.length===3&&(i[1]!==location.protocol||i[2]!==location.host);m=n||m;if(n){p=p||"callback";c="_jsonp"+Sys._jsonp++}if(!l)l={};var r=l;if(!m||!r)r={};var s,h,f=null,k,o=null,u=Sys.Net.WebRequest._createUrl(a?q+"/"+encodeURIComponent(a):q,r,n?p+"=Sys."+c:null);if(n){s=document.createElement("script");s.src=u;k=new Sys._ScriptLoaderTask(s,function(d,b){if(!b||c)t({Message:String.format(Sys.Res.webServiceFailedNoMsg,a)},-1)});function v(){if(f===null)return;f=null;h=new Sys.Net.WebServiceError(true,String.format(Sys.Res.webServiceTimedOut,a));k.dispose();delete Sys[c];if(b)b(h,g,a)}function t(d,e){if(f!==null){window.clearTimeout(f);f=null}k.dispose();delete Sys[c];c=null;if(typeof e!=="undefined"&&e!==200){if(b){h=new Sys.Net.WebServiceError(false,d.Message||String.format(Sys.Res.webServiceFailedNoMsg,a),d.StackTrace||null,d.ExceptionType||null,d);h._statusCode=e;b(h,g,a)}}else if(j)j(d,g,a)}Sys[c]=t;e=e||Sys.Net.WebRequestManager.get_defaultTimeout();if(e>0)f=window.setTimeout(v,e);k.execute();return null}var d=new Sys.Net.WebRequest;d.set_url(u);d.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!m){o=Sys.Serialization.JavaScriptSerializer.serialize(l);if(o==="{}")o=""}d.set_body(o);d.add_completed(x);if(e&&e>0)d.set_timeout(e);d.invoke();function x(d){if(d.get_responseAvailable()){var f=d.get_statusCode(),c=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json"))c=d.get_object();else if(e.startsWith("text/xml"))c=d.get_xml();else c=d.get_responseData()}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(c)c=new Sys.Net.WebServiceError(false,c.Message,c.StackTrace,c.ExceptionType,c)}else if(e.startsWith("application/json"))c=!c||typeof c.d==="undefined"?c:c.d;if(f<200||f>=300||h){if(b){if(!c||!h)c=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a));c._statusCode=f;b(c,g,a)}}else if(j)j(c,g,a)}else{var i;if(d.get_timedOut())i=String.format(Sys.Res.webServiceTimedOut,a);else i=String.format(Sys.Res.webServiceFailedNoMsg,a);if(b)b(new Sys.Net.WebServiceError(d.get_timedOut(),i,"",""),g,a)}}return d};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b)for(var c in b)this[c]=b[c];this.__type=a}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(d,e,c,a,b){this._timedOut=d;this._message=e;this._stackTrace=c;this._exceptionType=a;this._errorObject=b;this._statusCode=-1};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError"); Type._registerScript("MicrosoftAjaxWebServices.js",["MicrosoftAjaxNetwork.js"]);Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(a){if(a<0)throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);this._timeout=a},get_defaultUserContext:function(){return typeof this._userContext==="undefined"?null:this._userContext},set_defaultUserContext:function(a){this._userContext=a},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(a){this._succeeded=a},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(a){this._failed=a},get_enableJsonp:function(){return !!this._jsonp},set_enableJsonp:function(a){this._jsonp=a},get_path:function(){return this._path||null},set_path:function(a){this._path=a},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(a){this._callbackParameter=a},_invoke:function(d,e,g,f,c,b,a){c=c||this.get_defaultSucceededCallback();b=b||this.get_defaultFailedCallback();if(a===null||typeof a==="undefined")a=this.get_defaultUserContext();return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(q,a,m,l,j,b,g,e,w,p){var i=w!==false?Sys.Net.WebServiceProxy._xdomain.exec(q):null,c,n=i&&i.length===3&&(i[1]!==location.protocol||i[2]!==location.host);m=n||m;if(n){p=p||"callback";c="_jsonp"+Sys._jsonp++}if(!l)l={};var r=l;if(!m||!r)r={};var s,h,f=null,k,o=null,u=Sys.Net.WebRequest._createUrl(a?q+"/"+encodeURIComponent(a):q,r,n?p+"=Sys."+c:null);if(n){s=document.createElement("script");s.src=u;k=new Sys._ScriptLoaderTask(s,function(d,b){if(!b||c)t({Message:String.format(Sys.Res.webServiceFailedNoMsg,a)},-1)});function v(){if(f===null)return;f=null;h=new Sys.Net.WebServiceError(true,String.format(Sys.Res.webServiceTimedOut,a));k.dispose();delete Sys[c];if(b)b(h,g,a)}function t(d,e){if(f!==null){window.clearTimeout(f);f=null}k.dispose();delete Sys[c];c=null;if(typeof e!=="undefined"&&e!==200){if(b){h=new Sys.Net.WebServiceError(false,d.Message||String.format(Sys.Res.webServiceFailedNoMsg,a),d.StackTrace||null,d.ExceptionType||null,d);h._statusCode=e;b(h,g,a)}}else if(j)j(d,g,a)}Sys[c]=t;e=e||Sys.Net.WebRequestManager.get_defaultTimeout();if(e>0)f=window.setTimeout(v,e);k.execute();return null}var d=new Sys.Net.WebRequest;d.set_url(u);d.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!m){o=Sys.Serialization.JavaScriptSerializer.serialize(l);if(o==="{}")o=""}d.set_body(o);d.add_completed(x);if(e&&e>0)d.set_timeout(e);d.invoke();function x(d){if(d.get_responseAvailable()){var f=d.get_statusCode(),c=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json"))c=d.get_object();else if(e.startsWith("text/xml"))c=d.get_xml();else c=d.get_responseData()}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(c)c=new Sys.Net.WebServiceError(false,c.Message,c.StackTrace,c.ExceptionType,c)}else if(e.startsWith("application/json"))c=!c||typeof c.d==="undefined"?c:c.d;if(f<200||f>=300||h){if(b){if(!c||!h)c=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a));c._statusCode=f;b(c,g,a)}}else if(j)j(c,g,a)}else{var i;if(d.get_timedOut())i=String.format(Sys.Res.webServiceTimedOut,a);else i=String.format(Sys.Res.webServiceFailedNoMsg,a);if(b)b(new Sys.Net.WebServiceError(d.get_timedOut(),i,"",""),g,a)}}return d};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b)for(var c in b)this[c]=b[c];this.__type=a}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(d,e,c,a,b){this._timedOut=d;this._message=e;this._stackTrace=c;this._exceptionType=a;this._errorObject=b;this._statusCode=-1};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError");

1796
Assignment5/Assignment5/Scripts/WebForms/Menu.js Normal file → Executable file

File diff suppressed because it is too large Load diff

1394
Assignment5/Assignment5/Scripts/WebForms/MenuStandards.js Normal file → Executable file

File diff suppressed because it is too large Load diff

560
Assignment5/Assignment5/Scripts/WebForms/SmartNav.js Normal file → Executable file
View file

@ -1,280 +1,280 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/SmartNav.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/SmartNav.js
var snSrc; var snSrc;
if ((typeof(window.__smartNav) == "undefined") || (window.__smartNav == null)) if ((typeof(window.__smartNav) == "undefined") || (window.__smartNav == null))
{ {
window.__smartNav = new Object(); window.__smartNav = new Object();
window.__smartNav.update = function() window.__smartNav.update = function()
{ {
var sn = window.__smartNav; var sn = window.__smartNav;
var fd; var fd;
document.detachEvent("onstop", sn.stopHif); document.detachEvent("onstop", sn.stopHif);
sn.inPost = false; sn.inPost = false;
try { fd = frames["__hifSmartNav"].document; } catch (e) {return;} try { fd = frames["__hifSmartNav"].document; } catch (e) {return;}
var fdr = fd.getElementsByTagName("asp_smartnav_rdir"); var fdr = fd.getElementsByTagName("asp_smartnav_rdir");
if (fdr.length > 0) if (fdr.length > 0)
{ {
if ((typeof(sn.sHif) == "undefined") || (sn.sHif == null)) if ((typeof(sn.sHif) == "undefined") || (sn.sHif == null))
{ {
sn.sHif = document.createElement("IFRAME"); sn.sHif = document.createElement("IFRAME");
sn.sHif.name = "__hifSmartNav"; sn.sHif.name = "__hifSmartNav";
sn.sHif.style.display = "none"; sn.sHif.style.display = "none";
sn.sHif.src = snSrc; sn.sHif.src = snSrc;
} }
try {window.location = fdr[0].url;} catch (e) {}; try {window.location = fdr[0].url;} catch (e) {};
return; return;
} }
var fdurl = fd.location.href; var fdurl = fd.location.href;
var index = fdurl.indexOf(snSrc); var index = fdurl.indexOf(snSrc);
if ((index != -1 && index == fdurl.length-snSrc.length) if ((index != -1 && index == fdurl.length-snSrc.length)
|| fdurl == "about:blank") || fdurl == "about:blank")
return; return;
var fdurlb = fdurl.split("?")[0]; var fdurlb = fdurl.split("?")[0];
if (document.location.href.indexOf(fdurlb) < 0) if (document.location.href.indexOf(fdurlb) < 0)
{ {
document.location.href=fdurl; document.location.href=fdurl;
return; return;
} }
sn._savedOnLoad = window.onload; sn._savedOnLoad = window.onload;
window.onload = null; window.onload = null;
window.__smartNav.updateHelper(); window.__smartNav.updateHelper();
} }
window.__smartNav.updateHelper = function() window.__smartNav.updateHelper = function()
{ {
if (document.readyState != "complete") if (document.readyState != "complete")
{ {
window.setTimeout(window.__smartNav.updateHelper, 25); window.setTimeout(window.__smartNav.updateHelper, 25);
return; return;
} }
window.__smartNav.loadNewContent(); window.__smartNav.loadNewContent();
} }
window.__smartNav.loadNewContent = function() window.__smartNav.loadNewContent = function()
{ {
var sn = window.__smartNav; var sn = window.__smartNav;
var fd; var fd;
try { fd = frames["__hifSmartNav"].document; } catch (e) {return;} try { fd = frames["__hifSmartNav"].document; } catch (e) {return;}
if ((typeof(sn.sHif) != "undefined") && (sn.sHif != null)) if ((typeof(sn.sHif) != "undefined") && (sn.sHif != null))
{ {
sn.sHif.removeNode(true); sn.sHif.removeNode(true);
sn.sHif = null; sn.sHif = null;
} }
var hdm = document.getElementsByTagName("head")[0]; var hdm = document.getElementsByTagName("head")[0];
var hk = hdm.childNodes; var hk = hdm.childNodes;
var tt = null; var tt = null;
var i; var i;
for (i = hk.length - 1; i>= 0; i--) for (i = hk.length - 1; i>= 0; i--)
{ {
if (hk[i].tagName == "TITLE") if (hk[i].tagName == "TITLE")
{ {
tt = hk[i].outerHTML; tt = hk[i].outerHTML;
continue; continue;
} }
if (hk[i].tagName != "BASEFONT" || hk[i].innerHTML.length == 0) if (hk[i].tagName != "BASEFONT" || hk[i].innerHTML.length == 0)
hdm.removeChild(hdm.childNodes[i]); hdm.removeChild(hdm.childNodes[i]);
} }
var kids = fd.getElementsByTagName("head")[0].childNodes; var kids = fd.getElementsByTagName("head")[0].childNodes;
for (i = 0; i < kids.length; i++) for (i = 0; i < kids.length; i++)
{ {
var tn = kids[i].tagName; var tn = kids[i].tagName;
var k = document.createElement(tn); var k = document.createElement(tn);
k.id = kids[i].id; k.id = kids[i].id;
k.mergeAttributes(kids[i]); k.mergeAttributes(kids[i]);
switch(tn) switch(tn)
{ {
case "TITLE": case "TITLE":
if (tt == kids[i].outerHTML) if (tt == kids[i].outerHTML)
continue; continue;
k.innerText = kids[i].text; k.innerText = kids[i].text;
hdm.insertAdjacentElement("afterbegin", k); hdm.insertAdjacentElement("afterbegin", k);
continue; continue;
case "BASEFONT" : case "BASEFONT" :
if (kids[i].innerHTML.length > 0) if (kids[i].innerHTML.length > 0)
continue; continue;
break; break;
default: default:
var o = document.createElement("BODY"); var o = document.createElement("BODY");
o.innerHTML = "<BODY>" + kids[i].outerHTML + "</BODY>"; o.innerHTML = "<BODY>" + kids[i].outerHTML + "</BODY>";
k = o.firstChild; k = o.firstChild;
break; break;
} }
if((typeof(k) != "undefined") && (k != null)) if((typeof(k) != "undefined") && (k != null))
hdm.appendChild(k); hdm.appendChild(k);
} }
document.body.clearAttributes(); document.body.clearAttributes();
document.body.id = fd.body.id; document.body.id = fd.body.id;
document.body.mergeAttributes(fd.body); document.body.mergeAttributes(fd.body);
var newBodyLoad = fd.body.onload; var newBodyLoad = fd.body.onload;
if ((typeof(newBodyLoad) != "undefined") && (newBodyLoad != null)) if ((typeof(newBodyLoad) != "undefined") && (newBodyLoad != null))
document.body.onload = newBodyLoad; document.body.onload = newBodyLoad;
else else
document.body.onload = sn._savedOnLoad; document.body.onload = sn._savedOnLoad;
var s = "<BODY>" + fd.body.innerHTML + "</BODY>"; var s = "<BODY>" + fd.body.innerHTML + "</BODY>";
if ((typeof(sn.hif) != "undefined") && (sn.hif != null)) if ((typeof(sn.hif) != "undefined") && (sn.hif != null))
{ {
var hifP = sn.hif.parentElement; var hifP = sn.hif.parentElement;
if ((typeof(hifP) != "undefined") && (hifP != null)) if ((typeof(hifP) != "undefined") && (hifP != null))
sn.sHif=hifP.removeChild(sn.hif); sn.sHif=hifP.removeChild(sn.hif);
} }
document.body.innerHTML = s; document.body.innerHTML = s;
var sc = document.scripts; var sc = document.scripts;
for (i = 0; i < sc.length; i++) for (i = 0; i < sc.length; i++)
{ {
sc[i].text = sc[i].text; sc[i].text = sc[i].text;
} }
sn.hif = document.all("__hifSmartNav"); sn.hif = document.all("__hifSmartNav");
if ((typeof(sn.hif) != "undefined") && (sn.hif != null)) if ((typeof(sn.hif) != "undefined") && (sn.hif != null))
{ {
var hif = sn.hif; var hif = sn.hif;
sn.hifName = "__hifSmartNav" + (new Date()).getTime(); sn.hifName = "__hifSmartNav" + (new Date()).getTime();
frames["__hifSmartNav"].name = sn.hifName; frames["__hifSmartNav"].name = sn.hifName;
sn.hifDoc = hif.contentWindow.document; sn.hifDoc = hif.contentWindow.document;
if (sn.ie5) if (sn.ie5)
hif.parentElement.removeChild(hif); hif.parentElement.removeChild(hif);
window.setTimeout(sn.restoreFocus,0); window.setTimeout(sn.restoreFocus,0);
} }
if (typeof(window.onload) == "string") if (typeof(window.onload) == "string")
{ {
try { eval(window.onload) } catch (e) {}; try { eval(window.onload) } catch (e) {};
} }
else if ((typeof(window.onload) != "undefined") && (window.onload != null)) else if ((typeof(window.onload) != "undefined") && (window.onload != null))
{ {
try { window.onload() } catch (e) {}; try { window.onload() } catch (e) {};
} }
sn._savedOnLoad = null; sn._savedOnLoad = null;
sn.attachForm(); sn.attachForm();
}; };
window.__smartNav.restoreFocus = function() window.__smartNav.restoreFocus = function()
{ {
if (window.__smartNav.inPost == true) return; if (window.__smartNav.inPost == true) return;
var curAe = document.activeElement; var curAe = document.activeElement;
var sAeId = window.__smartNav.ae; var sAeId = window.__smartNav.ae;
if (((typeof(sAeId) == "undefined") || (sAeId == null)) || if (((typeof(sAeId) == "undefined") || (sAeId == null)) ||
(typeof(curAe) != "undefined") && (curAe != null) && (curAe.id == sAeId || curAe.name == sAeId)) (typeof(curAe) != "undefined") && (curAe != null) && (curAe.id == sAeId || curAe.name == sAeId))
return; return;
var ae = document.all(sAeId); var ae = document.all(sAeId);
if ((typeof(ae) == "undefined") || (ae == null)) return; if ((typeof(ae) == "undefined") || (ae == null)) return;
try { ae.focus(); } catch(e){}; try { ae.focus(); } catch(e){};
} }
window.__smartNav.saveHistory = function() window.__smartNav.saveHistory = function()
{ {
if ((typeof(window.__smartNav.hif) != "undefined") && (window.__smartNav.hif != null)) if ((typeof(window.__smartNav.hif) != "undefined") && (window.__smartNav.hif != null))
window.__smartNav.hif.removeNode(); window.__smartNav.hif.removeNode();
if ((typeof(window.__smartNav.sHif) != "undefined") && (window.__smartNav.sHif != null) if ((typeof(window.__smartNav.sHif) != "undefined") && (window.__smartNav.sHif != null)
&& (typeof(document.all[window.__smartNav.siHif]) != "undefined") && (typeof(document.all[window.__smartNav.siHif]) != "undefined")
&& (document.all[window.__smartNav.siHif] != null)) { && (document.all[window.__smartNav.siHif] != null)) {
document.all[window.__smartNav.siHif].insertAdjacentElement( document.all[window.__smartNav.siHif].insertAdjacentElement(
"BeforeBegin", window.__smartNav.sHif); "BeforeBegin", window.__smartNav.sHif);
} }
} }
window.__smartNav.stopHif = function() window.__smartNav.stopHif = function()
{ {
document.detachEvent("onstop", window.__smartNav.stopHif); document.detachEvent("onstop", window.__smartNav.stopHif);
var sn = window.__smartNav; var sn = window.__smartNav;
if (((typeof(sn.hifDoc) == "undefined") || (sn.hifDoc == null)) && if (((typeof(sn.hifDoc) == "undefined") || (sn.hifDoc == null)) &&
(typeof(sn.hif) != "undefined") && (sn.hif != null)) (typeof(sn.hif) != "undefined") && (sn.hif != null))
{ {
try {sn.hifDoc = sn.hif.contentWindow.document;} try {sn.hifDoc = sn.hif.contentWindow.document;}
catch(e){sn.hifDoc=null} catch(e){sn.hifDoc=null}
} }
if (sn.hifDoc != null) if (sn.hifDoc != null)
{ {
try {sn.hifDoc.execCommand("stop");} catch (e){} try {sn.hifDoc.execCommand("stop");} catch (e){}
} }
} }
window.__smartNav.init = function() window.__smartNav.init = function()
{ {
var sn = window.__smartNav; var sn = window.__smartNav;
window.__smartNav.form.__smartNavPostBack.value = 'true'; window.__smartNav.form.__smartNavPostBack.value = 'true';
document.detachEvent("onstop", sn.stopHif); document.detachEvent("onstop", sn.stopHif);
document.attachEvent("onstop", sn.stopHif); document.attachEvent("onstop", sn.stopHif);
try { if (window.event.returnValue == false) return; } catch(e) {} try { if (window.event.returnValue == false) return; } catch(e) {}
sn.inPost = true; sn.inPost = true;
if ((typeof(document.activeElement) != "undefined") && (document.activeElement != null)) if ((typeof(document.activeElement) != "undefined") && (document.activeElement != null))
{ {
var ae = document.activeElement.id; var ae = document.activeElement.id;
if (ae.length == 0) if (ae.length == 0)
ae = document.activeElement.name; ae = document.activeElement.name;
sn.ae = ae; sn.ae = ae;
} }
else else
sn.ae = null; sn.ae = null;
try {document.selection.empty();} catch (e) {} try {document.selection.empty();} catch (e) {}
if ((typeof(sn.hif) == "undefined") || (sn.hif == null)) if ((typeof(sn.hif) == "undefined") || (sn.hif == null))
{ {
sn.hif = document.all("__hifSmartNav"); sn.hif = document.all("__hifSmartNav");
sn.hifDoc = sn.hif.contentWindow.document; sn.hifDoc = sn.hif.contentWindow.document;
} }
if ((typeof(sn.hifDoc) != "undefined") && (sn.hifDoc != null)) if ((typeof(sn.hifDoc) != "undefined") && (sn.hifDoc != null))
try {sn.hifDoc.designMode = "On";} catch(e){}; try {sn.hifDoc.designMode = "On";} catch(e){};
if ((typeof(sn.hif.parentElement) == "undefined") || (sn.hif.parentElement == null)) if ((typeof(sn.hif.parentElement) == "undefined") || (sn.hif.parentElement == null))
document.body.appendChild(sn.hif); document.body.appendChild(sn.hif);
var hif = sn.hif; var hif = sn.hif;
hif.detachEvent("onload", sn.update); hif.detachEvent("onload", sn.update);
hif.attachEvent("onload", sn.update); hif.attachEvent("onload", sn.update);
window.__smartNav.fInit = true; window.__smartNav.fInit = true;
}; };
window.__smartNav.submit = function() window.__smartNav.submit = function()
{ {
window.__smartNav.fInit = false; window.__smartNav.fInit = false;
try { window.__smartNav.init(); } catch(e) {} try { window.__smartNav.init(); } catch(e) {}
if (window.__smartNav.fInit) { if (window.__smartNav.fInit) {
window.__smartNav.form._submit(); window.__smartNav.form._submit();
} }
}; };
window.__smartNav.attachForm = function() window.__smartNav.attachForm = function()
{ {
var cf = document.forms; var cf = document.forms;
for (var i=0; i<cf.length; i++) for (var i=0; i<cf.length; i++)
{ {
if ((typeof(cf[i].__smartNavEnabled) != "undefined") && (cf[i].__smartNavEnabled != null)) if ((typeof(cf[i].__smartNavEnabled) != "undefined") && (cf[i].__smartNavEnabled != null))
{ {
window.__smartNav.form = cf[i]; window.__smartNav.form = cf[i];
window.__smartNav.form.insertAdjacentHTML("beforeEnd", "<input type='hidden' name='__smartNavPostBack' value='false' />"); window.__smartNav.form.insertAdjacentHTML("beforeEnd", "<input type='hidden' name='__smartNavPostBack' value='false' />");
break; break;
} }
} }
var snfm = window.__smartNav.form; var snfm = window.__smartNav.form;
if ((typeof(snfm) == "undefined") || (snfm == null)) return false; if ((typeof(snfm) == "undefined") || (snfm == null)) return false;
var sft = snfm.target; var sft = snfm.target;
if (sft.length != 0 && sft.indexOf("__hifSmartNav") != 0) return false; if (sft.length != 0 && sft.indexOf("__hifSmartNav") != 0) return false;
var sfc = snfm.action.split("?")[0]; var sfc = snfm.action.split("?")[0];
var url = window.location.href.split("?")[0]; var url = window.location.href.split("?")[0];
if (url.charAt(url.length-1) != '/' && url.lastIndexOf(sfc) + sfc.length != url.length) return false; if (url.charAt(url.length-1) != '/' && url.lastIndexOf(sfc) + sfc.length != url.length) return false;
if (snfm.__formAttached == true) return true; if (snfm.__formAttached == true) return true;
snfm.__formAttached = true; snfm.__formAttached = true;
snfm.attachEvent("onsubmit", window.__smartNav.init); snfm.attachEvent("onsubmit", window.__smartNav.init);
snfm._submit = snfm.submit; snfm._submit = snfm.submit;
snfm.submit = window.__smartNav.submit; snfm.submit = window.__smartNav.submit;
snfm.target = window.__smartNav.hifName; snfm.target = window.__smartNav.hifName;
return true; return true;
}; };
window.__smartNav.hifName = "__hifSmartNav" + (new Date()).getTime(); window.__smartNav.hifName = "__hifSmartNav" + (new Date()).getTime();
window.__smartNav.ie5 = navigator.appVersion.indexOf("MSIE 5") > 0; window.__smartNav.ie5 = navigator.appVersion.indexOf("MSIE 5") > 0;
var rc = window.__smartNav.attachForm(); var rc = window.__smartNav.attachForm();
var hif = document.all("__hifSmartNav"); var hif = document.all("__hifSmartNav");
if ((typeof(snSrc) == "undefined") || (snSrc == null)) { if ((typeof(snSrc) == "undefined") || (snSrc == null)) {
if (typeof(window.dialogHeight) != "undefined") { if (typeof(window.dialogHeight) != "undefined") {
snSrc = "IEsmartnav1"; snSrc = "IEsmartnav1";
hif.src = snSrc; hif.src = snSrc;
} else { } else {
snSrc = hif.src; snSrc = hif.src;
} }
} }
if (rc) if (rc)
{ {
var fsn = frames["__hifSmartNav"]; var fsn = frames["__hifSmartNav"];
fsn.name = window.__smartNav.hifName; fsn.name = window.__smartNav.hifName;
window.__smartNav.siHif = hif.sourceIndex; window.__smartNav.siHif = hif.sourceIndex;
try { try {
if (fsn.document.location != snSrc) if (fsn.document.location != snSrc)
{ {
fsn.document.designMode = "On"; fsn.document.designMode = "On";
hif.attachEvent("onload",window.__smartNav.update); hif.attachEvent("onload",window.__smartNav.update);
window.__smartNav.hif = hif; window.__smartNav.hif = hif;
} }
} }
catch (e) { window.__smartNav.hif = hif; } catch (e) { window.__smartNav.hif = hif; }
window.attachEvent("onbeforeunload", window.__smartNav.saveHistory); window.attachEvent("onbeforeunload", window.__smartNav.saveHistory);
} }
else else
window.__smartNav = null; window.__smartNav = null;
} }

440
Assignment5/Assignment5/Scripts/WebForms/TreeView.js Normal file → Executable file
View file

@ -1,220 +1,220 @@
//CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/TreeView.js //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/TreeView.js
function TreeView_HoverNode(data, node) { function TreeView_HoverNode(data, node) {
if (!data) { if (!data) {
return; return;
} }
node.hoverClass = data.hoverClass; node.hoverClass = data.hoverClass;
WebForm_AppendToClassName(node, data.hoverClass); WebForm_AppendToClassName(node, data.hoverClass);
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
node = node.childNodes[node.childNodes.length - 1]; node = node.childNodes[node.childNodes.length - 1];
} }
else { else {
node = node.children[node.children.length - 1]; node = node.children[node.children.length - 1];
} }
node.hoverHyperLinkClass = data.hoverHyperLinkClass; node.hoverHyperLinkClass = data.hoverHyperLinkClass;
WebForm_AppendToClassName(node, data.hoverHyperLinkClass); WebForm_AppendToClassName(node, data.hoverHyperLinkClass);
} }
function TreeView_GetNodeText(node) { function TreeView_GetNodeText(node) {
var trNode = WebForm_GetParentByTagName(node, "TR"); var trNode = WebForm_GetParentByTagName(node, "TR");
var outerNodes; var outerNodes;
if (trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName) { if (trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName) {
outerNodes = trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName("A"); outerNodes = trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName("A");
if (!outerNodes || outerNodes.length == 0) { if (!outerNodes || outerNodes.length == 0) {
outerNodes = trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName("SPAN"); outerNodes = trNode.childNodes[trNode.childNodes.length - 1].getElementsByTagName("SPAN");
} }
} }
var textNode = (outerNodes && outerNodes.length > 0) ? var textNode = (outerNodes && outerNodes.length > 0) ?
outerNodes[0].childNodes[0] : outerNodes[0].childNodes[0] :
trNode.childNodes[trNode.childNodes.length - 1].childNodes[0]; trNode.childNodes[trNode.childNodes.length - 1].childNodes[0];
return (textNode && textNode.nodeValue) ? textNode.nodeValue : ""; return (textNode && textNode.nodeValue) ? textNode.nodeValue : "";
} }
function TreeView_PopulateNode(data, index, node, selectNode, selectImageNode, lineType, text, path, databound, datapath, parentIsLast) { function TreeView_PopulateNode(data, index, node, selectNode, selectImageNode, lineType, text, path, databound, datapath, parentIsLast) {
if (!data) { if (!data) {
return; return;
} }
var context = new Object(); var context = new Object();
context.data = data; context.data = data;
context.node = node; context.node = node;
context.selectNode = selectNode; context.selectNode = selectNode;
context.selectImageNode = selectImageNode; context.selectImageNode = selectImageNode;
context.lineType = lineType; context.lineType = lineType;
context.index = index; context.index = index;
context.isChecked = "f"; context.isChecked = "f";
var tr = WebForm_GetParentByTagName(node, "TR"); var tr = WebForm_GetParentByTagName(node, "TR");
if (tr) { if (tr) {
var checkbox = tr.getElementsByTagName("INPUT"); var checkbox = tr.getElementsByTagName("INPUT");
if (checkbox && (checkbox.length > 0)) { if (checkbox && (checkbox.length > 0)) {
for (var i = 0; i < checkbox.length; i++) { for (var i = 0; i < checkbox.length; i++) {
if (checkbox[i].type.toLowerCase() == "checkbox") { if (checkbox[i].type.toLowerCase() == "checkbox") {
if (checkbox[i].checked) { if (checkbox[i].checked) {
context.isChecked = "t"; context.isChecked = "t";
} }
break; break;
} }
} }
} }
} }
var param = index + "|" + data.lastIndex + "|" + databound + context.isChecked + parentIsLast + "|" + var param = index + "|" + data.lastIndex + "|" + databound + context.isChecked + parentIsLast + "|" +
text.length + "|" + text + datapath.length + "|" + datapath + path; text.length + "|" + text + datapath.length + "|" + datapath + path;
TreeView_PopulateNodeDoCallBack(context, param); TreeView_PopulateNodeDoCallBack(context, param);
} }
function TreeView_ProcessNodeData(result, context) { function TreeView_ProcessNodeData(result, context) {
var treeNode = context.node; var treeNode = context.node;
if (result.length > 0) { if (result.length > 0) {
var ci = result.indexOf("|", 0); var ci = result.indexOf("|", 0);
context.data.lastIndex = result.substring(0, ci); context.data.lastIndex = result.substring(0, ci);
ci = result.indexOf("|", ci + 1); ci = result.indexOf("|", ci + 1);
var newExpandState = result.substring(context.data.lastIndex.length + 1, ci); var newExpandState = result.substring(context.data.lastIndex.length + 1, ci);
context.data.expandState.value += newExpandState; context.data.expandState.value += newExpandState;
var chunk = result.substr(ci + 1); var chunk = result.substr(ci + 1);
var newChildren, table; var newChildren, table;
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
var newDiv = document.createElement("div"); var newDiv = document.createElement("div");
newDiv.innerHTML = chunk; newDiv.innerHTML = chunk;
table = WebForm_GetParentByTagName(treeNode, "TABLE"); table = WebForm_GetParentByTagName(treeNode, "TABLE");
newChildren = null; newChildren = null;
if ((typeof(table.nextSibling) == "undefined") || (table.nextSibling == null)) { if ((typeof(table.nextSibling) == "undefined") || (table.nextSibling == null)) {
table.parentNode.insertBefore(newDiv.firstChild, table.nextSibling); table.parentNode.insertBefore(newDiv.firstChild, table.nextSibling);
newChildren = table.previousSibling; newChildren = table.previousSibling;
} }
else { else {
table = table.nextSibling; table = table.nextSibling;
table.parentNode.insertBefore(newDiv.firstChild, table); table.parentNode.insertBefore(newDiv.firstChild, table);
newChildren = table.previousSibling; newChildren = table.previousSibling;
} }
newChildren = document.getElementById(treeNode.id + "Nodes"); newChildren = document.getElementById(treeNode.id + "Nodes");
} }
else { else {
table = WebForm_GetParentByTagName(treeNode, "TABLE"); table = WebForm_GetParentByTagName(treeNode, "TABLE");
table.insertAdjacentHTML("afterEnd", chunk); table.insertAdjacentHTML("afterEnd", chunk);
newChildren = document.all[treeNode.id + "Nodes"]; newChildren = document.all[treeNode.id + "Nodes"];
} }
if ((typeof(newChildren) != "undefined") && (newChildren != null)) { if ((typeof(newChildren) != "undefined") && (newChildren != null)) {
TreeView_ToggleNode(context.data, context.index, treeNode, context.lineType, newChildren); TreeView_ToggleNode(context.data, context.index, treeNode, context.lineType, newChildren);
treeNode.href = document.getElementById ? treeNode.href = document.getElementById ?
"javascript:TreeView_ToggleNode(" + context.data.name + "," + context.index + ",document.getElementById('" + treeNode.id + "'),'" + context.lineType + "',document.getElementById('" + newChildren.id + "'))" : "javascript:TreeView_ToggleNode(" + context.data.name + "," + context.index + ",document.getElementById('" + treeNode.id + "'),'" + context.lineType + "',document.getElementById('" + newChildren.id + "'))" :
"javascript:TreeView_ToggleNode(" + context.data.name + "," + context.index + "," + treeNode.id + ",'" + context.lineType + "'," + newChildren.id + ")"; "javascript:TreeView_ToggleNode(" + context.data.name + "," + context.index + "," + treeNode.id + ",'" + context.lineType + "'," + newChildren.id + ")";
if ((typeof(context.selectNode) != "undefined") && (context.selectNode != null) && context.selectNode.href && if ((typeof(context.selectNode) != "undefined") && (context.selectNode != null) && context.selectNode.href &&
(context.selectNode.href.indexOf("javascript:TreeView_PopulateNode", 0) == 0)) { (context.selectNode.href.indexOf("javascript:TreeView_PopulateNode", 0) == 0)) {
context.selectNode.href = treeNode.href; context.selectNode.href = treeNode.href;
} }
if ((typeof(context.selectImageNode) != "undefined") && (context.selectImageNode != null) && context.selectNode.href && if ((typeof(context.selectImageNode) != "undefined") && (context.selectImageNode != null) && context.selectNode.href &&
(context.selectImageNode.href.indexOf("javascript:TreeView_PopulateNode", 0) == 0)) { (context.selectImageNode.href.indexOf("javascript:TreeView_PopulateNode", 0) == 0)) {
context.selectImageNode.href = treeNode.href; context.selectImageNode.href = treeNode.href;
} }
} }
context.data.populateLog.value += context.index + ","; context.data.populateLog.value += context.index + ",";
} }
else { else {
var img = treeNode.childNodes ? treeNode.childNodes[0] : treeNode.children[0]; var img = treeNode.childNodes ? treeNode.childNodes[0] : treeNode.children[0];
if ((typeof(img) != "undefined") && (img != null)) { if ((typeof(img) != "undefined") && (img != null)) {
var lineType = context.lineType; var lineType = context.lineType;
if (lineType == "l") { if (lineType == "l") {
img.src = context.data.images[13]; img.src = context.data.images[13];
} }
else if (lineType == "t") { else if (lineType == "t") {
img.src = context.data.images[10]; img.src = context.data.images[10];
} }
else if (lineType == "-") { else if (lineType == "-") {
img.src = context.data.images[16]; img.src = context.data.images[16];
} }
else { else {
img.src = context.data.images[3]; img.src = context.data.images[3];
} }
var pe; var pe;
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
pe = treeNode.parentNode; pe = treeNode.parentNode;
pe.insertBefore(img, treeNode); pe.insertBefore(img, treeNode);
pe.removeChild(treeNode); pe.removeChild(treeNode);
} }
else { else {
pe = treeNode.parentElement; pe = treeNode.parentElement;
treeNode.style.visibility="hidden"; treeNode.style.visibility="hidden";
treeNode.style.display="none"; treeNode.style.display="none";
pe.insertAdjacentElement("afterBegin", img); pe.insertAdjacentElement("afterBegin", img);
} }
} }
} }
} }
function TreeView_SelectNode(data, node, nodeId) { function TreeView_SelectNode(data, node, nodeId) {
if (!data) { if (!data) {
return; return;
} }
if ((typeof(data.selectedClass) != "undefined") && (data.selectedClass != null)) { if ((typeof(data.selectedClass) != "undefined") && (data.selectedClass != null)) {
var id = data.selectedNodeID.value; var id = data.selectedNodeID.value;
if (id.length > 0) { if (id.length > 0) {
var selectedNode = document.getElementById(id); var selectedNode = document.getElementById(id);
if ((typeof(selectedNode) != "undefined") && (selectedNode != null)) { if ((typeof(selectedNode) != "undefined") && (selectedNode != null)) {
WebForm_RemoveClassName(selectedNode, data.selectedHyperLinkClass); WebForm_RemoveClassName(selectedNode, data.selectedHyperLinkClass);
selectedNode = WebForm_GetParentByTagName(selectedNode, "TD"); selectedNode = WebForm_GetParentByTagName(selectedNode, "TD");
WebForm_RemoveClassName(selectedNode, data.selectedClass); WebForm_RemoveClassName(selectedNode, data.selectedClass);
} }
} }
WebForm_AppendToClassName(node, data.selectedHyperLinkClass); WebForm_AppendToClassName(node, data.selectedHyperLinkClass);
node = WebForm_GetParentByTagName(node, "TD"); node = WebForm_GetParentByTagName(node, "TD");
WebForm_AppendToClassName(node, data.selectedClass) WebForm_AppendToClassName(node, data.selectedClass)
} }
data.selectedNodeID.value = nodeId; data.selectedNodeID.value = nodeId;
} }
function TreeView_ToggleNode(data, index, node, lineType, children) { function TreeView_ToggleNode(data, index, node, lineType, children) {
if (!data) { if (!data) {
return; return;
} }
var img = node.childNodes[0]; var img = node.childNodes[0];
var newExpandState; var newExpandState;
try { try {
if (children.style.display == "none") { if (children.style.display == "none") {
children.style.display = "block"; children.style.display = "block";
newExpandState = "e"; newExpandState = "e";
if ((typeof(img) != "undefined") && (img != null)) { if ((typeof(img) != "undefined") && (img != null)) {
if (lineType == "l") { if (lineType == "l") {
img.src = data.images[15]; img.src = data.images[15];
} }
else if (lineType == "t") { else if (lineType == "t") {
img.src = data.images[12]; img.src = data.images[12];
} }
else if (lineType == "-") { else if (lineType == "-") {
img.src = data.images[18]; img.src = data.images[18];
} }
else { else {
img.src = data.images[5]; img.src = data.images[5];
} }
img.alt = data.collapseToolTip.replace(/\{0\}/, TreeView_GetNodeText(node)); img.alt = data.collapseToolTip.replace(/\{0\}/, TreeView_GetNodeText(node));
} }
} }
else { else {
children.style.display = "none"; children.style.display = "none";
newExpandState = "c"; newExpandState = "c";
if ((typeof(img) != "undefined") && (img != null)) { if ((typeof(img) != "undefined") && (img != null)) {
if (lineType == "l") { if (lineType == "l") {
img.src = data.images[14]; img.src = data.images[14];
} }
else if (lineType == "t") { else if (lineType == "t") {
img.src = data.images[11]; img.src = data.images[11];
} }
else if (lineType == "-") { else if (lineType == "-") {
img.src = data.images[17]; img.src = data.images[17];
} }
else { else {
img.src = data.images[4]; img.src = data.images[4];
} }
img.alt = data.expandToolTip.replace(/\{0\}/, TreeView_GetNodeText(node)); img.alt = data.expandToolTip.replace(/\{0\}/, TreeView_GetNodeText(node));
} }
} }
} }
catch(e) {} catch(e) {}
data.expandState.value = data.expandState.value.substring(0, index) + newExpandState + data.expandState.value.slice(index + 1); data.expandState.value = data.expandState.value.substring(0, index) + newExpandState + data.expandState.value.slice(index + 1);
} }
function TreeView_UnhoverNode(node) { function TreeView_UnhoverNode(node) {
if (!node.hoverClass) { if (!node.hoverClass) {
return; return;
} }
WebForm_RemoveClassName(node, node.hoverClass); WebForm_RemoveClassName(node, node.hoverClass);
if (__nonMSDOMBrowser) { if (__nonMSDOMBrowser) {
node = node.childNodes[node.childNodes.length - 1]; node = node.childNodes[node.childNodes.length - 1];
} }
else { else {
node = node.children[node.children.length - 1]; node = node.children[node.children.length - 1];
} }
WebForm_RemoveClassName(node, node.hoverHyperLinkClass); WebForm_RemoveClassName(node, node.hoverHyperLinkClass);
} }

1132
Assignment5/Assignment5/Scripts/WebForms/WebForms.js Normal file → Executable file

File diff suppressed because it is too large Load diff

1294
Assignment5/Assignment5/Scripts/WebForms/WebParts.js Normal file → Executable file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

0
Assignment5/Assignment5/Scripts/bootstrap.js vendored Normal file → Executable file
View file

0
Assignment5/Assignment5/Scripts/bootstrap.min.js vendored Normal file → Executable file
View file

5340
Assignment5/Assignment5/Scripts/jquery-3.4.1.intellisense.js vendored Normal file → Executable file

File diff suppressed because it is too large Load diff

0
Assignment5/Assignment5/Scripts/jquery-3.4.1.js vendored Normal file → Executable file
View file

0
Assignment5/Assignment5/Scripts/jquery-3.4.1.min.js vendored Normal file → Executable file
View file

0
Assignment5/Assignment5/Scripts/jquery-3.4.1.slim.js Normal file → Executable file
View file

0
Assignment5/Assignment5/Scripts/jquery-3.4.1.slim.min.js vendored Normal file → Executable file
View file

0
Assignment5/Assignment5/Scripts/modernizr-2.8.3.js vendored Normal file → Executable file
View file

View file

@ -1,71 +1,71 @@
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Assignment5.SiteMaster" %> <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Assignment5.SiteMaster" %>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head runat="server"> <head runat="server">
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> - My ASP.NET Application</title> <title><%: Page.Title %> - My ASP.NET Application</title>
<asp:PlaceHolder runat="server"> <asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %> <%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder> </asp:PlaceHolder>
<webopt:bundlereference runat="server" path="~/Content/css" /> <webopt:bundlereference runat="server" path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
</head> </head>
<body> <body>
<form runat="server"> <form runat="server">
<asp:ScriptManager runat="server"> <asp:ScriptManager runat="server">
<Scripts> <Scripts>
<%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%> <%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%> <%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" /> <asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" /> <asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" /> <asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" /> <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" /> <asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" /> <asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" /> <asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" /> <asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" /> <asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" /> <asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" /> <asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" /> <asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%> <%--Site Scripts--%>
</Scripts> </Scripts>
</asp:ScriptManager> </asp:ScriptManager>
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar navbar-inverse navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" runat="server" href="~/">Application name</a> <a class="navbar-brand" runat="server" href="~/">Application name</a>
</div> </div>
<div class="navbar-collapse collapse"> <div class="navbar-collapse collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a runat="server" href="~/">Home</a></li> <li><a runat="server" href="~/">Home</a></li>
<li><a runat="server" href="~/About">About</a></li> <li><a runat="server" href="~/About">About</a></li>
<li><a runat="server" href="~/Contact">Contact</a></li> <li><a runat="server" href="~/Contact">Contact</a></li>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
<div class="container body-content"> <div class="container body-content">
<asp:ContentPlaceHolder ID="MainContent" runat="server"> <asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder> </asp:ContentPlaceHolder>
<hr /> <hr />
<footer> <footer>
<p>&copy; <%: DateTime.Now.Year %> - My ASP.NET Application</p> <p>&copy; <%: DateTime.Now.Year %> - My ASP.NET Application</p>
</footer> </footer>
</div> </div>
</form> </form>
</body> </body>
</html> </html>

View file

@ -1,17 +1,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
namespace Assignment5 namespace Assignment5
{ {
public partial class SiteMaster : MasterPage public partial class SiteMaster : MasterPage
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
} }
} }
} }

View file

@ -1,34 +1,34 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 namespace Assignment5
{ {
public partial class SiteMaster public partial class SiteMaster
{ {
/// <summary> /// <summary>
/// HeadContent control. /// HeadContent control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent; protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
/// <summary> /// <summary>
/// MainContent control. /// MainContent control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent; protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
} }
} }

View file

@ -1,23 +1,23 @@
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.Mobile.master.cs" Inherits="Assignment5.Site_Mobile" %> <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.Mobile.master.cs" Inherits="Assignment5.Site_Mobile" %>
<%@ Register Src="~/ViewSwitcher.ascx" TagPrefix="friendlyUrls" TagName="ViewSwitcher" %> <%@ Register Src="~/ViewSwitcher.ascx" TagPrefix="friendlyUrls" TagName="ViewSwitcher" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<title></title> <title></title>
<asp:ContentPlaceHolder runat="server" ID="HeadContent" /> <asp:ContentPlaceHolder runat="server" ID="HeadContent" />
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<div> <div>
<h1>Mobile Master Page</h1> <h1>Mobile Master Page</h1>
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" /> <asp:ContentPlaceHolder runat="server" ID="FeaturedContent" />
<section class="content-wrapper main-content clear-fix"> <section class="content-wrapper main-content clear-fix">
<asp:ContentPlaceHolder runat="server" ID="MainContent" /> <asp:ContentPlaceHolder runat="server" ID="MainContent" />
</section> </section>
<friendlyUrls:ViewSwitcher runat="server" /> <friendlyUrls:ViewSwitcher runat="server" />
</div> </div>
</form> </form>
</body> </body>
</html> </html>

View file

@ -1,17 +1,17 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
namespace Assignment5 namespace Assignment5
{ {
public partial class Site_Mobile : System.Web.UI.MasterPage public partial class Site_Mobile : System.Web.UI.MasterPage
{ {
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
} }
} }
} }

View file

@ -1,51 +1,51 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 { namespace Assignment5 {
public partial class Site_Mobile { public partial class Site_Mobile {
/// <summary> /// <summary>
/// HeadContent control. /// HeadContent control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent; protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
/// <summary> /// <summary>
/// form1 control. /// form1 control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1; protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary> /// <summary>
/// FeaturedContent control. /// FeaturedContent control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent; protected global::System.Web.UI.WebControls.ContentPlaceHolder FeaturedContent;
/// <summary> /// <summary>
/// MainContent control. /// MainContent control.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Auto-generated field. /// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file. /// To modify move field declaration from designer file to code-behind file.
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent; protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
} }
} }

View file

@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewSwitcher.ascx.cs" Inherits="Assignment5.ViewSwitcher" %> <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewSwitcher.ascx.cs" Inherits="Assignment5.ViewSwitcher" %>
<div id="viewSwitcher"> <div id="viewSwitcher">
<%: CurrentView %> view | <a href="<%: SwitchUrl %>" data-ajax="false">Switch to <%: AlternateView %></a> <%: CurrentView %> view | <a href="<%: SwitchUrl %>" data-ajax="false">Switch to <%: AlternateView %></a>
</div> </div>

View file

@ -1,43 +1,43 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.Routing; using System.Web.Routing;
using System.Web.UI; using System.Web.UI;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using Microsoft.AspNet.FriendlyUrls.Resolvers; using Microsoft.AspNet.FriendlyUrls.Resolvers;
namespace Assignment5 namespace Assignment5
{ {
public partial class ViewSwitcher : System.Web.UI.UserControl public partial class ViewSwitcher : System.Web.UI.UserControl
{ {
protected string CurrentView { get; private set; } protected string CurrentView { get; private set; }
protected string AlternateView { get; private set; } protected string AlternateView { get; private set; }
protected string SwitchUrl { get; private set; } protected string SwitchUrl { get; private set; }
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
// Determine current view // Determine current view
var isMobile = WebFormsFriendlyUrlResolver.IsMobileView(new HttpContextWrapper(Context)); var isMobile = WebFormsFriendlyUrlResolver.IsMobileView(new HttpContextWrapper(Context));
CurrentView = isMobile ? "Mobile" : "Desktop"; CurrentView = isMobile ? "Mobile" : "Desktop";
// Determine alternate view // Determine alternate view
AlternateView = isMobile ? "Desktop" : "Mobile"; AlternateView = isMobile ? "Desktop" : "Mobile";
// Create switch URL from the route, e.g. ~/__FriendlyUrls_SwitchView/Mobile?ReturnUrl=/Page // Create switch URL from the route, e.g. ~/__FriendlyUrls_SwitchView/Mobile?ReturnUrl=/Page
var switchViewRouteName = "AspNet.FriendlyUrls.SwitchView"; var switchViewRouteName = "AspNet.FriendlyUrls.SwitchView";
var switchViewRoute = RouteTable.Routes[switchViewRouteName]; var switchViewRoute = RouteTable.Routes[switchViewRouteName];
if (switchViewRoute == null) if (switchViewRoute == null)
{ {
// Friendly URLs is not enabled or the name of the switch view route is out of sync // Friendly URLs is not enabled or the name of the switch view route is out of sync
this.Visible = false; this.Visible = false;
return; return;
} }
var url = GetRouteUrl(switchViewRouteName, new { view = AlternateView, __FriendlyUrls_SwitchViews = true }); var url = GetRouteUrl(switchViewRouteName, new { view = AlternateView, __FriendlyUrls_SwitchViews = true });
url += "?ReturnUrl=" + HttpUtility.UrlEncode(Request.RawUrl); url += "?ReturnUrl=" + HttpUtility.UrlEncode(Request.RawUrl);
SwitchUrl = url; SwitchUrl = url;
} }
} }
} }

View file

@ -1,15 +1,15 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Assignment5 { namespace Assignment5 {
public partial class ViewSwitcher { public partial class ViewSwitcher {
} }
} }

View file

@ -1,30 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 --> <!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!-- <!--
In the example below, the "SetAttributes" transform will change the value of In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB". finds an attribute "name" that has a value of "MyDB".
<connectionStrings> <connectionStrings>
<add name="MyDB" <add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings> </connectionStrings>
--> -->
<system.web> <system.web>
<!-- <!--
In the example below, the "Replace" transform will replace the entire In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file. <customErrors> section of your web.config file.
Note that because there is only one customErrors section under the Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute. <system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm" <customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace"> mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/> <error statusCode="500" redirect="InternalError.htm"/>
</customErrors> </customErrors>
--> -->
</system.web> </system.web>
</configuration> </configuration>

View file

@ -1,31 +1,31 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 --> <!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!-- <!--
In the example below, the "SetAttributes" transform will change the value of In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB". finds an attribute "name" that has a value of "MyDB".
<connectionStrings> <connectionStrings>
<add name="MyDB" <add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings> </connectionStrings>
--> -->
<system.web> <system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" /> <compilation xdt:Transform="RemoveAttributes(debug)" />
<!-- <!--
In the example below, the "Replace" transform will replace the entire In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file. <customErrors> section of your web.config file.
Note that because there is only one customErrors section under the Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute. <system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm" <customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace"> mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/> <error statusCode="500" redirect="InternalError.htm"/>
</customErrors> </customErrors>
--> -->
</system.web> </system.web>
</configuration> </configuration>

View file

@ -1,41 +1,41 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
For more information on how to configure your ASP.NET application, please visit For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=169433 https://go.microsoft.com/fwlink/?LinkId=169433
--> -->
<configuration> <configuration>
<system.web> <system.web>
<compilation debug="true" targetFramework="4.7.2" /> <compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" /> <httpRuntime targetFramework="4.7.2" />
<pages> <pages>
<namespaces> <namespaces>
<add namespace="System.Web.Optimization" /> <add namespace="System.Web.Optimization" />
</namespaces> </namespaces>
<controls> <controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /> <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
</controls> </controls>
</pages> </pages>
</system.web> </system.web>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" /> <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" /> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" /> <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly> </dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<system.codedom> <system.codedom>
<compilers> <compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" /> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" /> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers> </compilers>
</system.codedom> </system.codedom>
</configuration> </configuration>

Some files were not shown because too many files have changed in this diff Show more