-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Web.UI; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
namespace GithubSharp.MvcSample.MvcApplication | ||
{ | ||
public class Default : Page | ||
{ | ||
public void Page_Load (object sender, System.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). | ||
|
||
string originalPath = Request.Path; | ||
HttpContext.Current.RewritePath (Request.ApplicationPath, false); | ||
IHttpHandler httpHandler = new MvcHttpHandler (); | ||
httpHandler.ProcessRequest (HttpContext.Current); | ||
HttpContext.Current.RewritePath (originalPath, false); | ||
} | ||
} | ||
|
||
} | ||
|