| Line | |
|---|
| 1 | using System.Web;
|
|---|
| 2 | using System.Web.Mvc;
|
|---|
| 3 | using System.Web.UI;
|
|---|
| 4 | using System.Globalization;
|
|---|
| 5 | using System.Threading;
|
|---|
| 6 |
|
|---|
| 7 | namespace Platnosci
|
|---|
| 8 | {
|
|---|
| 9 | public partial class _Default : Page
|
|---|
| 10 | {
|
|---|
| 11 | public void Page_Load(object sender, System.EventArgs e)
|
|---|
| 12 | {
|
|---|
| 13 | // Change the current path so that the Routing handler can correctly interpret
|
|---|
| 14 | // the request, then restore the original path so that the OutputCache module
|
|---|
| 15 | // can correctly process the response (if caching is enabled).
|
|---|
| 16 |
|
|---|
| 17 | string originalPath = Request.Path;
|
|---|
| 18 | HttpContext.Current.RewritePath(Request.ApplicationPath, false);
|
|---|
| 19 | IHttpHandler httpHandler = new MvcHttpHandler();
|
|---|
| 20 | httpHandler.ProcessRequest(HttpContext.Current);
|
|---|
| 21 | HttpContext.Current.RewritePath(originalPath, false);
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.