Esempio n. 1
0
 public void response_Redirect(string action)
 {
     if (Response_Redirects.hasKey(action))
     {
         context.Response.Redirect(Response_Redirects[action]);
     }
 }
Esempio n. 2
0
        public static void setDefault_Redirects_and_Transfers()
        {
            Server_Transfers.add("teammentor", "/html_pages/Gui/TeamMentor.html")
            .add("articleviewer", "/html_pages/GuidanceItemViewer/GuidanceItemViewer.html")
            .add("articleeditor", "/html_pages/GuidanceItemEditor/GuidanceItemEditor.html")
            .add("passwordreset", "/Html_Pages/Gui/Pages/passwordReset.html")
            .add("passwordforgot", "/Html_Pages/Gui/Pages/passwordForgot.html")
            .add("passwordexpired", "/Html_Pages/Gui/Pages/passwordReset.html")
            .add("error", "/Html_Pages/Gui/Pages/errorPage.html");

            Response_Redirects.add("csharprepl", "/html_pages/ControlPanel/CSharp_REPL/Repl.html")
            .add("tbot", "/rest/tbot/run/Commands")
            .add("asmx", "/aspx_pages/TM_WebServices.asmx")
            .add("wcf", "/rest/help")
            .add("home", "/")
            .add("debug", "/Aspx_Pages/Debug.aspx")
            .add("admin", "/html_pages/ControlPanel/controlpanel.html")
            .add("admin_extra", "/html_pages/ControlPanel/controlpanel.html?extra");
        }