public void transfer_Request(string action) { action = action.lower(); if (Server_Transfers.hasKey(action)) { context.Response.ContentType = "text/html"; context.Server.Transfer(Server_Transfers[action], true); // will throw "Thread was being aborted exception } }
public void transfer_Request(string action) { action = action.lower(); if (Server_Transfers.hasKey(action)) { if (action == "teammentor") { tmWebServices.logUserActivity("Open TeamMentor", "The HomePage (ie. http://.../teamMentor)"); } context.Response.ContentType = "text/html"; context.Server.Transfer(Server_Transfers[action], true); // will throw "Thread was being aborted exception } }
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"); }