Pass in the HttpContext.Current
Then, you call it like so:Code://C# public static void DoSomething(System.Web.HttpContext context) { int r = 9, t= 0; float f = 0; try { f = r / t; } catch (System.DivideByZeroException) { context.Response.Redirect("http://www.google.com"); } }
Code:MyErrorHandler.DoSomething(HttpContext.Current);




Reply With Quote