aggiunta friendly urls!!!
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.Routing;
|
||||
using Microsoft.AspNet.FriendlyUrls;
|
||||
|
||||
namespace GMW_Term
|
||||
{
|
||||
public static class RouteConfig
|
||||
{
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
var settings = new FriendlyUrlSettings();
|
||||
settings.AutoRedirectMode = RedirectMode.Permanent;
|
||||
routes.EnableFriendlyUrls(settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -159,6 +159,10 @@
|
||||
<HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.FriendlyUrls, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
@@ -178,6 +182,7 @@
|
||||
<ItemGroup>
|
||||
<Content Include="App_Readme\Elmah.txt" />
|
||||
<Content Include="delibLog.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="images\apply_l.jpg" />
|
||||
<Content Include="images\apply_m.jpg" />
|
||||
<Content Include="images\apply_s.jpg" />
|
||||
@@ -213,6 +218,7 @@
|
||||
<Content Include="reset.aspx" />
|
||||
<Content Include="Style_test.css" />
|
||||
<Content Include="Style_prod.css" />
|
||||
<Content Include="ViewSwitcher.ascx" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
@@ -228,6 +234,7 @@
|
||||
<Compile Include="ActiveTask.aspx.designer.cs">
|
||||
<DependentUpon>ActiveTask.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="Cella.aspx.cs">
|
||||
<DependentUpon>Cella.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -249,6 +256,9 @@
|
||||
<Compile Include="delibLog.aspx.designer.cs">
|
||||
<DependentUpon>delibLog.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="interrMov.aspx.cs">
|
||||
<DependentUpon>interrMov.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -291,6 +301,12 @@
|
||||
<Compile Include="reset.aspx.designer.cs">
|
||||
<DependentUpon>reset.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Site.Mobile.Master.cs">
|
||||
<DependentUpon>Site.Mobile.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Site.Mobile.Master.designer.cs">
|
||||
<DependentUpon>Site.Mobile.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SmartList.aspx.cs">
|
||||
<DependentUpon>SmartList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -306,6 +322,13 @@
|
||||
<Compile Include="UDC.aspx.designer.cs">
|
||||
<DependentUpon>UDC.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ViewSwitcher.ascx.cs">
|
||||
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ViewSwitcher.ascx.designer.cs">
|
||||
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebMasterPages\CompactBCode.Master.cs">
|
||||
<DependentUpon>CompactBCode.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -664,6 +687,7 @@
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Site.Mobile.Master" />
|
||||
<None Include="Web.IIS02.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="GMW_Term.Global" Language="C#" %>
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.SessionState;
|
||||
|
||||
namespace GMW_Term
|
||||
{
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
|
||||
protected void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
// aggiungo friendlyUrls...
|
||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||
}
|
||||
|
||||
protected void Session_Start(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_BeginRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_AuthenticateRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_Error(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Session_End(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,4 +3,6 @@
|
||||
<package id="AjaxControlToolkit" version="16.1.1.0" targetFramework="net462" />
|
||||
<package id="elmah" version="1.2.2" targetFramework="net462" />
|
||||
<package id="elmah.corelibrary" version="1.2.2" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls" version="1.0.2" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls.Core" version="1.0.2" targetFramework="net462" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user