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); } }
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); }
public override void TransferRequest(string path) { _server.TransferRequest(path); }