root/trunk/eCard/eCardMVC/adMoto.Payments.Web/Default.aspx.cs @ 979

Wersja 971, 0.8 KB (wprowadzona przez marek, 16 years temu)

re #215

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