Adding static root files to Azure solution

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-10-13 11:46:42 -07:00
parent d9444c793b
commit 8cc9daeff6
6 changed files with 59 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
<html>
<body onload="iframeResizePipe()">
<iframe id="helpframe" src="" frameborder="0" width="0" height="0"></iframe>
<script type="text/javascript">
function iframeResizePipe() {
var height = document.body.scrollHeight;
var helpFrame = document.getElementById('helpframe') || frames['helpframe'];
helpFrame.src = 'Admin/DashboardProxy' + '#' + height;
}
</script>
<!-- Your advisory message here -->
</body>
</html>

View File

@@ -0,0 +1,3 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Orchard.Azure.Web._Default" %>
<%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>

View File

@@ -0,0 +1,20 @@
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace Orchard.Azure.Web {
public class _Default : Page {
public void Page_Load(object sender, EventArgs e) {
// Change the current path so that the Routing handler can correctly interpret
// the request, then restore the original path so that the OutputCache module
// can correctly process the response (if caching is enabled).
var originalPath = Request.Path;
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
HttpContext.Current.RewritePath(originalPath, false);
}
}
}

View File

@@ -143,6 +143,10 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
@@ -150,6 +154,8 @@
<Compile Include="WebRole.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Advisory.html" />
<Content Include="Default.aspx" />
<Content Include="Global.asax" />
</ItemGroup>
<ItemGroup>
@@ -185,6 +191,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Refresh.html" />
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Configuration Changing...</title>
</head>
<body>
<p>
Orchard is temporarily unavailable as a change in configuration requires a restart.
A simple page refresh usually solves this issue.</p>
<script type="text/javascript">
window.location.reload();
</script>
</body>
</html>