public static void ModernTransfer(this HttpServerUtility httpServerUtility, string path, bool preserveForm)
 {
     if (httpServerUtility == null)
     {
         throw new ArgumentNullException("httpServerUtility");
     }
     if (HttpRuntime.UsingIntegratedPipeline)
     {
         httpServerUtility.TransferRequest(path, preserveForm);
     }
     else
     {
         httpServerUtility.Transfer(path, preserveForm);
     }
 }
 public static void ModernTransferForUrlRouting(this HttpServerUtility httpServerUtility, string path, Func <IHttpHandler> handlerBuilder)
 {
     if (httpServerUtility == null)
     {
         throw new ArgumentNullException("httpServerUtility");
     }
     if (HttpRuntime.UsingIntegratedPipeline)
     {
         httpServerUtility.TransferRequest(path);
     }
     else
     {
         HttpContext.Current.TransferForUrlRouting(path, handlerBuilder);
     }
 }
Ejemplo n.º 3
0
        void OnTransactionRemove(HttpServerUtility Server, HttpRequest Request, ListControlEntry Entry)
        {
            if (string.IsNullOrEmpty(Entry.Argument))
            {
                return;
            }

            int         TranID = int.Parse(Entry.Argument);
            Transaction Tran   = AllTransactions.Where(T => T.ID == TranID).FirstOrDefault();

            if (Tran == null)
            {
                return;
            }

            DbDAL.Delete(Tran);
            //Debug.WriteLine("Fake delete!");

            Server.TransferRequest(Request.Url.AbsolutePath, false);
        }
 public override void TransferRequest(string path)
 {
     _httpServerUtility.TransferRequest(path);
 }
Ejemplo n.º 5
0
 public override void TransferRequest(string path)
 {
     _server.TransferRequest(path);
 }