Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Web;
namespace XmlSiteMapProviderBug
{
public class CustomXmlSitemapProvider : XmlSiteMapProvider
{
public override SiteMapNode FindSiteMapNode(string rawUrl)
{
var node = base.FindSiteMapNode(rawUrl);
if (node != null)
{
var page = HttpContext.Current.Handler as System.Web.UI.Page;
if (page != null)
{
page.Title = node.Title;
}
return node;
}
else
{
return base.RootNode;
}
}
}
}

View File

@@ -0,0 +1,12 @@
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head runat="server">
<title>Default</title>
</head>
<body>
<form runat="server">
<%= AppDomain.CurrentDomain.GetData ("BEGIN_CODE_MARKER") %><asp:SiteMapPath runat="server" RenderCurrentNodeAsLink="true" /><%= AppDomain.CurrentDomain.GetData ("END_CODE_MARKER") %>
</form>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation defaultLanguage="C#" debug="true" />
<customErrors mode="Off" />
<siteMap defaultProvider="CustomXmlSitemapProvider" enabled="true">
<providers>
<add name="CustomXmlSitemapProvider" type="XmlSiteMapProviderBug.CustomXmlSitemapProvider, App_Code" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
</compiler>
</compilers>
</system.codedom>
</configuration>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode url="Default.aspx" title="Main">
<siteMapNode url="Default.aspx?mode=foo" title="Foo" />
<siteMapNode url="Default.aspx?mode=bar" title="Bar" />
</siteMapNode>
</siteMap>