root/trunk/eCard/eCardMVC/Platnosci/Default.aspx.cs @ 883

Wersja 866, 0.9 KB (wprowadzona przez alina, 16 years temu)

re #215

Line 
1using System.Web;
2using System.Web.Mvc;
3using System.Web.UI;
4using System.Globalization;
5using System.Threading;
6
7namespace 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.