コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #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);
        }
コード例 #4
0
 public override void TransferRequest(string path)
 {
     _httpServerUtility.TransferRequest(path);
 }
コード例 #5
0
 public override void TransferRequest(string path)
 {
     _server.TransferRequest(path);
 }