Example #1
0
        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());
        }
Example #2
0
        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);
        }
Example #3
0
 public override void Execute(IHttpHandler handler, System.IO.TextWriter writer, bool preserveForm)
 {
     _server.Execute(handler, writer, preserveForm);
 }