public static string GetResponeText(this HttpServerUtilityBase server, string path) { StringBuilder sb = new StringBuilder(); StringWriter sw = new StringWriter(sb); server.Execute("~" + path, sw); sw.Close(); return(sb.ToString()); }
public static bool HandleDeprecatedFilePathsException(Exception exception, HttpServerUtilityBase server, SubtextApplication application) { var depecratedException = exception as DeprecatedPhysicalPathsException; if (depecratedException != null) { server.Execute(DeprecatedPhysicalPathsPage, false); server.ClearError(); application.FinishRequest(); return(true); } return(false); }
public override void Execute(IHttpHandler handler, System.IO.TextWriter writer, bool preserveForm) { _server.Execute(handler, writer, preserveForm); }